Difference between revisions of "Template:BoM"

From ChatWars Wiki
Jump to: navigation, search
m (test ???? 10?)
m (test ???? 11?)
Line 1: Line 1:
 
{{#vardefine: recipeSource | {{{source|{{PAGENAME}} }}} }}{{#vardefine: outputMode | {{{mode|tree}}} }}<!--
 
{{#vardefine: recipeSource | {{{source|{{PAGENAME}} }}} }}{{#vardefine: outputMode | {{{mode|tree}}} }}<!--
 
-->{{#vardefine: resourceList|}}<includeonly><!--
 
-->{{#vardefine: resourceList|}}<includeonly><!--
--><div class="mw-collapsible mw-collapsed" style="width: 20%; overflow: visible;" data-expandtext="Show BoM" data-collapsetext="Hide BoM">
+
--><div class="mw-collapsible mw-collapsed" style="width: 10%; align: left; overflow: visible;" data-expandtext="Show BoM" data-collapsetext="Hide BoM">
  
 
<div class="mw-collapsible-content" style="width: intrinsic; width: -moz-max-content; width: -webkit-max-content; text-align: left; white-space: nowrap;">
 
<div class="mw-collapsible-content" style="width: intrinsic; width: -moz-max-content; width: -webkit-max-content; text-align: left; white-space: nowrap;">

Revision as of 19:06, 5 September 2018

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