Difference between revisions of "Template:BoM"

From ChatWars Wiki
Jump to: navigation, search
Line 12: Line 12:
 
                   |format=template
 
                   |format=template
 
                   |template=ResourceBreakdown
 
                   |template=ResourceBreakdown
                   |userparam=0;1
+
                   |userparam=0;1<!-- first number is depth, second is multiplier-->
 
                   |sort=Qty,Crafting ingredient
 
                   |sort=Qty,Crafting ingredient
 
                   |order=desc,asc
 
                   |order=desc,asc
Line 27: Line 27:
 
                       |format=template
 
                       |format=template
 
                       |template=ResourceBreakdown
 
                       |template=ResourceBreakdown
                       |userparam=0;1
+
                       |userparam=0;1<!-- first number is depth, second is multiplier-->
 
                       |sort=Qty,Crafting ingredient
 
                       |sort=Qty,Crafting ingredient
 
                       |order=desc,asc
 
                       |order=desc,asc
Line 40: Line 40:
 
* Show a tree style list with all the needed resources as child of the intermediate ingredient with different levels of indentation (done)
 
* Show a tree style list with all the needed resources as child of the intermediate ingredient with different levels of indentation (done)
 
* Show both
 
* Show both
 +
 +
Uses sub-template [[Template:ResourceBreakdown]]
 
[[Category:Template]]
 
[[Category:Template]]
 
</noinclude>
 
</noinclude>

Revision as of 11:52, 11 October 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

Uses sub-template Template:ResourceBreakdown