Шаблон:Recipe list row — различия между версиями

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
 
 
Строка 1: Строка 1:
<includeonly>{{#ask:[[{{{1|}}}#recipe{{{2|1}}}]]
+
<includeonly>{{#if: {{{name|}}} |
| ?Requires discipline
+
{{#ask:[[{{{1|}}}#recipe{{{2|1}}}]]
| ?Requires rating
+
|?Requires discipline
| ?Has ingredient
+
|?Requires rating
| ?Has output quantity
+
|?Has ingredient
| ?Has item data object
+
|?Has output quantity
| link = none
+
|?Has item data object
| format = template
+
| link = none
| template = Recipe list result format
+
| format = template
 +
| template = Recipe list result format{{!}}name={{{name}}}
 +
}}
 +
|
 +
{{#ask:[[{{{1|}}}#recipe{{{2|1}}}]]
 +
|?Requires discipline
 +
|?Requires rating
 +
|?Has ingredient
 +
|?Has output quantity
 +
|?Has item data object
 +
| link = none
 +
| format = template
 +
| template = Recipe list result format
 +
}}
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
  
 
== Usage ==
 
== Usage ==
Creates a row containing recipe information for the item. For use with {{tl|reciple list header}}. To generate a recipe list automatically, use {{tl|recipe list}}. Format using {{tl|recipe list result format}}.
+
Creates a row containing recipe information for the item. For use with {{tl|recipe list header}}. To generate a recipe list automatically, use {{tl|recipe list}}. Format using {{tl|recipe list result format}}.
  
 
<pre>
 
<pre>
Строка 28: Строка 41:
 
{{recipe list header}}
 
{{recipe list header}}
 
{{recipe list row|Gold Filigree}}
 
{{recipe list row|Gold Filigree}}
|}
+
{{table footer}}
 
</pre>
 
</pre>
 
{{recipe list header}}
 
{{recipe list header}}
 
{{recipe list row|Gold Filigree}}
 
{{recipe list row|Gold Filigree}}
|}
+
{{table footer}}
 +
 
 +
<pre>
 +
{{recipe list header}}
 +
{{recipe list row|Superior Sigil of the Night|3}}
 +
{{table footer}}</pre>
 +
{{recipe list header}}
 +
{{recipe list row|Superior Sigil of the Night|3}}
 +
{{table footer}}
  
 
[[Category:Recipe formatting templates]]</noinclude>
 
[[Category:Recipe formatting templates]]</noinclude>

Текущая версия на 14:44, 3 апреля 2018


Usage[править]

Creates a row containing recipe information for the item. For use with {{recipe list header}}. To generate a recipe list automatically, use {{recipe list}}. Format using {{recipe list result format}}.

{{recipe list row|<Item>}}
{{recipe list row|<Item>|<RecipeIndex>}}

Parameters[править]

Unnamed parameter 1
Query term.
Unnamed parameter 2
Index of the recipe on the source page, if there are multiple recipes. Defaults to 1.

Example[править]

{{recipe list header}}
{{recipe list row|Gold Filigree}}
{{table footer}}
Item Rarity Discipline(s) Rating Ingredients
{{recipe list header}}
{{recipe list row|Superior Sigil of the Night|3}}
{{table footer}}
Item Rarity Discipline(s) Rating Ingredients
Superior Sigil of the Night.png Superior Sigil of the Night Z WeaponsmithWeaponsmith tango icon 20px.png 400