Шаблон:Trait infobox — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
Строка 7: | Строка 7: | ||
<div class="statistics"> | <div class="statistics"> | ||
{{#if: {{{recharge|}}} | | {{#if: {{{recharge|}}} | | ||
− | {{#set:Has recharge time={{{recharge}}}}}{{#ifeq: {{{recharge}}} | 0 || {{recharge|{{{recharge}}}}} }} | + | {{#set:Has recharge time={{#replace:{{{recharge}}}|.|,}}}}{{#ifeq: {{{recharge}}} | 0 || {{recharge|{{{recharge}}}}} }} |
}} | }} | ||
</div> | </div> |
Версия 05:57, 7 октября 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.