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

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
Строка 1: Строка 1:
 +
<includeonly>{{#if:
 +
{{#vardefine:professions|guardian, revenant, warrior, engineer, ranger, thief, elementalist, mesmer, necromancer}}
 +
{{#vardefine:page|{{{1|{{PAGENAME}}}}}}}
 +
 +
<!-- Elite specialization definition (in order of release) -->
 +
{{#vardefine:guardian-specs    | dragonhunter, firebrand }}
 +
{{#vardefine:revenant-specs    | herald, renegade }}
 +
{{#vardefine:warrior-specs      | berserker, spellbreaker }}
 +
{{#vardefine:engineer-specs    | scrapper, holosmith }}
 +
{{#vardefine:ranger-specs      | druid, soulbeast }}
 +
{{#vardefine:thief-specs        | daredevil, deadeye }}
 +
{{#vardefine:elementalist-specs | tempest, weaver }}
 +
{{#vardefine:mesmer-specs      | chronomancer, mirage }}
 +
{{#vardefine:necromancer-specs  | reaper, scourge }}
 +
 +
<!--
 +
Types are in a list separated by ';'. Each type definition can have up to 3 parts, separated by '/', as follows:
 +
1/ Page name.
 +
2/ Whether it's a profession mechanic (y/n). Defaults to n.
 +
3/ Link text. Defaults to page name.
 +
-->
 +
 +
<!-- Core profession types -->
 +
{{#vardefine:guardian-types    | Consecration; Meditation; Shout; Signet; Spirit weapon; Symbol; Virtue/y; Ward }}
 +
{{#vardefine:revenant-types    | Energy/y; Legend/y; Legendary Assassin Stance/n/Legendary Assassin; Legendary Centaur Stance/n/Legendary Centaur; Legendary Demon Stance/n/Legendary Demon; Legendary Dwarf Stance/n/Legendary Dwarf}}
 +
{{#vardefine:warrior-types      | Adrenaline/y; Banner; Burst/y; Physical; Shout; Signet; Stance }}
 +
{{#vardefine:engineer-types    | Elixir; Engineering kit; Gadget; Tool belt/y; Turret }}
 +
{{#vardefine:ranger-types      | Beast/y; Pet/y; Shout; Signet; Spirit; Survival; Trap }}
 +
{{#vardefine:thief-types        | Deception (skill type)/n/Deception; Dual Wield; Initiative/y; Signet; Steal/y; Stealth Attack; Trap; Trick; Venom }}
 +
{{#vardefine:elementalist-types | Arcane; Attunement/y; Cantrip; Conjure; Glyph; Signet }}
 +
{{#vardefine:mesmer-types      | Clone; Glamour; Illusion/y; Manipulation; Mantra; Phantasm; Shatter/y; Signet }}
 +
{{#vardefine:necromancer-types  | Corruption; Death Shroud/y; Life force/y; Mark; Minion; Signet; Spectral; Well }}
 +
 +
<!-- Heart of Thorns elite spec types -->
 +
{{#vardefine:dragonhunter-types | Trap }}
 +
{{#vardefine:herald-types      | Facet of Nature/y; Legendary Dragon Stance/n/Legendary Dragon }}
 +
{{#vardefine:berserker-types    | Berserk/y; Primal burst/y; Rage }}
 +
{{#vardefine:scrapper-types    | Function Gyro (trait skill)/y/Function Gyro; Gyro }}
 +
{{#vardefine:druid-types        | Celestial Avatar/y; Glyph }}
 +
{{#vardefine:daredevil-types    | Physical }}
 +
{{#vardefine:tempest-types      | Overload/y; Shout }}
 +
{{#vardefine:chronomancer-types | Continuum Split/y; Well }}
 +
{{#vardefine:reaper-types      | Reaper's Shroud/y; Shout }}
 +
 +
<!-- Path of Fire elite spec types -->
 +
{{#vardefine:firebrand-types    | Final Charge; Mantra; Tome/y }}
 +
{{#vardefine:renegade-types    | Citadel Order/y; Legendary Renegade Stance/n/Legendary Renegade }}
 +
{{#vardefine:spellbreaker-types | Full Counter/y; Meditation }}
 +
{{#vardefine:holosmith-types    | Exceed; Heat/y; Photon Forge/y }}
 +
{{#vardefine:soulbeast-types    | Beastmode/y; Stance }}
 +
{{#vardefine:deadeye-types      | Cantrip; Deadeye's Mark/y; Kneel; Malice (effect)/y/Malice }}
 +
{{#vardefine:weaver-types      | Dual Attack/y; Stance }}
 +
{{#vardefine:mirage-types      | Ambush/y; Deception (skill type)/n/Deception; Mirage Cloak (effect)/y/Mirage Cloak }}
 +
{{#vardefine:scourge-types      | Punishment; Shade/y }}
 +
 +
<!-- Miscellaneous -->
 +
{{#vardefine:slots              | [[Skill bar#Weapon skills|Weapon]]{{bullet}}[[Healing skill|Healing]]{{bullet}}[[Utility skill|Utility]]{{bullet}}[[Elite skill|Elite]]{{bullet}}[[List of downed skills|Downed]]{{bullet}}[[List of drowning skills|Drowning]]{{bullet}}[[Special action skill|Special action]] }}
 +
{{#vardefine:activation        | [[Ammunition System|Ammunition]]{{bullet}}[[Chain]]{{bullet}}[[Channeled skill|Channel]]{{bullet}}[[Charge skill|Charge]]{{bullet}}[[Sequence skill|Sequence]]{{bullet}}[[Transform]] }}
 +
 +
<!-- Unset all variables holding which professions to open by default -->
 +
{{#arraymap:{{#var:professions}}|,|@@@| {{#arraymap:@@@,{{#var:@@@-specs}}|,|###|{{#vardefine:###-default|}}|\n}} |\n}}
 +
 +
<!-- Set them according to the professions parameter -->
 +
{{#if: {{{professions|}}} | {{#arraymap:{{{professions}}}|,|@@@|{{#vardefine:@@@-default|yes}}|\n}} |
 +
 +
<!-- Otherwise choose the default professions for the given page title -->
 +
  {{#arraymap:{{#var:professions}}|,|@@@|
 +
      {{#arraymap:@@@,{{#var:@@@-specs}}|,|###|
 +
        {{#arraymap:{{#var:###-types}}|;|&&&|
 +
            {{#ifeq: {{#explode:&&&|/|0}} | {{#var:page}} | {{#vardefine:@@@-default|yes}}{{#vardefine:###-default|yes}} }}
 +
        |\n}}
 +
      |\n}}
 +
  |\n}}
 +
}}
 +
 +
}}<!--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:700px">
 
<div class="box">
 
<div class="box">
<div class="heading">[[Skill type|Типы умений]]</div>
+
<div class="heading" style="margin-bottom: 0 !important">[[Skill type|Типы умений]] и ''[[profession mechanic|механика профессий]]''</div>
<div class="wrapper" style="text-align:center">
+
<div class="wrapper">
{|  
+
{| class="collapsible" style="width:100%; margin:0;"
! [[Guardian|Страж]] {{g}}
+
|- class="expandable"
| style="text-align:left;" | [[Consecration|Освящение]]{{bullet}}[[Meditation|Медитация]]{{bullet}}[[Shout|Крик]]{{bullet}}[[Signet|Печать]]{{bullet}}[[Spirit weapon|Призрачное оружие]]{{bullet}}[[Symbol|Символ]]{{bullet}}[[Ward|Оберег]]<br/>''[[Trap|Ловушка]]''{{bullet}}''[[Final Charge|Финальный заряд]]''{{bullet}}''[[Mantra|Мантра]]''{{bullet}}''[[Tome|Фолиант]]''
+
! 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>
 +
|- class="collapse-reverse"
 +
| <!-- spacer -->
 +
{{#arraymap:{{#var:professions}}|,|@@@|
 +
{{#if:{{#var:@@@-default}}|
 +
{{!}}- class="collapse-reverse"
 +
! style="width: 110px;" {{!}} [[{{ucfirst:@@@}}]] {{@@@}}
 +
{{!}} {{#arraymap:{{#var:@@@-types}}|;|&&&| {{#if:
 +
  {{#vardefine:link-page  | {{#explode:&&&|/|0}} }}
 +
  {{#vardefine:is-mechanic| {{#explode:&&&|/|1}} }}
 +
  {{#vardefine:link-label | {{#explode:&&&|/|2}} }}
 +
  {{#vardefine:link      | [[{{#var:link-page}}|{{#var:link-label|{{#var:link-page}}}}]] }}
 +
}} {{#ifeq: {{#var:is-mechanic|n}} | y | ''{{#var:link}}'' | {{#var:link}} }}
 +
|&#32;•&#32;}} {{#arraymap:{{#var:@@@-specs}}|,|###|
 +
{{#if:{{#var:###-default}}|&#32;•&#32;{{#arraymap:{{#var:###-types}}|;|&&&| {{#if:
 +
  {{#vardefine:link-page  | {{#explode:&&&|/|0}} }}
 +
  {{#vardefine:is-mechanic| {{#explode:&&&|/|1}} }}
 +
  {{#vardefine:link-label | {{#explode:&&&|/|2}} }}
 +
  {{#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>
 +
|&#32;•&#32;}}}}
 +
|\n}}
 +
}}
 +
|\n}}{{#ifeq: {{{misc|}}} | y |
 +
{{!}}- class="collapse-reverse"
 +
! Slot
 +
{{!}} {{#var:slots}}
 +
{{!}}- class="collapse-reverse"
 +
! Activation
 +
{{!}} {{#var:activation}}
 +
}}
 +
|- class="collapse-reverse"
 +
| <!-- spacer -->
 +
{{#arraymap:{{#var:professions}}|,|@@@|
 +
{{!}}-
 +
! style="text-align:center; border-top:1px solid {{color|@@@|border}}; background:{{color|@@@|light}}; border-right:0px" colspan="2" {{!}} {{@@@}} [[{{ucfirst:@@@}}]]
 +
{{!}}-
 +
{{!}} <!-- spacer -->
 +
{{#arraymap:@@@,{{#var:@@@-specs}}|,|###|
 +
{{!}}-
 +
! style="width: 110px; border-right:2px solid {{color|@@@|border}}" {{!}} {{#ifeq: @@@ | ### | Core | [[{{ucfirst:###}}]] {{###}} }}
 +
{{!}} {{#arraymap:{{#var:###-types}}|;|&&&| {{#if:
 +
  {{#vardefine:link-page  | {{#explode:&&&|/|0}} }}
 +
  {{#vardefine:is-mechanic| {{#explode:&&&|/|1}} }}
 +
  {{#vardefine:link-label | {{#explode:&&&|/|2}} }}
 +
  {{#vardefine:link      | [[{{#var:link-page}}|{{#var:link-label|{{#var:link-page}}}}]] }}
 +
}} {{#ifeq: {{#var:is-mechanic|n}} | y | ''{{#var:link}}'' | {{#var:link}} }}
 +
|&#32;•&#32;}}
 +
|\n}}
 +
{{!}}-
 +
{{!}} <!-- spacer -->
 +
{{!}}-
 +
|\n}}
 
|-
 
|-
! [[Revenant|Ревенант]] {{re}}
+
! style="text-align:center; border-top:1px solid {{any-color|border}}; border-right:0px" colspan="2" | Miscellaneous
| style="text-align:left;" | [[Legendary Assassin Stance|Ассасин]]{{bullet}}[[Legendary Centaur Stance|Кентавр]]{{bullet}}[[Legendary Demon Stance|Демон]]{{bullet}}[[Legendary Dwarf Stance|Гном]]<br/>''[[Legendary Dragon Stance|Дракон]]''{{bullet}}''[[Legendary Renegade Stance|Ренегат]]''
 
 
|-
 
|-
! [[Warrior|Воин]] {{w}}
+
| <!-- spacer -->
| style="text-align:left;" | [[Banner|Стяг]]{{bullet}}[[Physical|Грубая сила]]{{bullet}}[[Shout|Крик]]{{bullet}}[[Signet|Печать]]{{bullet}}[[Stance|Стойка]]<br/>''[[Rage|Гнев]]''{{bullet}}''[[Meditation|Медитация]]''
 
 
|-
 
|-
! [[Engineer|Инженер]] {{en}}
+
! style="border-right:2px solid {{any-color|border}}" | Slot
| style="text-align:left;" | [[Engineering kit|Инженерный набор]]{{bullet}}[[Elixir|Эликсир]]{{bullet}}[[Gadget|Приспособление]]{{bullet}}[[Turret|Турель]] <br/>''[[Gyro|Коптер]]''{{bullet}}''[[Exceed|Превышение]]''
+
| {{#var:slots}}
 
|-
 
|-
! [[Ranger|Рейнджер]] {{r}}
+
! style="border-right:2px solid {{any-color|border}}" | Activation
| style="text-align:left;" | [[Shout|Крик]]{{bullet}}[[Signet|Печать]]{{bullet}}[[Spirit|Дух]]{{bullet}}[[Survival|Выживание]]{{bullet}}[[Trap|Ловушка]]<br/>''[[Glyph|Глиф]]''{{bullet}}''[[Stance|Стойка]]''
+
| {{#var:activation}}
 
|-
 
|-
! [[Thief|Вор]] {{t}}
+
| <!-- spacer -->
| style="text-align:left;" | [[Deception (skill type)|Хитрость]]{{bullet}}[[Dual Wield|Сдвоенное умение]]{{bullet}}[[Signet|Печать]]{{bullet}}[[Stealth Attack|Атака невидимки]]{{bullet}}[[Trap|Ловушка]]{{bullet}}[[Trick|Уловка]]{{bullet}}[[Venom|Яд]]<br/>''[[Physical|Грубая сила]]''{{bullet}}''[[Kneel|Преклонить колено]]''{{bullet}}''[[Cantrip|Колдовство]]''
+
|}
|-
+
</div>
! [[Elementalist|Элементалист]] {{e}}
+
</div>
| style="text-align:left;" | [[Arcane|Таинство]]{{bullet}}[[Cantrip|Колдовство]]{{bullet}}[[Conjure|Сотворение]]{{bullet}}[[Glyph|Глиф]]{{bullet}}[[Signet|Печать]]<br/>''[[Shout|Крик]]''{{bullet}}''[[Dual Attack|Двойная атака]]''{{bullet}}''[[Stance|Стойка]]''
+
</div></includeonly><noinclude>
|-
+
== Description ==
! [[Mesmer|Месмер]] {{m}}
+
<pre style="width: 50%;">
| style="text-align:left;" | [[Clone|Клон]]{{bullet}}[[Glamour|Волшебство]]{{bullet}}[[Manipulation|Обман]]{{bullet}}[[Mantra|Мантра]]{{bullet}}[[Phantasm|Фантом]]{{bullet}}[[Signet|Печать]]{{bullet}}<br/>''[[Well|Источник]]''{{bullet}}''[[Ambush|Облава]]''{{bullet}}''[[Deception (skill type)|Хитрость]]''
+
{{Skill types nav}}
|-
+
{{Skill types nav|<page name>}}
! [[Necromancer|Некромант]] {{n}}
+
{{Skill types nav|professions = <list of professions and elite specs>}}
| style="text-align:left;" | [[Corruption|Порча]]{{bullet}}[[Mark|Метка]]{{bullet}}[[Minion|Миньон]]{{bullet}}[[Signet|Печать]]{{bullet}}[[Spectral|Призрак]]{{bullet}}[[Well|Источник]]<br/>''[[Shout|Крик]]''{{bullet}}''[[Punishment|Кара]]''{{bullet}}''[[Shade|Тень]]''
+
</pre>
|-
+
 
| style="padding-top:0; padding-bottom:8px;" |
+
=== Parameters ===
| style="text-align:left; padding-top:0; padding-bottom:8px; font-size:9px;" | ''Курсивный'' шрифт означает, что данный тип умения доступен только элитной [[specialization|специализации]] этой профессии.
+
; ''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
| style="text-align:left;" | [[Skill bar#Weapon skills|Оружейные]]{{bullet}}[[Healing skill|Исцеляющие]]{{bullet}}[[Utility skill|Вспомогательные]]{{bullet}}[[Elite skill|Элитные]]{{bullet}}[[List of downed skills|Повержен]]{{bullet}}[[List of drowning skills|Утопление]]{{bullet}}[[Special action skill|Особое действие]]
+
: 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 <tt>y</tt>, the "Miscellaneous" rows will be shown by default.
| style="text-align:left;" | [[Chain|Цепочка]]{{bullet}}[[Channeled skill|Поток]]{{bullet}}[[Charge skill|Зарядка]]{{bullet}}[[Sequence skill|Последовательность]]{{bullet}}[[Transform|Преображение]]
+
 
|-
+
=== Examples ===
! Связанные&nbsp;ссылки
+
<pre style="width: 50%;">
| style="text-align:left;" | [[Profession|Профессия]]{{bullet}}[[Profession mechanic|Механика профессии]]
+
{{Skill types nav|Trap}}
|}</div></div></div><noinclude>
+
</pre>
 +
{{Skill types nav|Trap}}
 +
 
 +
 
 +
<pre style="width: 50%;">
 +
{{Skill types nav|professions=warrior,spellbreaker,mesmer,mirage}}
 +
</pre>
 +
{{Skill types nav|professions=warrior,spellbreaker,mesmer,mirage}}
 
[[Category:Navigation templates|{{PAGENAME}}]]</noinclude>
 
[[Category:Navigation templates|{{PAGENAME}}]]</noinclude>

Версия 05:34, 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}}