Template:Base ingredients table
From Guild Wars 2 Wiki
Jump to navigationJump to search
Quantity | Material | Buy price (each) | Material cost |
---|---|---|---|
No recipe found. | |||
Total crafting cost | ... |
Description[edit]
Generates a list of items from #var:base_ingredient_list generated by a call to {{base ingredients lookup}}. The vendor price of the item is queried and the total cost for the quantity of the item is calculated. A running total is then calculated at the bottom, handled by Template:Tp total calculate. Uses {{base ingredients table row}} to format the the row.
Usage[edit]
{{base ingredients table | item = <item> | quantity = <quantity> | {{#var:base_ingredient_list}} }}
Parameters[edit]
- 1 (unnamed parameter)
- Requires the value of #var:base_ingredient_list generated by a call to {{base ingredients lookup}}. The format is ~<item1>~<item2>...~<item3> if you wish to pass an arbitrary list of items. You will need to set the corresponding quantity, see {{base ingredients lookup}} for the process.
- item
- Required. The item to look up.
- info
- Defaults to "buys" (highest buy offer). Inherited parameter from Widget:Tp total calculate. Other options: "sells" (lowest sell offer) and "sellst" (lowest sell offer including trading post cost)
- quantity
- Optional. The quantity of the item to create. Default 1.
- widget
- Optional. If set equal to "no", suppresses invoking the widget which calculates the grand total.
Example[edit]
{{base ingredients lookup|Iron Ingot|1}} {{base ingredients table |item=Iron Ingot |quantity=1 |{{#var:base_ingredient_list}} }}
1 Iron Ingot
(TP: )
Quantity | Material | Buy price (each) | Material cost |
---|---|---|---|
3 | Iron Ore | ... | ... |
Total crafting cost | ... |