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

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
Строка 22: Строка 22:
  
 
<!-- Core profession types -->
 
<!-- Core profession types -->
{{#vardefine:guardian-types    | Consecration/n/Освящение; Meditation/n/Медитация; Shout/n/Крик; Signet/n/Печать; Spirit Weapon/n/Призрачное оружие; Symbol/n/Символ; Virtue/y/Добродетель; Ward/n/Оберег }}
+
{{#vardefine:guardian-types    | Consecration/n/Освящение; Justice/y/Справедливость; Meditation/n/Медитация; Shout/n/Крик; Signet/n/Печать; Spirit Weapon/n/Призрачное оружие; Symbol/n/Символ; Virtue/y/Добродетель; Ward/n/Оберег }}
 
{{#vardefine:revenant-types    | Energy/y/Энергия; Legend/y/Легенда; Legendary Assassin Stance/n/Легендарный ассасин; Legendary Centaur Stance/n/Легендарный кентавр; Legendary Demon Stance/n/Легендарный демон; Legendary Dwarf Stance/n/Легендарный гном }}
 
{{#vardefine:revenant-types    | Energy/y/Энергия; Legend/y/Легенда; Legendary Assassin Stance/n/Легендарный ассасин; Legendary Centaur Stance/n/Легендарный кентавр; Legendary Demon Stance/n/Легендарный демон; Legendary Dwarf Stance/n/Легендарный гном }}
 
{{#vardefine:warrior-types      | Adrenaline/y/Адреналин; Banner/n/Стяг; Burst/y/Вспышка ярости; Physical/n/Грубая сила; Shout/n/Крик; Signet/n/Печать; Stance/n/Стойка }}
 
{{#vardefine:warrior-types      | Adrenaline/y/Адреналин; Banner/n/Стяг; Burst/y/Вспышка ярости; Physical/n/Грубая сила; Shout/n/Крик; Signet/n/Печать; Stance/n/Стойка }}
Строка 44: Строка 44:
  
 
<!-- Path of Fire elite spec types -->
 
<!-- Path of Fire elite spec types -->
{{#vardefine:firebrand-types    | Final Charge/n/Последний заряд; Mantra/n/Мантра; Tome/y/Фолиант }}
+
{{#vardefine:firebrand-types    | Mantra/n/Мантра; Tome/y/Фолиант }}
 
{{#vardefine:renegade-types    | Citadel Order/y/Приказ цитадели; Legendary Renegade Stance/n/Легендарный ренегат }}
 
{{#vardefine:renegade-types    | Citadel Order/y/Приказ цитадели; Legendary Renegade Stance/n/Легендарный ренегат }}
 
{{#vardefine:spellbreaker-types | Full Counter/y/Круговая контратака; Meditation/n/Медитация }}
 
{{#vardefine:spellbreaker-types | Full Counter/y/Круговая контратака; Meditation/n/Медитация }}
Строка 76: Строка 76:
  
 
}}<!--end #if--><hr style="margin: 1em 0em; clear: both;" />
 
}}<!--end #if--><hr style="margin: 1em 0em; clear: both;" />
<div class="nav mech2">
+
<div class="nav mech2 wide">
 
<div class="box" style="width:65em;">
 
<div class="box" style="width:65em;">
<div class="heading" style="margin-bottom: 0 !important">[[Skill|Типы умений]] и ''[[profession mechanic|механика профессий]]''</div>
+
<div class="heading" style="margin-bottom: 0.5em;">[[Skill|Типы умений]] и ''[[profession mechanic|механика профессий]]''</div>
 
<div class="wrapper" style="padding: 0;">
 
<div class="wrapper" style="padding: 0;">
 
{| class="collapsible" style="width:100%; margin:0;"
 
{| class="collapsible" style="width:100%; margin:0;"
 
|- class="expandable"
 
|- class="expandable"
! style="text-align:right; border-top:1px solid {{any-color|medium}}; border-right:0px; font-size:110%;" colspan="2" | <span style="font-size:90%">Все ссылки:</span>
+
! style="text-align:center; border-top:1px solid {{any-color|medium}}; background:{{any-color|light}}; border-right:0px; padding: 0.25em 0;" colspan="2" | <div style="margin: 0px auto; width: 15em;">{{#ifeq: {{{misc|}}} | y | Другое | Related [[profession]]s}}</div>
|- class="collapse-reverse"
 
| <!-- spacer -->
 
 
{{#arraymap:{{#var:professions}}|,|@@@|
 
{{#arraymap:{{#var:professions}}|,|@@@|
 
{{#if:{{#var:@@@-default}}|
 
{{#if:{{#var:@@@-default}}|
 
{{!}}- class="collapse-reverse"
 
{{!}}- class="collapse-reverse"
! style="width: 10em;" {{!}} [[{{ucfirst:@@@}}|{{rus lang|profession|@@@}}]] {{@@@}}
+
{{!}} <!-- spacer -->
 +
{{!}}- class="collapse-reverse"
 +
! style="width: 10em; border-right:2px solid {{color|mech2|border}}" {{!}} [[{{ucfirst:@@@}}|{{rus lang|profession|@@@}}]] {{@@@}}
 
{{!}} {{#arraymap:{{#var:@@@-types}}|;|&&&| {{#if:
 
{{!}} {{#arraymap:{{#var:@@@-types}}|;|&&&| {{#if:
 
   {{#vardefine:link-page  | {{#explode:&&&|/|0}} }}
 
   {{#vardefine:link-page  | {{#explode:&&&|/|0}} }}
Строка 95: Строка 95:
 
   {{#vardefine:link      | [[{{#var:link-page}}|{{#var:link-label|{{#var:link-page}}}}]] }}
 
   {{#vardefine:link      | [[{{#var:link-page}}|{{#var:link-label|{{#var:link-page}}}}]] }}
 
}} {{#ifeq: {{#var:is-mechanic|n}} | y | ''{{#var:link}}'' | {{#var:link}} }}
 
}} {{#ifeq: {{#var:is-mechanic|n}} | y | ''{{#var:link}}'' | {{#var:link}} }}
|&#32;•&#32;}} {{#arraymap:{{#var:@@@-specs}}|,|###|
+
|&nbsp;•&#32;}} {{#arraymap:{{#var:@@@-specs}}|,|###|
{{#if:{{#var:###-default}}|&#32;•&#32;{{#arraymap:{{#var:###-types}}|;|&&&| {{#if:
+
{{#if:{{#var:###-default}}|&nbsp;•&#32;{{#arraymap:{{#var:###-types}}|;|&&&| {{#if:
 
   {{#vardefine:link-page  | {{#explode:&&&|/|0}} }}
 
   {{#vardefine:link-page  | {{#explode:&&&|/|0}} }}
 
   {{#vardefine:is-mechanic| {{#explode:&&&|/|1}} }}
 
   {{#vardefine:is-mechanic| {{#explode:&&&|/|1}} }}
Строка 102: Строка 102:
 
   {{#vardefine:link      | [[{{#var:link-page}}|{{#var:link-label|{{#var:link-page}}}}]] }}
 
   {{#vardefine:link      | [[{{#var:link-page}}|{{#var:link-label|{{#var:link-page}}}}]] }}
 
}} <span style="display: inline-block;">{{###}} {{#ifeq: {{#var:is-mechanic|n}} | y | ''{{#var:link}}'' | {{#var:link}} }}</span>
 
}} <span style="display: inline-block;">{{###}} {{#ifeq: {{#var:is-mechanic|n}} | y | ''{{#var:link}}'' | {{#var:link}} }}</span>
|&#32;•&#32;}}}}
+
|&nbsp;•&#32;}}}}
 
|\n}}
 
|\n}}
 
}}
 
}}
|\n}}{{#ifeq: {{{misc|}}} | y |
+
|\n}}
{{!}}- class="collapse-reverse"
+
{{#ifeq: {{{misc|}}} | y |
! Слоты
+
{{!}}- style="display:table-row"
 +
{{!}} <!-- spacer -->
 +
{{!}}- style="display:table-row"
 +
! style="border-right:2px solid {{any-color|border}}; width: 9.2em;" {{!}} Слоты
 
{{!}} {{#var:slots}}
 
{{!}} {{#var:slots}}
{{!}}- class="collapse-reverse"
+
{{!}}- style="display:table-row"
! [[Skill#Тип активации|Активация]]
+
! style="border-right:2px solid {{any-color|border}}" {{!}} [[Skill#Тип активации|Активация]]
 
{{!}} {{#var:activation}}
 
{{!}} {{#var:activation}}
 +
{{!}}- style="display:table-row"
 +
! style="border-right:2px solid {{any-color|border}}" {{!}} [[Movement|Движение]]
 +
{{!}} {{#var:movement}}
 +
{{!}}- style="display:table-row"
 +
{{!}} style="padding-bottom: 0.5em; border-right:0px solid" {{!}} <!-- spacer -->
 +
|
 
{{!}}- class="collapse-reverse"
 
{{!}}- class="collapse-reverse"
! [[Movement|Движение]]
+
{{!}} style="padding-bottom: 0.5em" {{!}} <!-- spacer -->
{{!}} {{#var:movement}}
 
 
}}
 
}}
|- class="collapse-reverse"
 
| style="padding-bottom: 0.5em" | <!-- spacer -->
 
 
{{#arraymap:{{#var:professions}}|,|@@@|
 
{{#arraymap:{{#var:professions}}|,|@@@|
 
{{!}}-
 
{{!}}-
Строка 125: Строка 131:
 
{{#arraymap:@@@,{{#var:@@@-specs}}|,|###|
 
{{#arraymap:@@@,{{#var:@@@-specs}}|,|###|
 
{{!}}-
 
{{!}}-
! style="width: 10em; border-right:2px solid {{color|@@@|border}}" {{!}} {{#ifeq: @@@ | ### | Общие | [[{{ucfirst:###}}|{{rus lang|specialization|###}}]]&nbsp;{{###}} }}
+
! style="width: 10em; border-right:2px solid {{color|@@@|border}}" {{!}} {{#ifeq: @@@ | ### | Общие {{###}} | [[{{ucfirst:###}}|{{rus lang|specialization|###}}]]&nbsp;{{###}} }}
 
{{!}} {{#arraymap:{{#var:###-types}}|;|&&&| {{#if:
 
{{!}} {{#arraymap:{{#var:###-types}}|;|&&&| {{#if:
 
   {{#vardefine:link-page  | {{#explode:&&&|/|0}} }}
 
   {{#vardefine:link-page  | {{#explode:&&&|/|0}} }}
Строка 132: Строка 138:
 
   {{#vardefine:link      | [[{{#var:link-page}}|{{#var:link-label|{{#var:link-page}}}}]] }}
 
   {{#vardefine:link      | [[{{#var:link-page}}|{{#var:link-label|{{#var:link-page}}}}]] }}
 
}} {{#ifeq: {{#var:is-mechanic|n}} | y | ''{{#var:link}}'' | {{#var:link}} }}
 
}} {{#ifeq: {{#var:is-mechanic|n}} | y | ''{{#var:link}}'' | {{#var:link}} }}
|&#32;•&#32;}}
+
|&nbsp;•&#32;}}
 
|\n}}
 
|\n}}
 
{{!}}-
 
{{!}}-
Строка 139: Строка 145:
 
|\n}}
 
|\n}}
 
|-
 
|-
! style="text-align:center; border-top:1px solid {{any-color|border}}; background:{{color|any|light}}; border-right:0px; padding: 0.25em 0;" colspan="2" | Другое
+
{{#ifeq: {{{misc|}}} | y | <!-- already shown on top --> |
|-
+
! style="text-align:center; border-top:1px solid {{any-color|medium}}; background:{{color|any|light}}; border-right:0px; padding: 0.25em 0;" colspan="2" {{!}} Другое
| <!-- spacer -->
+
{{!}}-
|-
+
{{!}} <!-- spacer -->
! style="border-right:2px solid {{any-color|border}}" | Слоты
+
{{!}}-
| {{#var:slots}}
+
! style="border-right:2px solid {{any-color|border}}" {{!}} Слоты
|-
+
{{!}} {{#var:slots}}
! style="border-right:2px solid {{any-color|border}}" | [[Skill#Тип активации|Активация]]
+
{{!}}-
| {{#var:activation}}
+
! style="border-right:2px solid {{any-color|border}}" {{!}} [[Skill#Тип активации|Активация]]
|-
+
{{!}} {{#var:activation}}
! style="border-right:2px solid {{any-color|border}}" | [[Movement|Движение]]
+
{{!}}-
 +
! style="border-right:2px solid {{any-color|border}}" {{!}} [[Movement|Движение]]
 
{{!}} {{#var:movement}}
 
{{!}} {{#var:movement}}
|-
+
{{!}}-
| style="padding-bottom: 0.5em" | <!-- spacer -->
+
{{!}} style="padding-bottom: 0.5em" {{!}} <!-- spacer -->
 +
}}
 
|}
 
|}
 
</div>
 
</div>
Строка 173: Строка 181:
  
 
=== Examples ===
 
=== Examples ===
<pre style="width: 50%;">
+
<pre>
 
{{Skill types nav|Trap}}
 
{{Skill types nav|Trap}}
 
</pre>
 
</pre>
 
{{Skill types nav|Trap}}
 
{{Skill types nav|Trap}}
  
<pre style="width: 50%;">
+
<pre>
 
{{Skill types nav|professions=warrior,spellbreaker,mesmer,mirage}}
 
{{Skill types nav|professions=warrior,spellbreaker,mesmer,mirage}}
 
</pre>
 
</pre>
 
{{Skill types nav|professions=warrior,spellbreaker,mesmer,mirage}}
 
{{Skill types nav|professions=warrior,spellbreaker,mesmer,mirage}}
 +
 +
<pre>
 +
{{Skill types nav|misc=y}}
 +
</pre>
 +
{{Skill types nav|misc=y}}
 +
 
[[Category:Navigation templates|{{PAGENAME}}]]</noinclude>
 
[[Category:Navigation templates|{{PAGENAME}}]]</noinclude>

Версия 22:34, 1 июня 2021

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

{{Skill types nav|misc=y}}