Шаблон: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 ==
This template supplies the standard header row for recipe list tables. Used by [[Template:Recipe list]], [[Template:Output recipe list]], etc. Defines '''#var:mysticforge''' for use with {{tl|recipe list row}} to hide the rating and discipline if restricted to Mystic Forge. {{tl|recipe table}} does not use the variable as the source is specified in the template.
+
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>}}
|}