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

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
 
 
(не показаны 22 промежуточные версии этого же участника)
Строка 1: Строка 1:
<noinclude>{| class="elementalist skills table"
+
<includeonly><!--  
</noinclude>|-
 
! style="width:200px;" | Умение
 
{{#vardefine:showType|{{{showType|true}}}}}{{#ifeq:{{#var:showType}}|true|! style="width:100px;" {{!}} Тип }}
 
! style="width:40px; text-align:left;" | [[File:Ground_target_aim.png|18px|link=Targeting#Прицеливание на землю|Прицеливание на землю]]
 
! style="width:40px; text-align:left;" | [[File:Underwater.png|link=Underwater mode#Подводные умения|Подводный режим]]
 
! style="width:40px; text-align:left;" | [[File:Hero point.png|20px|link=Hero point|Очко героя]]
 
! style="width:40px; text-align:left;" | [[File:Activation.png|link=Activation time|Время активации]]
 
{{#ifeq:{{#var:energy|x}}|y|! style="width:43px; text-align:left;" {{!}} [[File:Energy.png|20px|link=Energy|Энергия/Поддержка]]}}
 
! style="width:40px; text-align:left;" | [[File:Tango-recharge-darker.png|link=Recharge|Время перезарядки]]
 
! style="width:{{#switch:{{#var:showType}}|true=45.4%|54.7%}};" | Описание
 
<noinclude>|}
 
  
 +
  Please note that the column widths of the following templates match and should only be consistently changed together:
 +
    1. Template:Weapon skill table header
 +
    2. Template:Profession mechanic skill table header
 +
    3. Template:Slot skill table header
 +
    4. Template:Trait table header
 +
    5. Template:Mastery table
 +
 +
-->{{#if: <!-- hide whitespace -->
 +
 +
{{#vardefine:showType  |{{{showType  |false}}}}}
 +
{{#vardefine:showEnergy|{{{showEnergy|false}}}}}
 +
 +
}}|-
 +
! style="width:{{#expr:23.5 {{#ifeq:{{#var:showType}}|true|-5.6}} {{#ifeq:{{#var:showEnergy}}|true|-3.6}}}}em;"  | Умение
 +
{{#ifeq:{{#var:showType}}|true|! style="width:{{#ifeq: {{{wide type column|false}}}|true|16|9}}em;" {{!}} Тип }}
 +
! style="width:2.5em; text-align:center;"  | [[File:Ground_target_aim.png|18px|link=Targeting#Прицеливание на землю|Прицеливание на землю]]
 +
! style="width:2.5em; text-align:center;"  | [[File:Underwater.png|link=Underwater mode#Подводные умения|Подводный режим]]
 +
! style="width:2.5em; text-align:center;"  | [[File:Activation.png|link=Activation time|Время активации]]
 +
{{#ifeq:{{#var:showEnergy}}|true|! style="width:2.5em; text-align:center;" {{!}} [[File:Energy.png|20px|link=Energy|Энергия/Поддержание]]}}
 +
! style="width:2.5em; text-align:center;"  | [[File:Tango-recharge-darker.png|link=Recharge|Время перезарядки]]
 +
! style="width:{{#expr:61 {{#ifeq:{{#var:showType}}|true|-{{#ifeq: {{{wide type column|false}}}|true|17|5.6}}}}}}em;" | Описание
 +
</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}}.
  
Example code (result shown above):
+
== Usage ==
<nowiki>{| class="elementalist skills table"
+
<pre>{{Slot skill table header}}
{{slot skill table header}}
+
{{Slot skill table header|showType=<true/false>|showEnergy=<true/false>}}</pre>
|}</nowiki>
+
=== 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".
 +
;wide type column
 +
: Optional. Set to "true" to increase the width of the type column. Defaults to "false".
 +
;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 ===
 +
<pre>{| {{STDT|elementalist skills}}
 +
{{Slot skill table header}}
 +
|}</pre>
 +
{| {{STDT|elementalist skills}}
 +
{{Slot skill table header}}
 +
|}
  
 
[[Category:Skill formatting templates]]
 
[[Category:Skill formatting templates]]
 
 
</noinclude>
 
</noinclude>

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

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".
wide type column
Optional. Set to "true" to increase the width of the type column. Defaults to "false".
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}}
|}
Умение Прицеливание на землю Подводный режим Время активации Время перезарядки Описание