Шаблон:Base ingredients lookup

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск


Usage[править]

Creates a list of base ingredients from a given recipe. The recipe can be specified by its recipe id, or more commonly, by the name of the item to be created. If an item is specified, the template will look up the recipe and use the first recipe it finds. A discipline can be used to favor using a specific profession when deciding which recipe to use for crafting ingredients. The template defines #var:base_ingredient_list to store the list of base ingredients. For example, the variable value is then passed to {{base ingredients table}}.

{{base ingredients lookup|<item>}}
{{base ingredients lookup|id=<id>}}
{{base ingredients lookup|<item>|<quantity>|discipline=<discipline>}}
{{base ingredients lookup|id=<id>|<quantity>|discipline=<discipline>}}
Variables
base_ingredient_list - The list is stored in in the form of ~<item>~<item>...<item> and should be processed using #arraymap with "~" as the delimiter.

Parameter[править]

Unnamed parameter 1
Required. The output item to generate a list of base ingredients for. The template will look up the recipe that outputs the item. If an item has multiple recipes, the first recipe is used. If discipline is specified, the recipe requiring the discipline is prioritized. If id is specified, the parameter is ignored.
Unnamed parameter 2
Optional. The quantity of the item to create.
id
The recipe id of the recipe to generate the list of base ingredients for.
discipline
Optional. The discipline (Property:Requires discipline) to prefer for crafting recipes.The template will look for item recipes for the specific profession. By default, the template will pick the first recipe found for the item.

Example[править]

{{base ingredients lookup|Potent Superior Sharpening Stone|1}}
{{base ingredients table
|item=Potent Superior Sharpening Stone
|quantity=1
|{{#var:base_ingredient_list}}
}}
<span style="border-bottom:1px silver dotted;" title="Minimum quantity of 1
«Y» — не булево значение (да/нет).
due to recipe selection.">Ошибка выражения: неопознанное слово «span»</span> Potent Superior Sharpening Stone <span class="tptotal hide" data-id="" data-qty="Ошибка выражения: неопознанное слово «span»"></span>
Quantity Material Buy price Material cost
1 Skill.png Potent Superior Sharpening Stone ... ...
Total cost ...

{{#Widget:TP prices total}}


  • #var:base_ingredient_list: ~Potent Superior Sharpening Stone
  • #var:processed_ingredient_list: ~Potent Superior Sharpening Stone
{{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}}


  • #var:base_ingredient_list: ~Iron Ingot
  • #var:processed_ingredient_list: ~Iron Ingot