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

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
 
Строка 15: Строка 15:
 
}}|-
 
}}|-
 
! style="width:{{#expr:23.5 {{#ifeq:{{#var:showType}}|true|-5.6}} {{#ifeq:{{#var:showEnergy}}|true|-3.6}}}}em;"  | Умение  
 
! style="width:{{#expr:23.5 {{#ifeq:{{#var:showType}}|true|-5.6}} {{#ifeq:{{#var:showEnergy}}|true|-3.6}}}}em;"  | Умение  
{{#ifeq:{{#var:showType}}|true|! style="width:9em;" {{!}} Тип }}
+
{{#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: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:Underwater.png|link=Underwater mode#Подводные умения|Подводный режим]]
Строка 21: Строка 21:
 
{{#ifeq:{{#var:showEnergy}}|true|! style="width:2.5em; text-align:center;" {{!}} [[File:Energy.png|20px|link=Energy|Энергия/Поддержание]]}}
 
{{#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:2.5em; text-align:center;"  | [[File:Tango-recharge-darker.png|link=Recharge|Время перезарядки]]
! style="width:{{#expr:61 {{#ifeq:{{#var:showType}}|true|-5.6}}}}em;" | Описание
+
! style="width:{{#expr:61 {{#ifeq:{{#var:showType}}|true|-{{#ifeq: {{{wide type column|false}}}|true|17|5.6}}}}}}em;" | Описание
 
</includeonly><noinclude>
 
</includeonly><noinclude>
 
== Description ==
 
== Description ==
Строка 32: Строка 32:
 
;showType
 
;showType
 
: Optional. Shows type column and displays the property [[Property:Has skill type|Has skill type]], disabled on default. Can be set to "true".
 
: 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
 
;showEnergy
 
: Optional. Shows energy column and displays the property [[Property:Has energy cost|Has energy cost]], disabled on default. Can be set to "true".
 
: Optional. Shows energy column and displays the property [[Property:Has energy cost|Has energy cost]], disabled on default. Can be set to "true".

Текущая версия на 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}}
|}
Умение Прицеливание на землю Подводный режим Время активации Время перезарядки Описание