Шаблон:Professions nav — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
Строка 1: | Строка 1: | ||
+ | <includeonly>{{#if: {{#vardefine:profession|{{lc:{{{1|{{#show:{{PAGENAME}}|?Is for profession|link=none|default={{PAGENAME}}}}}}}}} }} | ||
+ | <!--- Core specializations ---> | ||
+ | {{#vardefine:guardian-core |[[Zeal|Рвение]]{{bullet}}[[Radiance|Сияние]]{{bullet}}[[Valor|Доблесть]]{{bullet}}[[Honor|Честь]]{{bullet}}[[Virtues|Добродетели]] }} | ||
+ | {{#vardefine:revenant-core | [[Corruption (specialization)|Порча]]{{bullet}}[[Retribution (specialization)|Возмездие]]{{bullet}}[[Salvation|Спасение]]{{bullet}}[[Devastation|Разрушение]]{{bullet}}[[Invocation|Призыв]] }} | ||
+ | {{#vardefine:warrior-core | [[Strength|Крепость]]{{bullet}}[[Arms|Оружие]]{{bullet}}[[Defense|Защита]]{{bullet}}[[Tactics|Тактика]]{{bullet}}[[Discipline|Дисциплина]] }} | ||
+ | {{#vardefine:engineer-core | [[Explosives|Взрывчатка]]{{bullet}}[[Firearms|Огнестрельное оружие]]{{bullet}}[[Inventions|Изобретения]]{{bullet}}[[Alchemy|Алхимия]]{{bullet}}[[Tools|Инструменты]] }} | ||
+ | {{#vardefine:ranger-core | [[Marksmanship|Меткость]]{{bullet}}[[Skirmishing|Перестрелка]]{{bullet}}[[Wilderness Survival|Выживание в природе]]{{bullet}}[[Nature Magic|Магия природы]]<br>[[Beastmastery|Повелевание зверями]] }} | ||
+ | {{#vardefine:thief-core | [[Deadly Arts|Смертельные искусства]]{{bullet}}[[Critical Strikes|Критические удары]]{{bullet}}[[Shadow Arts|Теневые искусства]]<br>[[Acrobatics|Акробатика]]{{bullet}}[[Trickery|Обман]] }} | ||
+ | {{#vardefine:elementalist-core | [[Fire|Огонь]]{{bullet}}[[Air|Воздух]]{{bullet}}[[Earth|Земля]]{{bullet}}[[Water|Вода]]{{bullet}}[[Arcane (specialization)|Таинство]] }} | ||
+ | {{#vardefine:mesmer-core | [[Domination|Доминирование]]{{bullet}}[[Dueling|Искусство дуэли]]{{bullet}}[[Chaos|Хаос]]{{bullet}}[[Inspiration|Вдохновение]]{{bullet}}[[Illusions|Иллюзии]] }} | ||
+ | {{#vardefine:necromancer-core | [[Spite|Злоба]]{{bullet}}[[Curses|Проклятия]]{{bullet}}[[Death Magic|Магия смерти]]{{bullet}}[[Blood Magic|Магия крови]]{{bullet}}[[Soul Reaping|Жатва душ]] }} | ||
+ | <!--- Elite specializations ---> | ||
+ | {{#vardefine:guardian-elite | {{dragonhunter}} [[Dragonhunter|Драконоборец]]{{bullet}}{{firebrand}} [[Firebrand|Поджигатель]] }} | ||
+ | {{#vardefine:revenant-elite | {{herald}} [[Herald|Вестник]]{{bullet}}{{renegade}} [[Renegade|Ренегат]] }} | ||
+ | {{#vardefine:warrior-elite | {{berserker}} [[Berserker|Берсерк]]{{bullet}}{{spellbreaker}} [[Spellbreaker|Чарокрушитель]] }} | ||
+ | {{#vardefine:engineer-elite | {{scrapper}} [[Scrapper|Сборщик]]{{bullet}}{{holosmith}} [[Holosmith|Голографист]] }} | ||
+ | {{#vardefine:ranger-elite | {{druid}} [[Druid|Друид]]{{bullet}}{{soulbeast}} [[Soulbeast|Аниморф]] }} | ||
+ | {{#vardefine:thief-elite | {{daredevil}} [[Daredevil|Сорвиголова]]{{bullet}}{{deadeye}} [[Deadeye|Снайпер]] }} | ||
+ | {{#vardefine:elementalist-elite| {{tempest}} [[Tempest|Буря]]{{bullet}}{{weaver}} [[Weaver|Ткач]] }} | ||
+ | {{#vardefine:mesmer-elite | {{chronomancer}} [[Chronomancer|Хрономант]]{{bullet}}{{mirage}} [[Mirage|Мираж]] }} | ||
+ | {{#vardefine:necromancer-elite | {{reaper}} [[Reaper|Жнец]]{{bullet}}{{scourge}} [[Scourge|Каратель]] }} | ||
+ | }}<!--end #if--> | ||
<hr style="margin: 1em 0em; clear: both;" /> | <hr style="margin: 1em 0em; clear: both;" /> | ||
− | <div class="nav | + | <div class="nav {{#var:profession}}"> |
<div class="box"> | <div class="box"> | ||
− | <div class="heading">[[ | + | <div class="heading">{{ {{#var:profession}} }} [[{{ucfirst:{{#var:profession}}}}]]</div> |
<div class="wrapper"> | <div class="wrapper"> | ||
− | {| | + | {| |
− | ! | + | ! style="width: 90px; border-right:2px solid {{color|{{#var:profession}}|border}}" | Списки |
− | | | + | | [[List of {{#var:profession}} skills|Умения]]{{bullet}}[[List of {{#var:profession}} traits|Черты]]{{#ifeq: {{#var:profession}} | ranger | {{bullet}}[[List of pet skills|Умения питомцев]] }} |
|- | |- | ||
− | ! | + | ! style="width: 90px; border-right:2px solid {{color|{{#var:profession}}|border}}" | [[Specialization#{{ucfirst:{{#var:profession}}}}|Специализации]] |
− | | | + | | {{#var:{{#var:profession}}-core}}<br>{{#var:{{#var:profession}}-elite}} |
|- | |- | ||
− | ! | + | | <!-- spacer --> |
− | |||
|- | |- | ||
− | ! | + | ! style="font-size: smaller; border-right:2px solid {{color|{{#var:profession}}|border}}" | Связь |
− | | style=" | + | | style="font-size: smaller;" | [[Profession mechanic|Механика профессии]]{{bullet}}[[Racial skill|Расовые умения]]{{bullet}}[[Skill#Skill types|Типы умений]] |
|- | |- | ||
− | ! [[ | + | {| class="collapsible" style="width:100%; margin:0;" |
− | | style="text-align: | + | |- class="expandable" |
− | + | ! style="text-align:center; border-top:1px solid {{any-color|medium}}; background:{{any-color|lighter}}; border-right:0px" colspan="2" | <div style="margin: 0px auto; width: 250px;">Все [[profession|профессии]]</div> | |
− | + | |- class="collapse-reverse" | |
− | + | | style="text-align:center; font-size:smaller;" colspan="2" | {{guardian}} [[Guardian]]{{bullet}}{{revenant}} [[Revenant]]{{bullet}}{{warrior}} [[Warrior]]{{bullet}}{{engineer}} [[Engineer]]{{bullet}}{{ranger}} [[Ranger]]{{bullet}}{{thief}} [[Thief]]<br>{{elementalist}} [[Elementalist]]{{bullet}}{{mesmer}} [[Mesmer]]{{bullet}}{{necromancer}} [[Necromancer]] | |
− | + | {{#arraymap:guardian, revenant, warrior, engineer, ranger, thief, elementalist, mesmer, necromancer|,|@@@| | |
− | + | {{#ifeq:@@@|{{#var:profession}}|<!-- current profession already displayed at top -->| | |
− | + | {{!}}- | |
− | | | + | ! style="text-align:center; border-top:1px solid {{color|@@@|border}}; background:{{color|@@@|light}}; border-right:0px" colspan="2" {{!}} {{@@@}} [[{{ucfirst:@@@}}]] |
− | ! | + | {{!}}- |
− | + | {{!}} <!-- spacer --> | |
− | + | {{!}}- | |
− | ! | + | ! style="width: 90px; border-right:2px solid {{color|@@@|border}}" {{!}} Lists |
− | + | {{!}} [[List of @@@ skills|Skills]]{{bullet}}[[List of @@@ traits|Traits]]{{#ifeq: @@@ | ranger | {{bullet}}[[List of pet skills|Pet skills]] }} | |
− | + | {{!}}- | |
− | + | ! style="width: 90px; border-right:2px solid {{color|@@@|border}}" {{!}} [[Specialization#{{ucfirst:@@@}}|Specializations]] | |
− | | | + | {{!}} {{#var:@@@-core}}<br>{{#var:@@@-elite}} |
− | ! | + | {{!}}- |
− | + | {{!}} <!-- spacer --> | |
+ | {{!}}- | ||
+ | |\n}} | ||
+ | }} | ||
|} | |} | ||
− | </div></div></div><!-- Categorization -->{{#switch:{{lc:{{PAGENAME}}}}| guardian | revenant | warrior | engineer | ranger | thief | elementalist | mesmer | necromancer = [[Category:{{PAGENAME}}|*]]}}<noinclude> | + | </div> |
+ | </div> | ||
+ | </div><!-- Categorization -->{{#switch:{{lc:{{PAGENAME}}}}| guardian | revenant | warrior | engineer | ranger | thief | elementalist | mesmer | necromancer = [[Category:{{PAGENAME}}|*]]}}</includeonly><noinclude> | ||
+ | == Description == | ||
+ | <pre style="width: 50%;"> | ||
+ | {{Professions nav}} | ||
+ | {{Professions nav|profession}} | ||
+ | </pre> | ||
+ | |||
+ | === Parameters === | ||
+ | ; ''unnamed parameter'' 1 | ||
+ | : Optional. Full name of the profession to display the navigation links by default. If not set, the current page's name is considered as a specialization, and its profession is chosen to be shown. | ||
+ | |||
+ | === Example === | ||
+ | <pre style="width: 50%;"> | ||
+ | {{Professions nav|elementalist}} | ||
+ | </pre> | ||
+ | {{Professions nav|elementalist}} | ||
+ | |||
[[Category:Navigation templates]]</noinclude> | [[Category:Navigation templates]]</noinclude> |
Версия 17:25, 26 ноября 2017
Description
{{Professions nav}} {{Professions nav|profession}}
Parameters
- unnamed parameter 1
- Optional. Full name of the profession to display the navigation links by default. If not set, the current page's name is considered as a specialization, and its profession is chosen to be shown.
Example
{{Professions nav|elementalist}}