Difference between revisions of "Template:BoM"

From ChatWars Wiki
Jump to: navigation, search
m (test ???? 4)
m (test ???? 5)
Line 4: Line 4:
 
<span class="mw-customtoggle-bomdiv">Toggle link</span>
 
<span class="mw-customtoggle-bomdiv">Toggle link</span>
  
<div class="mw-collapsible mw-collapsed" id="mw-customtoggle-bomdiv" style="overflow: auto;" data-expandtext="Show BoM" data-collapsetext="Hide BoM">
+
<div class="mw-collapsible mw-collapsed" id="mw-customtoggle-bomdiv" style="width: -moz-max-content; width: -webkit-max-content; text-align: left; white-space: nowrap; overflow: auto;" data-expandtext="Show BoM" data-collapsetext="Hide BoM">
  
<div class="mw-collapsible-content" style="width: -moz-max-content; width: -webkit-max-content; text-align: left; white-space: nowrap;">
 
  
 
{{#switch: {{#var: outputMode}}
 
{{#switch: {{#var: outputMode}}
Line 37: Line 36:
 
                     }}
 
                     }}
 
                 }}
 
                 }}
}}</div></div><!--
+
}}</div><!--
 
--></includeonly><noinclude>
 
--></includeonly><noinclude>
 
Generates a BoM (Bill of Materials) for an item. Has three modes:
 
Generates a BoM (Bill of Materials) for an item. Has three modes:

Revision as of 19:57, 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