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

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
Строка 1: Строка 1:
<noinclude>{| class="elementalist skills table"
+
<includeonly><!--
</noinclude>
+
 
{{#vardefine:showType|{{{showType|true}}}}}
+
  Please note that the column widths of the following templates match and should only be consistently changed together:
|-
+
    1. Template:Weapon skill table header
! style="width:12.5em;" | Умение
+
    2. Template:Profession mechanic skill table header
{{#ifeq:{{#var:showType}}|true|! style="width:6.5em;" {{!}} Тип}}
+
    3. Template:Slot skill table header
 +
    4. Template:Trait table header
 +
    5. Template:Mastery table
 +
 
 +
-->{{#if: <!-- hide whitespace -->
 +
 
 +
{{#vardefine:showType |{{{showType |true}}}}}
 +
{{#vardefine:showEnergy|{{{showEnergy|false}}}}}
 +
 
 +
}}|-
 +
! style="width:12.5em;"                   | Умение  
 +
{{#ifeq:{{#var:showType}}|true|! style="width:6.5em;" {{!}} Тип }}
 
! style="width:2.5px; text-align:center;" | [[File:Ground_target_aim.png|18px|link=Targeting#Прицеливание на землю|Прицеливание на землю]]
 
! style="width:2.5px; text-align:center;" | [[File:Ground_target_aim.png|18px|link=Targeting#Прицеливание на землю|Прицеливание на землю]]
! style="width:2.5px; text-align:center;" | [[File:Underwater.png|link=Underwater mode#Подводные умения|Подводный режим]]
+
! style="width:2.5px; text-align:center;" | [[File:Underwater.png|link=Underwater mode#Подводные умения|Подводный режим]]
! style="width:2.5px; text-align:center;" | [[File:Hero point.png|20px|link=Hero point|Очко героя]]
+
! style="width:2.5px; text-align:center;" | [[File:Hero point.png|20px|link=Hero point|Очки героя]]
! style="width:2.5px; text-align:center;" | [[File:Activation.png|link=Activation time|Время активации]]
+
! style="width:2.5px; text-align:center;" | [[File:Activation.png|link=Activation time|Время активации]]
{{#ifeq:{{#var:energy|x}}|y|! style="width:2.5px; text-align:center;" {{!}} [[File:Energy.png|20px|link=Energy|Энергия/Поддержка]]}}
+
{{#ifeq:{{#var:showEnergy}}|true|! style="width:2.5px; text-align:center;" {{!}} [[File:Energy.png|20px|link=Energy|Энергия/Поддержка]]}}
! style="width:2.5px; text-align:center;" | [[File:Tango-recharge-darker.png|link=Recharge|Время перезарядки]]
+
! style="width:2.5px; 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 slot skill tables. Rows in the table should use {{tl|slot skill table row}}.
  
Provides the standard header row for slot skill tables. Rows in the table should use {{tl|slot skill table row}}.
+
== Usage ==
 +
<pre>{{Slot skill table header}}
 +
{{Slot skill table header|showType=<true/false>|showEnergy=<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".
 +
;showEnergy
 +
: Optional. Shows energy column and displays the Property [[Property:Has energy cost|Has energy cost]], disabled on default. Can be set to "true".
  
Example code (result shown above):
+
=== Example ===
<nowiki>{| class="elementalist skills table"
+
<pre>{| {{STDT|elementalist skills}}
{{slot skill table header}}
+
{{Slot skill table header}}
|}</nowiki>
+
|}</pre>
 +
{| {{STDT|elementalist skills}}
 +
{{Slot skill table header}}
 +
|}
  
 
[[Category:Skill formatting templates]]
 
[[Category:Skill formatting templates]]
 
 
</noinclude>
 
</noinclude>

Версия 07:09, 29 октября 2019

Description

Provides the standard header row for slot skill tables. Rows in the table should use {{slot skill table row}}.

Usage

{{Slot skill table header}}
{{Slot skill table header|showType=<true/false>|showEnergy=<true/false>}}

Parameters

showType
Optional. Shows type column and displays the Property Has skill type, 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".

Example

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