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

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
 
(не показаны 4 промежуточные версии этого же участника)
Строка 1: Строка 1:
 
<includeonly>|- class="{{lc:{{{5|}}}}} {{{class|}}}"
 
<includeonly>|- class="{{lc:{{{5|}}}}} {{{class|}}}"
 
| style="text-align:center;" | {{{7|}}}
 
| style="text-align:center;" | {{{7|}}}
| {{#ifeq: {{{userparam|}}} | chain | <span style="display:none">{{#show: {{{1}}} | ?Has chain sequence | default = {{{1}}} }} chain</span> }}<span style="vertical-align:middle;">{{#switch: {{{userparam|}}}
+
| <span style="vertical-align:middle;">{{#switch: {{#if: {{{chain|}}}|{{lc:{{{chain|}}}}}|{{lc:{{{6|}}}}}}}
  | chain = [[File:Redirect Arrow.png|25px|link=]]
+
| n | no | none =
  | toolbelt = [[File:Chain Arrow Toolbelt.png|25px|link=Tool belt|Пояс с инструментами]]
+
  | 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 = [[File:Berserker.png|25px|link=Berserker|Берсерк]][[File:Chain Arrow Toolbelt.png|25px|link=Primal burst|Первобытная ярость]]
+
  | primalburst | primal burst = [[File:Chain Arrow Toolbelt.png|25px|link=Primal Burst|Первобытная ярость]]
  | stealth = [[File:Chain Arrow Toolbelt.png|25px|link=Stealth Attack|Атака невидимки]]
+
  | stealth | stealth attack = [[File:Chain Arrow Toolbelt.png|25px|link=Stealth Attack|Атака невидимки]]
 
  | ambush = [[File:Chain Arrow Toolbelt.png|25px|link=Ambush|Засада]]
 
  | ambush = [[File:Chain Arrow Toolbelt.png|25px|link=Ambush|Засада]]
  | underwater = [[File:Underwater.png|link=Underwater mode|Подводный режим]]
+
  | #default = {{#ifexpr: {{#if:{{{14|}}}|{{{14|}}}|1}} > 1|[[File:Redirect Arrow.png|25px|link=|Цепочка]]}}
}}{{borderless|{{#sub:{{{3|}}}|5}}|25|link={{{1}}}}}&nbsp;[[{{{1}}}|{{{2|}}}]]</span>
+
}}{{borderless|{{#sub:{{{3|}}}|5}}|25|link={{{1}}}}}&nbsp;[[{{{1}}}|{{{2|}}}]]</span> {{#if: {{{13|}}}|<small>{{#ifeq:{{{13|}}}|None|(без оружия в левой руке)|(с [[{{{13|}}}|{{#switch:{{lc:{{{13|}}}}}|dagger=кинжалом|pistol=пистолетом|#default={{{13|}}}}}]] в левой руке)}}</small>}}{{#ifeq:{{#var:showUnderwater}}|true|<span style="float:right">{{#switch:{{{15|}}}|N|Land only=[[File:Not available underwater.png|20px|link=Underwater mode#Подводные умения|Недоступно под водой]]|Underwater only=[[File:Underwater.png|link=Underwater mode#Подводные умения|Подводное умение]]}}</span>}}
 
{{#ifeq: {{#var:showWeapon}}|true|{{!}} {{#if: {{{12|}}} | [[{{{12|}}}|{{rus lang|weapon|{{{12|}}}}}]] }} |
 
{{#ifeq: {{#var:showWeapon}}|true|{{!}} {{#if: {{{12|}}} | [[{{{12|}}}|{{rus lang|weapon|{{{12|}}}}}]] }} |
 
{{#ifeq: {{#var:showType  }}|true|{{!}} {{#if: {{{6|}}}  | {{#arraymap:{{{6}}}|,|@@@|[[@@@|{{rus lang|skill type|@@@}}]]|,&#32;}} }} }} }}
 
{{#ifeq: {{#var:showType  }}|true|{{!}} {{#if: {{{6|}}}  | {{#arraymap:{{{6}}}|,|@@@|[[@@@|{{rus lang|skill type|@@@}}]]|,&#32;}} }} }} }}
| style="text-align:center;" | {{#ifeq:{{{13}}}|Y|[[File:Ground_target_aim.png|18px|Прицеливание на землю|link=Targeting#Прицеливание на землю]]}}
+
| style="text-align:center;" | {{#ifeq:{{{16}}}|Y|[[File:Ground_target_aim.png|18px|Прицеливание на землю|link=Targeting#Прицеливание на землю]]}}
 
| style="text-align:center;" data-sort-value="{{{8|0}}}" | {{fraction|{{{8|}}}}}
 
| style="text-align:center;" data-sort-value="{{{8|0}}}" | {{fraction|{{{8|}}}}}
 
{{#ifeq: {{#var:showEnergy}}|true|{{!}} style="text-align:center;" data-sort-value="{{{11|0}}}" {{!}} {{{11|}}}{{#ifeq:{{#var:showInitiative}}|true|{{!}}}}}}{{#ifeq:{{#var:showInitiative}}|true|{{!}} style="text-align:center;" data-sort-value="{{{10|0}}}" {{!}} {{{10|}}} }}
 
{{#ifeq: {{#var:showEnergy}}|true|{{!}} style="text-align:center;" data-sort-value="{{{11|0}}}" {{!}} {{{11|}}}{{#ifeq:{{#var:showInitiative}}|true|{{!}}}}}}{{#ifeq:{{#var:showInitiative}}|true|{{!}} style="text-align:center;" data-sort-value="{{{10|0}}}" {{!}} {{{10|}}} }}
Строка 33: Строка 34:
 
# Has energy cost
 
# Has energy cost
 
# Is for weapon
 
# Is for weapon
 +
# Requires offhand
 +
# Has chain sequence position
 +
# Is usable underwater
 
# Is ground targeted
 
# Is ground targeted
;Additional parameters
 
: userparam = <nowiki>{{{chain}}}</nowiki>
 
: <nowiki>{{{class}}}</nowiki>
 
  
 
[[Category:Skill formatting templates]]
 
[[Category:Skill formatting templates]]
 
[[Category:Semantic result templates]]
 
[[Category:Semantic result templates]]

Текущая версия на 09:42, 15 декабря 2019

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

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

  1. PAGENAME
  2. Has canonical name
  3. Has game icon
  4. Has game description
  5. Is for profession
  6. Has skill type
  7. Has skill slot number
  8. Has activation time
  9. Has recharge time
  10. Has initiative cost
  11. Has energy cost
  12. Is for weapon
  13. Requires offhand
  14. Has chain sequence position
  15. Is usable underwater
  16. Is ground targeted