Difference between revisions of "Template:BoM"
m (finish) |
|||
Line 7: | Line 7: | ||
{{#switch: {{#var: outputMode}} | {{#switch: {{#var: outputMode}} | ||
| tree | all = {{#ask: | | tree | all = {{#ask: | ||
− | [[-Has subobject::{{#var: recipeSource}}]] [[Crafting ingredient.ItemType::+]] | + | [[-Has subobject::{{#var: recipeSource}}]] [[Crafting ingredient.ItemType::+]] ![[Crafting ingredient.ItemType::Recipe (Item)]] ![[Crafting ingredient.ItemType::Piece of Equipment]] |
|mainlabel=- | |mainlabel=- | ||
|headers=hide | |headers=hide | ||
Line 22: | Line 22: | ||
| list | all = {{#vardefine: resourceList | | list | all = {{#vardefine: resourceList | ||
| {{#ask: | | {{#ask: | ||
− | [[-Has subobject::{{#var: recipeSource}}]] [[Crafting ingredient.ItemType::+]] | + | [[-Has subobject::{{#var: recipeSource}}]] [[Crafting ingredient.ItemType::+]] ![[Crafting ingredient.ItemType::Recipe (Item)]] ![[Crafting ingredient.ItemType::Piece of Equipment]] |
|mainlabel=- | |mainlabel=- | ||
|headers=hide | |headers=hide |
Revision as of 11:57, 6 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