Шаблон:Slot skill table row format — различия между версиями

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
 
 
(не показана 31 промежуточная версия этого же участника)
Строка 1: Строка 1:
<includeonly>|- class="{{lc:{{{5|}}}}}"
+
<includeonly>{{#ifeq: {{{5|}}}{{{include tool belt|false}}}|Engineertrue|{{#ifeq: {{{18|}}}|{{#var:last_sort}}||{{Slot skill table row/toolbelt|skill={{#var:last_sort}}}}}}}}<!--
| {{#if:{{{userparam|}}}|<!-- WILL HAVE TO DO SOMETHING ABOUT THIS <span style="display:none">{{#var:parent-{{{1}}}}} chain</span> -->}}<span style="vertical-align:middle;">{{#switch:{{{userparam|}}}
+
-->{{#ifeq: {{#var:slot skill table}}|true|{{#vardefine:this_profession|{{#if:{{{5|}}}|{{{5}}}|Common}}}}<!--
|chain=[[File:Redirect Arrow.png|25px|link=]]
+
-->{{#switch: {{#var:header css class{{#var:table id}}}}|<!-- empty, not defined yet-->={{#vardefine:header css class{{#var:table id}}|{{lc:{{{5|}}}}}}}|<!-- same class -->{{lc:{{{5|}}}}}=|<!-- dummy class to distinguish from emtpy -->#default={{#vardefine:header css class{{#var:table id}}|white}}}}<!--
|toolbelt=[[File:Chain Arrow Toolbelt.png|25px|link=Tool belt|Пояс с инструментами]]
+
 
|burst=[[File:Chain Arrow Toolbelt.png|25px|link=Burst|Вспышка ярости]]
+
Profession subheader
|stealth=[[File:Chain Arrow Toolbelt.png|25px|link=Stealth Attack|Атака невидимки]]
+
 
|underwater=[[File:Underwater.png|link=Underwater mode|Подводный режим]]
+
-->{{#ifeq: {{#var:showProfessionSubheader|false}}|true
}}{{borderless|{{#sub:{{{3|}}}|5}}|25|link={{{1}}}}}&nbsp;[[{{{1}}}|{{{2|}}}]]</span>
+
| {{#ifeq: {{#var:this_profession}}{{{6|}}}|{{#var:last_profession}}{{#var:last_specialization}}|<!-- same profession+specialization, do nothing -->
{{#ifeq:{{#var:showType}}|true|
+
  | {{#vardefine:last_profession|{{#var:this_profession}}}}{{#vardefine:last_specialization|{{{6|}}}}}{{#vardefine:last_type|<!-- new profession section, reset type -->}}
{{!}} {{#if:{{{6|}}}|{{#arraymap:{{{6}}}|,|@@@|{{#switch:@@@
+
{{!}}- class="{{lc:{{{5|}}}}}"
                              | Добродетель = [[Virtue|Добродетель]]
+
! colspan="7" {{!}} {{#tag: {{#var:profession heading|h4}}|{{#ifeq: {{{6|}}}|| {{ {{#var:this_profession}} }} [[{{#var:this_profession}}]] | {{ {{{6|}}} }} [[{{{6|}}}]] }} }}
                              | Освящение = [[Consecration|Освящение]]
+
{{!}}-
                              | Медитация = [[Meditation|Медитация]]
+
  }}
                              | Призрачное оружие = [[Spirit weapon|Призрачное оружие]]
+
}}<!--
                              | Символ = [[Symbol|Символ]]
+
 
                              | Фолиант = [[Tome|Фолиант]]
+
Type subheader
                              | Оберег = [[Ward|Оберег]]
+
 
                              | Легенда = [[Legend|Легенда]]
+
-->{{#ifeq: {{#var:showTypeSubheader|false}}|true
                              | Legendary Dragon Stance = [[@@@|Стойка легендарного дракона]]
+
| {{#ifeq: {{{9|}}}|{{#var:last_type}}|<!-- same type, do nothing -->
                              | Вспышка ярости = [[Burst|Вспышка ярости]]
+
  | {{#vardefine:last_type|{{{9|}}}}}
                              | Первобытная ярость = [[Primal burst|Первобытная ярость]]
+
{{!}}- class="{{lc:{{{5|}}}}}"
                              | Стяг = [[Banner|Стяг]]
+
! colspan="7" {{!}} {{#tag: {{#ifeq: {{#var:type heading}} | plain | span | {{#var:type heading|h5}} }} | {{#arraymap:{{{9|}}}|,|@@@|[[@@@]]|,\s}} {{#ifeq: {{#var:showProfessionSubheader|false}}|true||{{#ifeq: {{{6|}}}|<!--empty-->||<small>(requires {{ {{{6|}}} }} [[{{{6|}}}]])</small>}} }} }}
                              | Грубая сила = [[Physical|Грубая сила]]
+
{{!}}-
                              | Гнев = [[Rage|Гнев]]
+
  }}
                              | Стойка = [[Stance|Стойка]]
+
}}
                              | Пояс с инструментами = [[Tool belt|Пояс&nbsp;с инструментами]]
+
}}<!--
                              | Набор оборудования = [[Device kit|Набор оборудования]]
+
 
                              | Эликсир = [[Elixir|Эликсир]]
+
Slot skill row
                              | Приспособление = [[Gadget|Приспособление]]
+
 
                              | Турель = [[Turret|Турель]]
+
-->|- class="{{lc:{{{5|}}}}} {{{class|}}}"
                              | Оружейный набор = [[Weapon kit|Оружейный набор]]
+
| <span style="vertical-align:middle;">{{#switch: {{#if: {{{chain|}}}|{{lc:{{{chain|}}}}}|{{#if: <!-- tool belts may have more than one skill type-->{{#pos:{{lc:{{{8|}}}}}|tool belt}}|tool belt|{{lc:{{{8|}}}}}}}}}
                              | Коптер = [[Gyro|Коптер]]
+
| n | no | none =
                              | Питомец (тип умения) = [[Pet (skill type)|Питомец]]
+
| chain = [[File:Redirect Arrow.png|25px|link=|Цепочка]]
                              | Дух = [[Spirit|Дух]]
+
| toolbelt
                              | Выживание = [[Survival|Выживание]]
+
| tool belt = [[File:Chain Arrow Toolbelt.png|25px|link=Tool belt|Пояс с инструментами]]
                              | Кража = [[Stolen skill|Украденное умение]]
+
| burst = [[File:Chain Arrow Toolbelt.png|25px|link=Burst|Вспышка ярости]]
                              | Хитрость (тип умения) = [[Deception (skill type)|Хитрость]]
+
| primalburst
                              | Сдвоенное умение = [[Dual wield|Сдвоенное умение]]
+
| primal burst = [[File:Chain Arrow Toolbelt.png|25px|link=Primal Burst|Первобытная ярость]]
                              | Атака невидимки = [[Stealth Attack|Атака невидимки]]
+
| stealth
                              | Уловка = [[Trick|Уловка]]
+
| stealth attack = [[File:Chain Arrow Toolbelt.png|25px|link=Stealth Attack|Атака невидимки]]
                              | Яд = [[Venom|Яд]]
+
| ambush = [[File:Chain Arrow Toolbelt.png|25px|link=Ambush|Засада]]
                              | Настройка = [[Attunement|Настройка]]
+
| fire = [[File:Parent arrow.png|25px|link=]][[File:Fire Attunement.png|25px|link=Fire Attunement]]
                              | Таинство = [[Arcane|Таинство]]
+
| water = [[File:Parent arrow.png|25px|link=]][[File:Water Attunement.png|25px|link=Water Attunement]]
                              | Колдовство = [[Cantrip|Колдовство]]
+
| air = [[File:Parent arrow.png|25px|link=]][[File:Air Attunement.png|25px|link=Air Attunement]]
                              | Сотворение = [[Conjure|Сотворение]]
+
| earth = [[File:Parent arrow.png|25px|link=]][[File:Earth Attunement.png|25px|link=Earth Attunement]]
                              | Глиф = [[Glyph|Глиф]]
+
| celestial = [[File:Parent arrow.png|25px|link=]][[File:Celestial Avatar.png|25px|link=Celestial Avatar]]
                              | Осколки = [[Shatter|Осколки]]
+
| non_cele = [[File:Parent arrow.png|25px|link=]][[File:Release Celestial Avatar.png|25px|link=Celestial Avatar]]
                              | Клон = [[Clone|Клон]]
+
| #default = {{#if: {{#var:last_sequence}}{{#var:last_sort}}<!-- checking if empty due to #var caching bug -->
                              | Волшебство = [[Glamour|Волшебство]]
+
              | <!-- automatic  -->{{#if: {{#ifeq: {{{17|}}}|{{#var:last_sequence}}|+|<!-- fallback, same skill sort name -->{{#ifeq:{{{18|}}}|{{#var:last_sort}}|+}}}}<!--  
                              | Обман = [[Manipulation|Обман]]
+
                                  -->| {{#ifexpr: {{#if:{{{10|}}}|{{{10|}}}|1}} > 1|[[File:Redirect Arrow.png|25px|link=|Chain]]}}}}
                              | Мантра = [[Mantra|Мантра]]
+
              | <!-- manual case -->{{#ifexpr: {{#if:{{{10|}}}|{{{10|}}}|1}} > 1|[[File:Redirect Arrow.png|25px|link=|Chain]]}}}}
                              | Фантом = [[Phantasm|Фантом]]
+
              }}{{#vardefine:last_sequence|{{{17|}}}}}{{#vardefine:last_sort|{{{18|}}}}}<!--
                              | Порча = [[Corruption|Порча]]
+
--><span style="overflow: hidden; width: 25px; height: 25px; display:inline-block; vertical-align:middle;"><span style="margin: -4px; overflow: hidden; display: inline-block;">[[{{{3|}}}|33x33px|link={{{1}}}]]</span></span>&nbsp;[[{{{1}}}|{{{2|}}}]]</span>
                              | Метка = [[Mark|Метка]]
+
{{#ifeq:{{#var:showType}}|true|{{!!}} {{#if:{{{8|}}}|{{#arraymap:{{{8}}}|,|@@@|[[@@@|{{rus lang|skill type|@@@}}]]|,&#32;}} }} }}
                              | Миньон = [[Minion|Миньон]]
+
| style="text-align:center;" | {{#ifeq:{{{20}}}|Y|[[File:Ground_target_aim.png|18px|Прицеливание на землю|link=Targeting#Прицеливание на землю]]}}
                              | Призрак = [[Spectral|Призрак]]
+
| style="text-align:center;" | {{#switch:{{{16|}}}|Land only=[[File:Not available underwater.png|20px|link=Underwater mode#Подводные умения|Недоступно под водой]]|Underwater only=[[File:Underwater.png|link=Underwater mode#Подводные умения|Подводное умение]]}}
                              | Источник = [[Well|Источник]]
+
| style="text-align:center;" | {{fraction|{{{11|}}}}}
                              | Цепочка = [[Chain|Цепочка]]
+
{{#ifeq:{{#var:showEnergy}}|true|{{!}} style="text-align:center;" {{!}} {{{14|}}}{{#if:{{{14|}}}|{{#if:{{{15|}}}|&nbsp;/&nbsp;}}}}{{{15|}}} }}
                              | Крик = [[Shout|Крик]]
+
| style="text-align:center;" | {{fraction|{{{12|}}}}}
                              | Печать = [[Signet|Печать]]
+
| style="padding-left:2em" | {{{4|}}}
                              | Преображение = [[Transform|Преображение]]
 
                              | Ловушка = [[Trap|Ловушка]]
 
                              | #default = [[@@@]]
 
                              }}}} }} }}
 
| style="text-align:right; padding-right:29px;" | {{#ifeq:{{{13}}}|Y|[[File:Ground_target_aim.png|18px|Прицеливание на землю|link=Targeting#Прицеливание на землю]]}}
 
| style="text-align:right; padding-right:29px;" | {{#ifeq:{{{10|Y}}}|N|[[File:Not available underwater.png|20px|link=Underwater mode#Подводные умения|Недоступно под водой]]}}
 
| style="text-align:right; padding-right:29px;" data-sort-value="{{{7|0}}}"  | {{{7|}}}
 
| style="text-align:right; padding-right:29px;" data-sort-value="{{{8|0}}}"  | {{fraction|{{{8|}}}}}
 
{{#ifeq:{{#var:energy|x}}|y|{{!}} style="text-align:right; padding-right:29px;" data-sort-value="{{{11|0}}}" {{!}} {{{11|}}}{{#if:{{{11|}}}|{{#if:{{{12|}}}|/}}}}{{{12|}}} }}
 
| style="text-align:right; padding-right:29px;" data-sort-value="{{{9|0}}}" | {{fraction|{{{9|}}}}}
 
| {{{4|}}}
 
 
</includeonly><noinclude>
 
</includeonly><noinclude>
Called as a semantic result template by [[Template:Slot skill table row]].
+
Called as a semantic result template by [[Template:Slot skill table row]] and [[Template:Slot skill table]].
  
 
=== Input parameter list ===
 
=== Input parameter list ===
# PAGENAME
+
# Skill                                <!-- 1 -->
# Has canonical name
+
# Has canonical name                   <!-- 2 -->
# Has game icon
+
# Has game icon                       <!-- 3 -->
# Has game description
+
# Has game description                 <!-- 4 -->
# Is for profession
+
# Is for profession                   <!-- 5 -->
# Has skill type
+
# Is for specialization                <!-- 6 -->
# Has skill point cost
+
# Has skill context                    <!-- 7 -->
# Has activation time
+
# Has skill type                       <!-- 8 -->
# Has recharge time
+
# Has skill type sort order            <!-- 9 -->
# Is usable underwater
+
# Has chain sequence position          <!--10 -->
# Has energy cost
+
# Has activation time                 <!--11 -->
# Has upkeep cost
+
# Has recharge time                   <!--12 -->
# Is ground targeted
+
# Has initiative cost                  <!--13 -->
* userparam = <nowiki>{{{chain}}}</nowiki>
+
# Has energy cost                     <!--14 -->
 +
# Has upkeep cost                     <!--15 -->
 +
# Is usable underwater                <!--16 -->
 +
# Has chain sequence                  <!--17 -->
 +
# Has skill sort order                <!--18 -->
 +
# Has ammunition number                <!--19 -->
 +
# Is ground targeted                  <!--20 -->
  
 
[[Category:Skill formatting templates]]
 
[[Category:Skill formatting templates]]
 
[[Category:Semantic result templates]]
 
[[Category:Semantic result templates]]
 +
</noinclude>

Текущая версия на 10:27, 5 января 2024

Called as a semantic result template by Template:Slot skill table row and Template:Slot skill table.

Input parameter list[править]

  1. Skill
  2. Has canonical name
  3. Has game icon
  4. Has game description
  5. Is for profession
  6. Is for specialization
  7. Has skill context
  8. Has skill type
  9. Has skill type sort order
  10. Has chain sequence position
  11. Has activation time
  12. Has recharge time
  13. Has initiative cost
  14. Has energy cost
  15. Has upkeep cost
  16. Is usable underwater
  17. Has chain sequence
  18. Has skill sort order
  19. Has ammunition number
  20. Is ground targeted