Template:Base ingredients table

From Guild Wars 2 Wiki
Jump to: navigation, search
1 [[{{{item}}}]]
Quantity Material Buy price Material cost
[[File:Skill.png
The page type input value "{{{1}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.
|20x20px|bottom|link={{{1}}}]]
 [[{{{1}}}|{{{1}}}
The page type input value "{{{1}}}" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.
]]
... ...
Total cost ...

Usage[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.

{{base ingredients table
| item = <item>
| quantity = <quantity>
| {{#var:base_ingredient_list}}
}}

Parameters[edit]

Unnamed parameter 1
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.
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}}
}}


Quantity Material Buy price Material cost
3 Iron Ore.png Iron Ore ... ...
Total cost ...