Шаблон:Recipe list header — различия между версиями
Материал из Guild Wars 2 wiki
Строка 3: | Строка 3: | ||
! style="width:30px" | Редкость | ! style="width:30px" | Редкость | ||
{{#vardefine:mysticforge}}{{#ifeq:{{lc:{{{source}}}}}|mystic forge|{{#vardefine:mysticforge|y}}|{{#vardefine:mysticforge|n}}<!-- Do not show if constrained to Mystic Forge --> | {{#vardefine:mysticforge}}{{#ifeq:{{lc:{{{source}}}}}|mystic forge|{{#vardefine:mysticforge|y}}|{{#vardefine:mysticforge|n}}<!-- Do not show if constrained to Mystic Forge --> | ||
− | ! style="width:104px" {{!}} Дисциплина( | + | ! style="width:104px" {{!}} Дисциплина(ы) |
! style="width:40px" {{!}} Рейтинг | ! style="width:40px" {{!}} Рейтинг | ||
}} | }} | ||
Строка 12: | Строка 12: | ||
== Usage == | == Usage == | ||
− | + | The header for recipe tables. Provides the header for {{tl|recipe list}}, {{tl|output recipe list}}, and related templates. | |
+ | |||
<pre> | <pre> | ||
{{recipe list header|source=<Source>}} | {{recipe list header|source=<Source>}} | ||
Строка 20: | Строка 21: | ||
|} | |} | ||
</pre> | </pre> | ||
+ | |||
+ | ;Variables | ||
+ | :'''mysticforge''' - Used with {{tl|recipe list row}} to hide the rating and discipline columns if restricted to Mystic Forge. | ||
+ | |||
+ | == Parameters == | ||
+ | ;Unnamed parameter 1 | ||
+ | :[[Item]] | ||
+ | |||
+ | ;source | ||
+ | :The recipe source ([[Property:Has recipe source]]) to filter out columns for. Only used for Mystic Forge recipes as they typically do not require a discipline or rating. | ||
== Example == | == Example == | ||
Строка 29: | Строка 40: | ||
</pre> | </pre> | ||
− | [[Category:Recipe formatting templates]]</noinclude> | + | [[Category:Recipe formatting templates]] |
+ | |||
+ | </noinclude> |
Версия 14:43, 3 апреля 2018
Предмет | Редкость | Дисциплина(ы) | Рейтинг | Ингредиенты |
---|
Usage
The header for recipe tables. Provides the header for {{recipe list}}, {{output recipe list}}, and related templates.
{{recipe list header|source=<Source>}} {{recipe list header}} {{recipe list row|<Item>}} {{recipe list row|<Item>}} |}
- Variables
- mysticforge - Used with {{recipe list row}} to hide the rating and discipline columns if restricted to Mystic Forge.
Parameters
- Unnamed parameter 1
- Item
- source
- The recipe source (Property:Has recipe source) to filter out columns for. Only used for Mystic Forge recipes as they typically do not require a discipline or rating.
Example
{{recipe list header}} {{recipe list row|<Item>}} {{recipe list row|<Item>}} |}