Difference between revisions of "Template:BoM"
Line 22: | Line 22: | ||
{{#switch: {{#var: outputMode}} | {{#switch: {{#var: outputMode}} | ||
| tree | all = {{#var: outputBuffer}} | | tree | all = {{#var: outputBuffer}} | ||
− | }}{{#ifeq: {{{testmode|}}} | true | <nowiki>{{#var: outputBuffer}}</nowiki>}}<!-- | + | }}{{#ifeq: {{{testmode|}}} | true | {{#vardefineecho: a | <nowiki><nowiki></nowiki>}}{{#var: outputBuffer}}{{#vardefineecho: b | <nowiki></nowiki></nowiki>}}}}<!-- |
List of basic resources + mana usage | List of basic resources + mana usage |
Revision as of 13:11, 2 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, not possible without semantic wiki array extension)
- 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