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

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
Строка 35: Строка 35:
 
<div class="wrapper">
 
<div class="wrapper">
 
; [[Specialization|Специализация]]
 
; [[Specialization|Специализация]]
: {{profession|{{#var:profession}}}} [[{{#var:traitline}}|{{#switch:{{{line}}}
+
: {{profession|{{#var:profession}}}} [[{{#var:traitline}}|{{rus lang|specialization|{{{line|Профессия}}}}}]] {{#set:Is in trait line={{#var:traitline}}|Is for profession={{ucfirst:{{#var:profession}}}}}}
    | Zeal = Рвение | Radiance = Сияние | Valor = Доблесть | Honor = Честь | Virtues = Добродетели | Dragonhunter = Драконоборец | Firebrand = Поджигатель
 
    | Corruption = Порча | Retribution = Возмездие | Salvation = Спасение | Devastation = Разрушение | Invocation = Призыв | Herald = Вестник | Renegade = Ренегат
 
    | Strength = Крепость | Arms = Оружие | Defense = Защита | Tactics = Тактика | Discipline = Дисциплина | Berserker = Берсерк | Spellbreaker = Чарокрушитель
 
    | Explosives = Взрывчатка | Firearms = Огнестрельное оружие | Inventions = Изобретения | Alchemy = Алхимия | Tools = Инструменты | Scrapper = Сборщик | Holosmith = Голографист
 
    | Marksmanship = Меткость | Skirmishing = Перестрелка | Wilderness Survival = Выживание в природе | Nature Magic = Магия природы |  Beastmastery = Повелевание зверями | Druid = Друид | Soulbeast = Аниморф
 
    | Deadly Arts = Смертельные искусства | Critical Strikes = Критические удары | Shadow Arts = Теневые искусства | Acrobatics = Акробатика | Trickery = Обман | Daredevil = Сорвиголова | Deadeye = Снайпер
 
    | Fire = Огонь | Air = Воздух | Earth = Земля | Water = Вода | Arcane = Таинство | Tempest = Буря | Weaver = Ткач
 
    | Domination = Доминирование | Dueling = Искусство дуэли | Chaos = Хаос | Inspiration = Вдохновение | Illusions = Иллюзии | Chronomancer = Хрономант | Mirage = Мираж
 
    | Spite = Злоба | Curses = Проклятия | Death Magic = Магия смерти | Blood Magic = Магия крови | Soul Reaping = Жатва душ | Reaper = Жнец | Scourge = Каратель
 
    | #default = {{{line|Профессия}}}
 
  }}]] {{#set:Is in trait line={{#var:traitline}}|Is for profession={{ucfirst:{{#var:profession}}}}}}
 
 
; Уровень
 
; Уровень
 
: {{#if:{{{tier|}}}|[[Has trait tier::{{ucfirst:{{{tier}}}}}|{{#switch:{{lc:{{{tier}}}}}|proficiency=Владение|adept=Адепт|master=Мастер|grandmaster=Грандмастер}}]]{{#set:Has trait tier number={{#switch:{{lc:{{{tier}}}}}|proficiency=0|adept=1|master=2|grandmaster=3}}}} | ''Не указан'' }}  
 
: {{#if:{{{tier|}}}|[[Has trait tier::{{ucfirst:{{{tier}}}}}|{{#switch:{{lc:{{{tier}}}}}|proficiency=Владение|adept=Адепт|master=Мастер|grandmaster=Грандмастер}}]]{{#set:Has trait tier number={{#switch:{{lc:{{{tier}}}}}|proficiency=0|adept=1|master=2|grandmaster=3}}}} | ''Не указан'' }}  

Версия 21:42, 31 мая 2019

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.
To set this parameter for a specific game mode: use the -wvw and -pvp parameters to set it. If the split is PvE | WvW + PvP, set only one of these parameters for the wvw+pvp version.
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.
status date 
Optional. Sets the date of the update that marked this skill as historical (in YYYY-MM-DD format).
release 
Optional. The expansion or living world season required to access the content. Displays a notice of the release. See {{infobox requires}} 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 (trait).png

Retribution

Специализация
Guardian icon small.png Сияние (список черт)
Уровень
Мастер
Тип
Старшая
Изучение
5 очков героя
Игр. ссылка
API
565

Gain increased damage while under the effects of retaliation.

Damage.png Увеличение урона: 10%

— Внутриигровое описание