Difference between revisions of "Template:BoM"
(added the fix for pages with apostrophes) |
|||
Line 1: | Line 1: | ||
− | {{#vardefine: recipeSource | {{{source|{{PAGENAME}} }}} }}{{#vardefine: outputMode | {{{mode|all}}} }}<!-- | + | {{#vardefine: recipeSource | {{{source|{{ReplaceNumericCharEncoding|string={{PAGENAME}} }} }}} }}{{#vardefine: outputMode | {{{mode|all}}} }}<!-- |
-->{{#vardefine: resourceList|}}<includeonly><!-- | -->{{#vardefine: resourceList|}}<includeonly><!-- | ||
--><div class="mw-collapsible mw-collapsed" style="width: 15%; overflow: visible;" data-expandtext="Show BoM" data-collapsetext="Hide BoM"> | --><div class="mw-collapsible mw-collapsed" style="width: 15%; overflow: visible;" data-expandtext="Show BoM" data-collapsetext="Hide BoM"> |
Revision as of 14:53, 7 January 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