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

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
Строка 76: Строка 76:
 
}}<!--end #if-->
 
}}<!--end #if-->
 
<hr style="margin: 1em 0em; clear: both;" />
 
<hr style="margin: 1em 0em; clear: both;" />
<div class="nav mech2" style="width:720px">
+
<div class="nav mech2" style="width:755px">
 
<div class="box">
 
<div class="box">
 
<div class="heading" style="margin-bottom: 0 !important">[[Skill type|Типы умений]] и ''[[profession mechanic|механика профессий]]''</div>
 
<div class="heading" style="margin-bottom: 0 !important">[[Skill type|Типы умений]] и ''[[profession mechanic|механика профессий]]''</div>
Строка 88: Строка 88:
 
{{#if:{{#var:@@@-default}}|
 
{{#if:{{#var:@@@-default}}|
 
{{!}}- class="collapse-reverse"
 
{{!}}- class="collapse-reverse"
! style="width: 110px;" {{!}} [[{{ucfirst:@@@}}]] {{@@@}}
+
! style="width: 110px;" {{!}} [[{{ucfirst:@@@}}|{{#switch:@@@|guardian=Страж|warrior=Воин|engineer=Инженер|revenant=Ревенант|ranger=Рейнджер|thief=Вор|elementalist=Элементалист|mesmer=Месмер|necromancer=Некромант}}]] {{@@@}}
 
{{!}} {{#arraymap:{{#var:@@@-types}}|;|&&&| {{#if:
 
{{!}} {{#arraymap:{{#var:@@@-types}}|;|&&&| {{#if:
 
   {{#vardefine:link-page  | {{#explode:&&&|/|0}} }}
 
   {{#vardefine:link-page  | {{#explode:&&&|/|0}} }}
Строка 117: Строка 117:
 
{{#arraymap:{{#var:professions}}|,|@@@|
 
{{#arraymap:{{#var:professions}}|,|@@@|
 
{{!}}-
 
{{!}}-
! style="text-align:center; border-top:1px solid {{color|@@@|border}}; background:{{color|@@@|light}}; border-right:0px" colspan="2" {{!}} {{@@@}} [[{{ucfirst:@@@}}]]
+
! style="text-align:center; border-top:1px solid {{color|@@@|border}}; background:{{color|@@@|light}}; border-right:0px" colspan="2" {{!}} {{@@@}} [[{{ucfirst:@@@}}|{{#switch:@@@|guardian=Страж|warrior=Воин|engineer=Инженер|revenant=Ревенант|ranger=Рейнджер|thief=Вор|elementalist=Элементалист|mesmer=Месмер|necromancer=Некромант}}]]
 
{{!}}-
 
{{!}}-
 
{{!}} <!-- spacer -->
 
{{!}} <!-- spacer -->
 
{{#arraymap:@@@,{{#var:@@@-specs}}|,|###|
 
{{#arraymap:@@@,{{#var:@@@-specs}}|,|###|
 
{{!}}-
 
{{!}}-
! style="width: 110px; border-right:2px solid {{color|@@@|border}}" {{!}} {{#ifeq: @@@ | ### | Общие | [[{{ucfirst:###}}]] {{###}} }}
+
! style="width: 110px; border-right:2px solid {{color|@@@|border}}" {{!}} {{#ifeq: @@@ | ### | Общие | [[{{ucfirst:###}}|{{#switch:###
 +
    | dragonhunter = Драконоборец | firebrand = Поджигатель
 +
    | herald = Вестник | renegade = Ренегат
 +
    | berserker = Берсерк | spellbreaker = Чарокрушитель
 +
    | scrapper = Сборщик | holosmith = Голографист
 +
    | druid = Друид | soulbeast = Аниморф
 +
    | daredevil = Сорвиголова | deadeye = Снайпер
 +
    | tempest = Буря | weaver = Ткач
 +
    | chronomancer = Хрономант | mirage = Мираж
 +
    | reaper = Жнец | scourge = Каратель }}]] {{###}} }}
 
{{!}} {{#arraymap:{{#var:###-types}}|;|&&&| {{#if:
 
{{!}} {{#arraymap:{{#var:###-types}}|;|&&&| {{#if:
 
   {{#vardefine:link-page  | {{#explode:&&&|/|0}} }}
 
   {{#vardefine:link-page  | {{#explode:&&&|/|0}} }}

Версия 06:59, 5 января 2018

Description

{{Skill types nav}}
{{Skill types nav|<page name>}}
{{Skill types nav|professions = <list of professions and elite specs>}}

Parameters

unnamed parameter 1
Optional. Full page name to display the navigation links for by default. If not set, the current page's name is used instead.
professions
Optional. Comma-separated list of professions and elite specializations to show by default. For each elite specialization in the list, there must also be the core profession there in order to work correctly. Takes precedence over the page title (inferred or given by a paramter).
misc
Optional. If set to y, the "Miscellaneous" rows will be shown by default.

Examples

{{Skill types nav|Trap}}


{{Skill types nav|professions=warrior,spellbreaker,mesmer,mirage}}