Difference between revisions of "Template:BoM"

From ChatWars Wiki
Jump to: navigation, search
Line 19: Line 19:
 
}}<!--
 
}}<!--
  
{{#ifeq: {{#var: incomplete}} | true | ''ATTENTION: Recipe and thus Bill of Materials is incomplete!''<br> | inc: {{#var: incomplete}} rs: {{#var: recipeSource}} }}
+
Tree style list of resources + intermediate steps-->{{#ifeq: {{#var: incomplete}} | true | <br>''ATTENTION: Recipe and thus Bill of Materials is incomplete!''<br> }}
Tree style list of resources + intermediate steps-->
 
 
{{#switch: {{#var: outputMode}}
 
{{#switch: {{#var: outputMode}}
 
   | tree | all = {{#var: outputBuffer}}
 
   | tree | all = {{#var: outputBuffer}}

Revision as of 03:54, 18 March 2019

Generates a BoM (Bill of Materials) for an item. Has three modes you can choose with the template parameter outputMode:

  • outputMode = list - Show the most basic resources with all amounts added up.
  • outputMode = tree - Show a tree style list with all the needed resources as child of the intermediate ingredient with different levels of indentation (done)
  • outputMode = all - Show both (Default mode in case parameter is left out)

Uses sub-template Template:ResourceBreakdown