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

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
Строка 1: Строка 1:
<noinclude>{| class="elementalist skills table"
+
<includeonly><!--
</noinclude>
+
 
{{#vardefine:showWeapon|{{{showWeapon|false}}}}}
+
  Please note that the column widths of the following templates match and should only be consistently changed together:
{{#vardefine:showType|{{{showType|true}}}}}
+
    1. Template:Weapon skill table header
{{#vardefine:hasInitiative|{{{hasInitiative|false}}}}}
+
    2. Template:Profession mechanic skill table header
|-
+
    3. Template:Slot skill table header
! style="width:0.7em;"  |
+
    4. Template:Trait table header
! style="width:12.5em;" | Умение<!--
+
    5. Template:Mastery table
-->{{#ifeq:{{#var:showWeapon}}|true|!! style="width:8em; text-align:center;" {{!}} Оружие}}<!--
+
 
-->{{#ifeq:{{#var:showType}}|true|!! style="width:{{#ifeq:{{#var:hasInitiative}}|true|6.5|{{#ifeq:{{#var:energy|x}}|y|6.5|9.5}}}}em; text-align:center;" {{!}} Тип}}
+
-->{{#if: <!-- hide whitespace -->
 +
 
 +
{{#vardefine:showWeapon   |{{{showWeapon   |false}}}}}
 +
{{#vardefine:showType     |{{{showType     |true}}}}}
 +
{{#vardefine:showEnergy    |{{{showEnergy    |false}}}}}
 +
{{#vardefine:showInitiative|{{{showInitiative|false}}}}}
 +
 
 +
}}|-
 +
! style="width:1.5em;"  | #
 +
! style="width:{{#expr: 21.5 {{#ifeq: {{#var:showWeapon}}|true|-9|{{#ifeq: {{#var:showType}}|true|-9}}}}}}em; | Умение
 +
{{#ifeq:{{#var:showWeapon}}|true|! style="width:9em;" {{!}} Оружие <!-- only one extra column allowed, set others to false --> {{#vardefine:showType|false}} |
 +
{{#ifeq:{{#var:showType  }}|true|! style="width:9em;" {{!}} Тип }} }}
 
! style="width:2.5em; text-align:center;" | [[File:Ground_target_aim.png|18px|link=Targeting#Прицеливание на землю|Прицеливание на землю]]
 
! style="width:2.5em; text-align:center;" | [[File:Ground_target_aim.png|18px|link=Targeting#Прицеливание на землю|Прицеливание на землю]]
! style="width:2.5em; text-align:center;" | [[File:Activation.png|link=Activation time|Время активации]]
+
! style="width:2.5em;text-align:center;" | [[File:Activation.png|link=Activation time|Время активации]]
{{#ifeq:{{#var:energy|x}}|y|! style="width:2.5em; text-align:center;" {{!}} [[File:Energy.png|20px|link=Energy|Энергия]]{{#ifeq:{{#var:hasInitiative}}|true|!}}}}{{#ifeq:{{#var:hasInitiative}}|true|! style="width:2.5em; text-align:center;" {{!}} [[File:Initiative.png|link=Initiative|Инициатива]]}}
+
{{#ifeq:{{#var:showEnergy}}|true|! style="width:2.5em; text-align:center;" {{!}} [[File:Energy.png|20px|link=Energy|Энергия]]{{#ifeq:{{#var:showInitiative}}|true|!}}}}{{#ifeq:{{#var:showInitiative}}|true|! style="width:2.5em; text-align:center;" {{!}} [[File:Initiative.png|link=Initiative|Инициатива]]}}
 
! style="width:2.5em; text-align:center;" | [[File:Tango-recharge-darker.png|link=Recharge|Время перезарядки]]
 
! style="width:2.5em; text-align:center;" | [[File:Tango-recharge-darker.png|link=Recharge|Время перезарядки]]
 
! style="width:{{#ifeq:{{#var:showType}}|true|45.4|54.7}}%;" | Описание
 
! style="width:{{#ifeq:{{#var:showType}}|true|45.4|54.7}}%;" | Описание
<noinclude>|}
+
</includeonly><noinclude>
 +
== Description ==
 +
Provides the standard header row for weapon skill tables. Rows in the table should use {{tl|weapon skill table row}}. Only one of the following optional columns can be shown at the same time: ''Type'' or ''Weapon''.
  
Provides the standard header row for weapon skill tables. Rows in the table should use {{tl|weapon skill table row}}.
+
== Usage ==
 +
<pre>{{Weapon skill table header}}
 +
{{Weaopn skill table header|showType=<true/false>|showWeapon=<true/false>|showEnergy=<true/false>|showInitiative=<true/false>}}</pre>
 +
=== Parameters ===
 +
;showType
 +
: Optional. Shows type column and displays the Property [[Property:Has skill type|Has skill type]], disabled on default. Can be set to "true".
 +
;showWeapon
 +
: Optional. Shows weapon column and displays the Property [[Property:Is for weapon|Is for weapon]] (e.g. for [[Symbol]] skills), disabled on default. Can be set to "true".
 +
;showEnergy
 +
: Optional. Shows energy column and displays the Property [[Property:Has energy cost|Has energy cost]], disabled on default. Can be set to "true".
 +
;showInitiative
 +
: Optional. Shows initiative column instead the recharge column and displays the Property [[Property:Has initiative cost|Has initiative cost]], disabled on default. Can be set to "true".
  
Example code (result shown above):
+
=== Example ===
<nowiki>{| class="elementalist skills table"
+
<pre>{| {{STDT|elementalist skills}}
{{weapon skill table header}}
+
{{Weapon skill table header}}
|}</nowiki>
+
|}</pre>
 +
{| {{STDT|elementalist skills}}
 +
{{Weapon skill table header}}
 +
|}
  
 
[[Category:Skill formatting templates]]
 
[[Category:Skill formatting templates]]
 
 
</noinclude>
 
</noinclude>

Версия 06:39, 29 октября 2019

Description

Provides the standard header row for weapon skill tables. Rows in the table should use {{weapon skill table row}}. Only one of the following optional columns can be shown at the same time: Type or Weapon.

Usage

{{Weapon skill table header}}
{{Weaopn skill table header|showType=<true/false>|showWeapon=<true/false>|showEnergy=<true/false>|showInitiative=<true/false>}}

Parameters

showType
Optional. Shows type column and displays the Property Has skill type, disabled on default. Can be set to "true".
showWeapon
Optional. Shows weapon column and displays the Property Is for weapon (e.g. for Symbol skills), disabled on default. Can be set to "true".
showEnergy
Optional. Shows energy column and displays the Property Has energy cost, disabled on default. Can be set to "true".
showInitiative
Optional. Shows initiative column instead the recharge column and displays the Property Has initiative cost, disabled on default. Can be set to "true".

Example

{| {{STDT|elementalist skills}}
{{Weapon skill table header}}
|}
# Умение Прицеливание на землю Время активации Время перезарядки Описание