Шаблон:Slot skill table row format — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
(не показано 26 промежуточных версий этого же участника) | |||
Строка 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}}}}}}}}<!-- |
− | | {{# | + | -->{{#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|Пояс с инструментами]] | + | |
+ | Profession subheader | ||
+ | |||
+ | -->{{#ifeq: {{#var:showProfessionSubheader|false}}|true | ||
+ | | {{#ifeq: {{#var:this_profession}}{{{6|}}}|{{#var:last_profession}}{{#var:last_specialization}}|<!-- same profession+specialization, do nothing --> | ||
+ | | {{#vardefine:last_profession|{{#var:this_profession}}}}{{#vardefine:last_specialization|{{{6|}}}}}{{#vardefine:last_type|<!-- new profession section, reset type -->}} | ||
+ | {{!}}- class="{{lc:{{{5|}}}}}" | ||
+ | ! colspan="7" {{!}} {{#tag: {{#var:profession heading|h4}}|{{#ifeq: {{{6|}}}|| {{ {{#var:this_profession}} }} [[{{#var:this_profession}}]] | {{ {{{6|}}} }} [[{{{6|}}}]] }} }} | ||
+ | {{!}}- | ||
+ | }} | ||
+ | }}<!-- | ||
+ | |||
+ | Type subheader | ||
+ | |||
+ | -->{{#ifeq: {{#var:showTypeSubheader|false}}|true | ||
+ | | {{#ifeq: {{{9|}}}|{{#var:last_type}}|<!-- same type, do nothing --> | ||
+ | | {{#vardefine:last_type|{{{9|}}}}} | ||
+ | {{!}}- class="{{lc:{{{5|}}}}}" | ||
+ | ! 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>}} }} }} | ||
+ | {{!}}- | ||
+ | }} | ||
+ | }} | ||
+ | }}<!-- | ||
+ | |||
+ | Slot skill row | ||
+ | |||
+ | -->|- class="{{lc:{{{5|}}}}} {{{class|}}}" | ||
+ | | <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|}}}}}}}}} | ||
+ | | n | no | none = | ||
+ | | chain = [[File:Redirect Arrow.png|25px|link=|Цепочка]] | ||
+ | | toolbelt | ||
+ | | tool belt = [[File:Chain Arrow Toolbelt.png|25px|link=Tool belt|Пояс с инструментами]] | ||
| burst = [[File:Chain Arrow Toolbelt.png|25px|link=Burst|Вспышка ярости]] | | burst = [[File:Chain Arrow Toolbelt.png|25px|link=Burst|Вспышка ярости]] | ||
− | | | + | | primalburst |
− | | | + | | primal burst = [[File:Chain Arrow Toolbelt.png|25px|link=Primal Burst|Первобытная ярость]] |
− | + | | stealth | |
− | + | | stealth attack = [[File:Chain Arrow Toolbelt.png|25px|link=Stealth Attack|Атака невидимки]] | |
− | + | | ambush = [[File:Chain Arrow Toolbelt.png|25px|link=Ambush|Засада]] | |
− | + | | fire = [[File:Parent arrow.png|25px|link=]][[File:Fire Attunement.png|25px|link=Fire Attunement]] | |
− | + | | water = [[File:Parent arrow.png|25px|link=]][[File:Water Attunement.png|25px|link=Water Attunement]] | |
− | + | | air = [[File:Parent arrow.png|25px|link=]][[File:Air Attunement.png|25px|link=Air Attunement]] | |
− | + | | earth = [[File:Parent arrow.png|25px|link=]][[File:Earth Attunement.png|25px|link=Earth Attunement]] | |
− | + | | celestial = [[File:Parent arrow.png|25px|link=]][[File:Celestial Avatar.png|25px|link=Celestial Avatar]] | |
− | + | | non_cele = [[File:Parent arrow.png|25px|link=]][[File:Release Celestial Avatar.png|25px|link=Celestial Avatar]] | |
− | + | | #default = {{#if: {{#var:last_sequence}}{{#var:last_sort}}<!-- checking if empty due to #var caching bug --> | |
− | + | | <!-- automatic -->{{#if: {{#ifeq: {{{17|}}}|{{#var:last_sequence}}|+|<!-- fallback, same skill sort name -->{{#ifeq:{{{18|}}}|{{#var:last_sort}}|+}}}}<!-- | |
− | + | -->| {{#ifexpr: {{#if:{{{10|}}}|{{{10|}}}|1}} > 1|[[File:Redirect Arrow.png|25px|link=|Chain]]}}}} | |
− | + | | <!-- manual case -->{{#ifexpr: {{#if:{{{10|}}}|{{{10|}}}|1}} > 1|[[File:Redirect Arrow.png|25px|link=|Chain]]}}}} | |
− | + | }}{{#vardefine:last_sequence|{{{17|}}}}}{{#vardefine:last_sort|{{{18|}}}}}<!-- | |
− | + | --><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> [[{{{1}}}|{{{2|}}}]]</span> | |
− | + | {{#ifeq:{{#var:showType}}|true|{{!!}} {{#if:{{{8|}}}|{{#arraymap:{{{8}}}|,|@@@|[[@@@|{{rus lang|skill type|@@@}}]]|, }} }} }} | |
− | + | | style="text-align:center;" | {{#ifeq:{{{20}}}|Y|[[File:Ground_target_aim.png|18px|Прицеливание на землю|link=Targeting#Прицеливание на землю]]}} | |
− | + | | 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#Подводные умения|Подводное умение]]}} | |
− | + | | style="text-align:center;" | {{fraction|{{{11|}}}}} | |
− | + | {{#ifeq:{{#var:showEnergy}}|true|{{!}} style="text-align:center;" {{!}} {{{14|}}}{{#if:{{{14|}}}|{{#if:{{{15|}}}| / }}}}{{{15|}}} }} | |
− | + | | style="text-align:center;" | {{fraction|{{{12|}}}}} | |
− | + | | style="padding-left:2em" | {{{4|}}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | | style="text-align: | ||
− | | style="text-align: | ||
− | | | ||
− | | style="text-align: | ||
− | {{#ifeq:{{#var: | ||
− | | style="text-align: | ||
− | | {{{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 === | ||
− | # | + | # 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 | + | # Has skill context <!-- 7 --> |
− | # Has activation time | + | # Has skill type <!-- 8 --> |
− | # Has recharge time | + | # Has skill type sort order <!-- 9 --> |
− | # | + | # Has chain sequence position <!--10 --> |
− | # Has energy cost | + | # Has activation time <!--11 --> |
− | # Has upkeep cost | + | # Has recharge time <!--12 --> |
− | # Is | + | # Has initiative cost <!--13 --> |
− | + | # 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[править]
- Skill
- Has canonical name
- Has game icon
- Has game description
- Is for profession
- Is for specialization
- Has skill context
- Has skill type
- Has skill type sort order
- Has chain sequence position
- Has activation time
- Has recharge time
- Has initiative cost
- Has energy cost
- Has upkeep cost
- Is usable underwater
- Has chain sequence
- Has skill sort order
- Has ammunition number
- Is ground targeted