Шаблон:Trait infobox — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
Строка 6: | Строка 6: | ||
{{#vardefine:profession| {{lc:{{#show:{{#var:traitline}}|?Is for profession|link=none|default=Any}}}} }} | {{#vardefine:profession| {{lc:{{#show:{{#var:traitline}}|?Is for profession|link=none|default=Any}}}} }} | ||
}}<!-- | }}<!-- | ||
+ | -->{{#if:{{{split|}}}|{{Game mode version|{{{split}}}}}<!-- | ||
+ | -->{{#set:Is for game mode=PvE}}<!-- | ||
+ | -->{{#if:{{#pos:{{#explode:{{{split|}}}|,|0}}|wvw}}|{{#set:Is for game mode=WvW}}}}<!-- | ||
+ | -->{{#if:{{#pos:{{#explode:{{{split|}}}|,|0}}|pvp}}|{{#set:Is for game mode=PvP}}}}<!-- | ||
+ | -->{{Trait infobox/subobject|split={{{split|}}} | ||
+ | |icon={{{icon|}}} | ||
+ | |name={{{name|}}} | ||
+ | |position={{{position|}}} | ||
+ | |recharge-wvw={{{recharge-wvw|}}} | ||
+ | |recharge-pvp={{{recharge-pvp|}}} | ||
+ | |id={{{id|}}} | ||
+ | |description={{{description|}}} | ||
+ | |tier={{{tier|}}} | ||
+ | |type={{{type|}}} | ||
+ | |line={{{line|}}} | ||
+ | |status={{{status|}}}}}}}<!-- | ||
--><div class="infobox trait {{#var:profession}}"> | --><div class="infobox trait {{#var:profession}}"> | ||
Строка 11: | Строка 27: | ||
<p class="heading">[[Has canonical name::{{{name|{{#titleparts:{{PAGENAME}}}}}}}]]</p> | <p class="heading">[[Has canonical name::{{{name|{{#titleparts:{{PAGENAME}}}}}}}]]</p> | ||
<div class="statistics"> | <div class="statistics"> | ||
− | {{#if: {{{recharge|}}} | | + | {{#if:{{{recharge|}}}{{{recharge-pve|}}} |<!-- |
− | {{#set:Has recharge time={{# | + | -->{{#set:Has recharge time={{{recharge-pve|{{{recharge}}}}}}}}{{#if:{{{recharge-wvw|}}}{{{recharge-pvp|}}}|<!-- is split |
+ | -->{{recharge/split|{{{recharge|}}}|pve={{{recharge-pve|}}}|wvw={{{recharge-wvw|}}}|pvp={{{recharge-pvp|}}}}}|<!-- is not split | ||
+ | -->{{recharge|{{{recharge}}}}} }} | ||
}} | }} | ||
</div> | </div> | ||
Строка 44: | Строка 62: | ||
{{clear}} | {{clear}} | ||
</div>{{Quotation|game|{{#if:{{{description|}}}|{{{description}}}{{#set:Has game description={{#dplreplace:{{{description}}}|\[\[Category:Text errors\]\]}}}}|''Описание отсутствует.''}} | </div>{{Quotation|game|{{#if:{{{description|}}}|{{{description}}}{{#set:Has game description={{#dplreplace:{{{description}}}|\[\[Category:Text errors\]\]}}}}|''Описание отсутствует.''}} | ||
− | {{{facts|}}} | + | {{{facts|}}}}}<!-- |
− | }}<!-- | ||
set hero point cost | set hero point cost | ||
--> | --> | ||
Строка 95: | Строка 112: | ||
| name = | | name = | ||
| icon = | | icon = | ||
+ | | split = | ||
| line = | | line = | ||
| tier = | | tier = | ||
Строка 107: | Строка 125: | ||
; name : Optional. Trait name. Defaults to the page name. | ; name : Optional. Trait name. Defaults to the page name. | ||
; icon : Optional. Icon filename. Defaults to <code>File:<page name>.png</code>. | ; icon : Optional. Icon filename. Defaults to <code>File:<page name>.png</code>. | ||
+ | ; split : Optional. Game modes that this skill applies to. See {{tl|Game mode version}}. Calls {{tl|Trait infobox/subobject}} for each game mode beside PvE to create subobjects. | ||
; line : Required. The trait line that the trait is under. | ; 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. | ; tier : Required. The tier (Proficiency ''elite spec only'', Adept, Master, Grandmaster) of the trait; displays ''Unspecified'' if omitted. |
Версия 12:00, 18 мая 2018
Description
{{Trait infobox | name = | icon = | split = | 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
. - split
- Optional. Game modes that this skill applies to. See {{Game mode version}}. Calls {{Trait infobox/subobject}} for each game mode beside PvE to create subobjects.
- 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. (0 for Minor traits, 1 for the top Major trait, 2 for the middle Major trait, and 3 for the bottom Major trait).
- 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).
- status notes
- Optional. Allows provision of additional reason for the given status.
- release
- Optional. The expansion or living world season required to access the content. Displays a notice of the release. See {{infobox release}} for options.
Example
{{Trait infobox | name = Retribution | line = Radiance | tier = Master | type = Major | position = 3 | description = Gain increased damage while under the effects of [[retaliation]]. | facts = {{skill fact|damage increase|10}} | id = 565 }}
Retribution
- Специализация
- Сияние (список черт)
- Уровень
- Мастер
- Тип
- Старшая
- Изучение
- 5 очков героя
- Игр. ссылка
- API
- 565
“Gain increased damage while under the effects of retaliation.
- Увеличение урона: 10%
— Внутриигровое описание