Шаблон:Slot skill table header — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
(не показаны 22 промежуточные версии этого же участника) | |||
Строка 1: | Строка 1: | ||
− | < | + | <includeonly><!-- |
− | < | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | ! | ||
− | |||
− | |||
+ | 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}}. | ||
− | + | == 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". | ||
+ | ;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}} |}
Умение | Описание |
---|