Шаблон:Base ingredients table

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
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|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 ...

{{#Widget:TP prices total}}

Usage[править]

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 Widget:TP prices total. Uses {{base ingredients table row}} to format the the row.

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

Parameters[править]

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.

Example[править]

{{base ingredients lookup|Iron Ingot|1}}
{{base ingredients table
|item=Iron Ingot
|quantity=1
|{{#var:base_ingredient_list}}
}}


<span style="border-bottom:1px silver dotted;" title="Minimum quantity of 40
«Y» — не булево значение (да/нет).
due to recipe selection.">Ошибка выражения: неопознанное слово «span»</span> Iron Ingot <span class="tptotal hide" data-id="" data-qty="Ошибка выражения: неопознанное слово «span»"></span>
Quantity Material Buy price Material cost
1 Iron Ingot.png Iron Ingot ... ...
Total cost ...

{{#Widget:TP prices total}}