Шаблон: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:755px">
+
<div class="nav mech2">
<div class="box">
+
<div class="box" style="width:58em;">
 
<div class="heading" style="margin-bottom: 0 !important">[[Skill|Типы умений]] и ''[[profession mechanic|механика профессий]]''</div>
 
<div class="heading" style="margin-bottom: 0 !important">[[Skill|Типы умений]] и ''[[profession mechanic|механика профессий]]''</div>
 
<div class="wrapper">
 
<div class="wrapper">
Строка 88: Строка 88:
 
{{#if:{{#var:@@@-default}}|
 
{{#if:{{#var:@@@-default}}|
 
{{!}}- class="collapse-reverse"
 
{{!}}- class="collapse-reverse"
! style="width: 110px;" {{!}} [[{{ucfirst:@@@}}|{{#switch:@@@|guardian=Страж|warrior=Воин|engineer=Инженер|revenant=Ревенант|ranger=Рейнджер|thief=Вор|elementalist=Элементалист|mesmer=Месмер|necromancer=Некромант}}]] {{@@@}}
+
! style="width: 9.2em;" {{!}} [[{{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}} }}
Строка 122: Строка 122:
 
{{#arraymap:@@@,{{#var:@@@-specs}}|,|###|
 
{{#arraymap:@@@,{{#var:@@@-specs}}|,|###|
 
{{!}}-
 
{{!}}-
! style="width: 110px; border-right:2px solid {{color|@@@|border}}" {{!}} {{#ifeq: @@@ | ### | Общие | [[{{ucfirst:###}}|{{#switch:###
+
! style="width: 9.2em; border-right:2px solid {{color|@@@|border}}" {{!}} {{#ifeq: @@@ | ### | Общие | [[{{ucfirst:###}}|{{#switch:###
 
     | dragonhunter = Драконоборец | firebrand = Поджигатель
 
     | dragonhunter = Драконоборец | firebrand = Поджигатель
 
     | herald = Вестник | renegade = Ренегат  
 
     | herald = Вестник | renegade = Ренегат  

Версия 17:14, 14 мая 2019

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}}