Редактирование: Шаблон:Recipe table

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

Внимание! Вы не авторизовались на сайте. Ваш IP-адрес будет публично видимым, если вы будете вносить любые правки. Если вы войдёте или создадите учётную запись, правки вместо этого будут связаны с вашим именем пользователя, а также у вас появятся другие преимущества.

Правка может быть отменена. Пожалуйста, просмотрите сравнение версий, чтобы убедиться, что это именно те изменения, которые вас интересуют, и нажмите «Записать страницу», чтобы изменения вступили в силу.

На этой странице невозможны семантические аннотации в тексте из-за ограничений пространства имён. Детали относительно того, как разрешить пространство имен, находятся в справочной странице конфигурации.

Текущая версия Ваш текст
Строка 1: Строка 1:
<includeonly>{{#ask:
+
<includeonly>{{#ask:[[Requires rating::>{{{min rating|0}}}]]
  [[Requires rating::>{{{min rating|0}}}]]
+
      [[Requires rating::<{{{max rating|500}}}]]
  [[Requires rating::<{{{max rating|500}}}]]
+
      {{#if:{{{discipline|}}}|[[Requires discipline::{{{discipline}}}]]}}
  {{#if:{{{discipline|}}}|[[Requires discipline::{{{discipline}}}]]}}
+
      {{#if:{{{type|}}}|[[Has recipe type::{{{type}}}]]}}
  {{#if:{{{type|}}}|[[Has recipe type::{{{type}}}]]}}
+
      {{#if:{{{ingredient|}}}|[[Has ingredient::?;{{{ingredient}}}]]}}
  {{#if:{{{ingredient|}}}|[[Has ingredient::?;?;{{#titleparts:{{{ingredient}}}}}]]}}
+
      {{#if:{{{source|}}}|[[Has recipe source::{{{source}}}]]}}
  {{#if:{{{source|}}}|[[Has recipe source::{{{source}}}]]}}
+
      {{#if:{{{item name|}}}|[[Has item data object.Has canonical name::~*{{{item name}}}*]]}}
  {{#if:{{{sheet|}}}|[[Learned from recipe sheet::{{{sheet}}}]]}}
+
      {{#if:{{{item type|}}}|[[Has item data object.Has item type::{{{item type}}}]]}}
  {{#if:{{{item name|}}}|[[Has item data object.Has canonical name::~*{{{item name}}}*]]}}
+
      {{#if:{{{timegate|}}}|[[Is time gated::Y]]}}
  {{#if:{{{item type|}}}|[[Has item data object.Has item type::{{{item type}}}]]}}
 
  {{#if:{{{timegate|}}}|[[Is time gated::Y]]}}
 
  {{#if:{{{other|}}}|{{{other}}}}}
 
 
|?Requires discipline
 
|?Requires discipline
 
|?Requires rating
 
|?Requires rating
Строка 16: Строка 13:
 
|?Has output quantity
 
|?Has output quantity
 
|?Has item data object
 
|?Has item data object
|?Learned from recipe sheet
 
 
| link = none
 
| link = none
 
| format = template
 
| format = template
Строка 22: Строка 18:
 
| intro = {{Recipe list header|source={{{source}}}}} <!-- Hides ratings for Mystic Forge source -->
 
| intro = {{Recipe list header|source={{{source}}}}} <!-- Hides ratings for Mystic Forge source -->
 
| outro = {{!}}}
 
| outro = {{!}}}
| sort = {{{sort|Requires rating, Has item data object}}}
+
| sort = Requires rating, Has item data object<!-- Mystic Forge recipes have rating of 0 generally -->
 
| sortorder = descending
 
| sortorder = descending
| limit = {{{limit|200}}}
+
| limit = 200
| offset = {{{offset|0}}}
 
 
| default = No recipes found that match the constraints of the query.
 
| default = No recipes found that match the constraints of the query.
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
 
== Usage ==
 
== Usage ==
Generates a list of recipes based on the input parameters. Format using {{tl|recipe list header}} and {{tl|recipe list result format}}.
+
Generates a list of recipes based on the input parameters. Format using {{tl|recipe list header}} and {{tl|recipe list result format}}.
  
 
<pre>
 
<pre>
Строка 39: Строка 33:
 
| ingredient =
 
| ingredient =
 
| source =
 
| source =
| sheet =
 
 
| type =
 
| type =
 
| item type =  
 
| item type =  
Строка 47: Строка 40:
  
 
== Parameters ==
 
== Parameters ==
 +
All parameters are used as criteria for certain properties within the semantic query.
 
{| {{STDT}}
 
{| {{STDT}}
 
! Parameter || Maps to property  
 
! Parameter || Maps to property  
Строка 59: Строка 53:
 
|-
 
|-
 
| source || [[Property:Has recipe source]]
 
| source || [[Property:Has recipe source]]
|-
 
| sheet || [[Property:Learned from recipe sheet]]
 
 
|-
 
|-
 
| type || [[Property:Has recipe type]]
 
| type || [[Property:Has recipe type]]
Строка 69: Строка 61:
 
|-
 
|-
 
| timegate || [[Property:Is time gated]]
 
| timegate || [[Property:Is time gated]]
|-
 
| other || ''Use sparingly to target other properties not listed above.''
 
 
|}
 
|}
;sort
 
: Determines the sort property. Defaults to "Requires rating, Has item data object".
 
;limit
 
: Defines the maximum number of results to return.
 
;offset
 
: Allows navigation beyond limit.
 
  
 
== Examples ==
 
== Examples ==

Пожалуйста, учтите, что любой ваш вклад в проект «Guild Wars 2 wiki» может быть отредактирован или удалён другими участниками. Если вы не хотите, чтобы кто-либо изменял ваши тексты, не помещайте их сюда.
Вы также подтверждаете, что являетесь автором вносимых дополнений, или скопировали их из источника, допускающего свободное распространение и изменение своего содержимого (см. Guild Wars 2 wiki:Авторские права). НЕ РАЗМЕЩАЙТЕ БЕЗ РАЗРЕШЕНИЯ ОХРАНЯЕМЫЕ АВТОРСКИМ ПРАВОМ МАТЕРИАЛЫ!

Чтобы изменить эту страницу, пожалуйста, ответьте на приведённый ниже вопрос (подробнее):

Отменить | Справка по редактированию (в новом окне)