Шаблон:Profession mechanic skill table header — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
(не показано 29 промежуточных версий этого же участника) | |||
Строка 1: | Строка 1: | ||
− | < | + | <includeonly><!-- |
− | < | + | |
− | {{#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| | + | 1. Template:Weapon skill table header |
− | {{#vardefine:showPet|{{{showPet|false}}}}} | + | 2. Template:Profession mechanic skill table header |
− | {{#vardefine:showArchetype|{{{showArchetype|false}}}}} | + | 3. Template:Slot skill table header |
− | {{#vardefine: | + | 4. Template:Trait table header |
− | |- | + | 5. Template:Mastery table |
− | ! style="width: | + | |
− | ! style="width: | + | -->{{#if: <!-- hide whitespace --> |
− | + | ||
− | + | {{#vardefine:showWeapon |{{{showWeapon |false}}}}} | |
− | -->{{#ifeq:{{#var:showPet}}|true| | + | {{#vardefine:showType |{{{showType |false}}}}} |
− | -->{{#ifeq:{{#var:showArchetype}}|true| | + | {{#vardefine:showPet |{{{showPet |false}}}}} |
+ | {{#vardefine:showArchetype |{{{showArchetype |false}}}}} | ||
+ | {{#vardefine:showEnergy |{{{showEnergy |false}}}}} | ||
+ | {{#vardefine:showInitiative|{{{showInitiative|false}}}}} | ||
+ | {{#vardefine:showUnderwater|{{{showUnderwater|false}}}}} | ||
+ | |||
+ | }}|- | ||
+ | ! style="width:1.31em;" | # | ||
+ | ! style="width:{{#expr:24.7 {{#ifeq:{{#var:showWeapon}}|true|-5.6|{{#ifeq:{{#var:showType}}|true|-5.6|{{#ifeq:{{#var:showPet}}|true|-10.1|{{#ifeq:{{#var:showArchetype}}|true|-10.1}}}}}}}} {{#ifeq:{{#var:showEnergy}}|true|-3.5}} {{#ifeq:{{#var:showInitiative}}|true|-3.5}}}}em; | Умение | ||
+ | {{#ifeq:{{#var:showWeapon }}|true|! style="width:9em;" {{!}} Оружие <!-- only one extra column allowed, set others to false --> {{#vardefine:showArchetype|false}}{{#vardefine:showPet|false}}{{#vardefine:showType|false}} | | ||
+ | {{#ifeq:{{#var:showType }}|true|! style="width:9em;" {{!}} Тип <!-- only one extra column allowed, set others to false --> {{#vardefine:showArchetype|false}}{{#vardefine:showPet|false}} | | ||
+ | {{#ifeq:{{#var:showPet }}|true|! style="width:11.4em;" {{!}} Питомец <!-- only one extra column allowed, set others to false --> {{#vardefine:showArchetype|false}} | | ||
+ | {{#ifeq:{{#var:showArchetype}}|true|! style="width:11.4em;" {{!}} Архетип }} }} }} }} | ||
! 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: | + | {{#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|20px|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: | + | ! style="width:{{#expr:61 {{#ifeq:{{#var:showWeapon}}|true|-5.6|{{#ifeq:{{#var:showType}}|true|-5.6|}}}}}}em;" | Описание |
− | <noinclude>|} | + | </includeonly><noinclude> |
+ | == Description == | ||
+ | Provides the standard header row for weapon skill tables. Rows in the table should use {{tl|Profession mechanic skill table row}}. Only one of the following optional columns can be shown at the same time: ''Type'', ''Weapon'', ''Pet'' or ''Archetype''. | ||
− | + | == Usage == | |
+ | <pre>{{Profession mechanic skill table header}} | ||
+ | {{Profession mechanic skill table header|showType=<true/false>|showWeapon=<true/false>|showPet=<true/false>|showArchetype=<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". | ||
+ | ;showPet | ||
+ | : Optional. Shows pet column and displays the property [[Property:Is for pet|Is for pet]], disabled on default. Can be set to "true". | ||
+ | ;showArchetype | ||
+ | : Optional. Shows archetype column and displays the property [[Property:Has pet archetype|Has pet archetype]], 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". | ||
+ | ;showUnderwater | ||
+ | : Optional. Shows underwater icon and displays the property [[Property:Is usable underwater|Is usable underwater]], disabled on default. Can be set to "true". | ||
+ | |||
+ | === Example === | ||
+ | <pre>{| {{STDT|elementalist skills}} | ||
{{Profession mechanic skill table header}} | {{Profession mechanic skill table header}} | ||
− | |}</ | + | |}</pre> |
+ | {| {{STDT|elementalist skills}} | ||
+ | {{Profession mechanic skill table header}} | ||
+ | |} | ||
[[Category:Skill formatting templates]] | [[Category:Skill formatting templates]] | ||
− | |||
</noinclude> | </noinclude> |
Текущая версия на 08:40, 24 мая 2021
Содержание
Description[править]
Provides the standard header row for weapon skill tables. Rows in the table should use {{Profession mechanic skill table row}}. Only one of the following optional columns can be shown at the same time: Type, Weapon, Pet or Archetype.
Usage[править]
{{Profession mechanic skill table header}} {{Profession mechanic skill table header|showType=<true/false>|showWeapon=<true/false>|showPet=<true/false>|showArchetype=<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".
- showPet
- Optional. Shows pet column and displays the property Is for pet, disabled on default. Can be set to "true".
- showArchetype
- Optional. Shows archetype column and displays the property Has pet archetype, 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".
- showUnderwater
- Optional. Shows underwater icon and displays the property Is usable underwater, disabled on default. Can be set to "true".
Example[править]
{| {{STDT|elementalist skills}} {{Profession mechanic skill table header}} |}
# | Умение | Описание |
---|