Difference between revisions of "Template:BoM"

From ChatWars Wiki
Jump to: navigation, search
Line 64: Line 64:
 
                     {{#vardefine: i | {{#expr: {{#var: i}} + 1 }} }}
 
                     {{#vardefine: i | {{#expr: {{#var: i}} + 1 }} }}
 
                 }}
 
                 }}
 +
  
 
<!--          -->Basic resource sum:
 
<!--          -->Basic resource sum:

Revision as of 15:42, 4 January 2019

Generates a BoM (Bill of Materials) for an item. Has three modes:

  • Show the most basic resources with all amounts added up. (WIP)
  • Show a tree style list with all the needed resources as child of the intermediate ingredient with different levels of indentation (done)
  • Show both

Uses sub-template Template:ResourceBreakdown