Шаблон:Trait infobox — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
Строка 25: | Строка 25: | ||
}}]] {{#set:Is in trait line={{#var:traitline}}|Is for profession={{ucfirst:{{#var:profession}}}}}} | }}]] {{#set:Is in trait line={{#var:traitline}}|Is for profession={{ucfirst:{{#var:profession}}}}}} | ||
; Уровень | ; Уровень | ||
− | : {{#if:{{{tier|}}}|[[Has trait tier::{{ucfirst:{{{tier}}}}}|{{#switch:{{lc:{{{tier}}}}}|adept=Адепт|master=Мастер|grandmaster=Грандмастер}}]] | + | : {{#if:{{{tier|}}}|[[Has trait tier::{{ucfirst:{{{tier}}}}}|{{#switch:{{lc:{{{tier}}}}}|adept=Адепт|master=Мастер|grandmaster=Грандмастер}}]]{{#set:Has trait tier number={{#switch:{{lc:{{{tier}}}}}|proficiency=0|adept=1|master=2|grandmaster=3}}}} | ''Не указан'' }} |
+ | {{#if: {{{type|}}} | | ||
; Тип | ; Тип | ||
− | : | + | : [[Has trait type::{{ucfirst:{{{type}}}}}|{{#switch:{{lc:{{{type}}}}}|minor=Младшая|major=Старшая}}]]{{#set:Has trait type number={{#switch:{{lc:{{{type}}}}}|minor=1|major=2}}}} |
− | {{#if:{{{id|}}} | | + | }}{{#if:{{{id|}}} | |
; Игр. ссылка | ; Игр. ссылка | ||
: {{#arraymap:{{{id}}}|,|@@@|{{trait link|@@@}}{{#set:Has game id=@@@}}|<br>}}}} | : {{#arraymap:{{{id}}}|,|@@@|{{trait link|@@@}}{{#set:Has game id=@@@}}|<br>}}}} | ||
Строка 37: | Строка 38: | ||
}}<!-- | }}<!-- | ||
set hero point cost | set hero point cost | ||
− | -->{{#set:Has hero point cost={{#switch:{{lc:{{{type|}}}{{{tier|}}}}} | + | --> |
− | | minoradept = 2 | + | {{#if: {{{type|}}} | {{#if: {{{tier|}}} | {{#if: {{{line|}}} | |
− | | majoradept = 3 | + | {{#switch: {{lc:{{{line|}}}}} |
− | | minormaster = 4 | + | | berserker | dragonhunter | herald | druid | scrapper | daredevil | chronomancer | tempest | reaper = |
− | | majormaster = 5 | + | {{#set:Has hero point cost={{#switch:{{lc:{{{tier|}}}}} |
− | | minorgrandmaster = 6 | + | | proficiency = 30 |
− | | majorgrandmaster = 8 | + | | #default = 10 |
− | }} }}<!-- | + | }} }} |
+ | | #default = | ||
+ | {{#set:Has hero point cost={{#switch:{{lc:{{{type|}}}{{{tier|}}}}} | ||
+ | | minoradept = 2 | ||
+ | | majoradept = 3 | ||
+ | | minormaster = 4 | ||
+ | | majormaster = 5 | ||
+ | | minorgrandmaster = 6 | ||
+ | | majorgrandmaster = 8 | ||
+ | }} }} | ||
+ | }} | ||
+ | }} }} }}{{#set: Has trait position number={{{position|0}}} | ||
+ | }}<!-- | ||
AUTOCATEGORIZATION | AUTOCATEGORIZATION | ||
-->{{#if: {{NAMESPACE}}<!-- no categories if outside of article namespace --> | -->{{#if: {{NAMESPACE}}<!-- no categories if outside of article namespace --> | ||
Строка 86: | Строка 99: | ||
; icon : Optional. Icon filename. Defaults to <code>File:<page name>.png</code>. | ; icon : Optional. Icon filename. Defaults to <code>File:<page name>.png</code>. | ||
; line : Required. The trait line that the trait is under. | ; line : Required. The trait line that the trait is under. | ||
− | ; tier : Required. The tier (Adept, Master, Grandmaster) of the trait; displays ''Unspecified'' if omitted. | + | ; tier : Required. The tier (Proficiency ''elite spec only'', Adept, Master, Grandmaster) of the trait; displays ''Unspecified'' if omitted. |
; type : Required. The trait type (Minor or Major); displays ''Unspecified'' if omitted. | ; type : Required. The trait type (Minor or Major); displays ''Unspecified'' if omitted. | ||
+ | ; position : Required. The vertical position of the trait within the main trait selection panel. | ||
; recharge : Optional. The trait's recharge time, if any. | ; recharge : Optional. The trait's recharge time, if any. | ||
; description : Required. The in-game description. | ; description : Required. The in-game description. |
Версия 21:34, 29 сентября 2016
“Описание отсутствует.
— Внутриигровое описание
Description
{{Trait infobox | name = | icon = | line = | tier = | type = | recharge = | description = | facts = | id = }}
Parameters
- name
- Optional. Trait name. Defaults to the page name.
- icon
- Optional. Icon filename. Defaults to
File:<page name>.png
. - line
- Required. The trait line that the trait is under.
- tier
- Required. The tier (Proficiency elite spec only, Adept, Master, Grandmaster) of the trait; displays Unspecified if omitted.
- type
- Required. The trait type (Minor or Major); displays Unspecified if omitted.
- position
- Required. The vertical position of the trait within the main trait selection panel.
- recharge
- Optional. The trait's recharge time, if any.
- description
- Required. The in-game description.
- facts
- Optional. The trait facts displayed in-game below the description. Each fact should be presented as an individual instance of the {{skill fact}} template.
- id
- Optional. The game id required to produce the chat link to the trait ingame.
- categorize
- Optional. "y" or "n" to turn on/off categorization. Default is on for main namespace articles and off for others. If using "status", don't set this parameter.
- status
- Optional. Status of content. Only set if not currently obtainable ingame, displays relevant notice. Available options: "historical", "future", "unimplemented", "current" (default).
- historical
- Optional. (legacy parameter). Duplicates function of setting
status = historical
. y displays the {{historical content}} notice.