Шаблон:Skill infobox — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
Строка 1: | Строка 1: | ||
− | {{# | + | <includeonly>{{#set:Has context=Skill}}<!-- |
− | {{ | + | -->{{infobox status|{{{status|}}}|{{{status notes|}}}}}<!-- |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
-->{{infobox release|{{{release|}}} }}<!-- | -->{{infobox release|{{{release|}}} }}<!-- | ||
+ | -->{{#if: {{{profession|}}} | ||
+ | | {{#vardefine:profession|{{{profession}}}}} | ||
+ | | {{#if: {{{specialization|}}} | ||
+ | | {{#vardefine:profession|{{lc: {{#show:{{{specialization}}}|?Is for profession|link=none|default=common}} }}}} | ||
+ | | {{#vardefine:profession|common}} | ||
+ | }} | ||
+ | }}<!-- | ||
+ | -->{{#set: | ||
+ | | Is for profession={{#if: {{{profession|}}} | {{#switch: {{lc:{{{profession}}}}} | common = Any | #default = {{ucfirst:{{{profession}}}}} }} | Any }} | ||
+ | | Has profession sort order={{#switch: {{lc:{{#var:profession}}}} | | ||
+ | | guardian = 1 | ||
+ | | revenant = 2 | ||
+ | | warrior = 3 | ||
+ | | engineer = 4 | ||
+ | | ranger = 5 | ||
+ | | thief = 6 | ||
+ | | elementalist = 7 | ||
+ | | mesmer = 8 | ||
+ | | necromancer = 9 | ||
+ | | #default = 10 | ||
+ | }} | ||
+ | }}<!-- | ||
+ | |||
--><div class="infobox skill {{lc:{{{race|{{#var:profession}}}}}}} {{#if:{{{specialization|}}}|specialization}}"> | --><div class="infobox skill {{lc:{{{race|{{#var:profession}}}}}}} {{#if:{{{specialization|}}}|specialization}}"> | ||
<div class="icon skill-infobox-icon"> | <div class="icon skill-infobox-icon"> | ||
Строка 71: | Строка 80: | ||
: [[Is for pet family::{{ucfirst:{{{pet-family}}}}}|{{#switch:{{ucfirst:{{{pet-family}}}}}|Armor Fish=Панцирные рыбы|Bear=Медвежьи|Bird=Летающие птицы|Bristleback=Гребнезавры|Canine=Собачьи|Devourer=Пожиратели|Drake=Ящеры|Feline=Кошачьи|Jellyfish=Медузы|Moa=Моа|Porcine=Свиньи|Shark=Акулы|Smokescale=Дымчатые щитни|Spider=Пауки|Wyvern=Виверны|#default={{ucfirst:{{{pet-family|}}}}}}}]] | : [[Is for pet family::{{ucfirst:{{{pet-family}}}}}|{{#switch:{{ucfirst:{{{pet-family}}}}}|Armor Fish=Панцирные рыбы|Bear=Медвежьи|Bird=Летающие птицы|Bristleback=Гребнезавры|Canine=Собачьи|Devourer=Пожиратели|Drake=Ящеры|Feline=Кошачьи|Jellyfish=Медузы|Moa=Моа|Porcine=Свиньи|Shark=Акулы|Smokescale=Дымчатые щитни|Spider=Пауки|Wyvern=Виверны|#default={{ucfirst:{{{pet-family|}}}}}}}]] | ||
}}{{#if: {{{monster|}}} | | }}{{#if: {{{monster|}}} | | ||
− | ; [[ | + | ; [[Bestiary|Монстр]] |
: [[{{ucfirst:{{{monster}}}}}]] | : [[{{ucfirst:{{{monster}}}}}]] | ||
}}{{#if: {{{parent|}}} | | }}{{#if: {{{parent|}}} | | ||
Строка 130: | Строка 139: | ||
| special | | special | ||
| special action = ; [[Skill bar|Слот]]:[[Special action skill|Особое действие]]{{#set:Has skill context=Special action}} | | special action = ; [[Skill bar|Слот]]:[[Special action skill|Особое действие]]{{#set:Has skill context=Special action}} | ||
− | | toy = ; [[Toy|Игрушка]]:{{#if:{{{toy|}}}| | + | | toy = ; [[Toy|Игрушка]]:{{#if:{{{toy|}}}|{{#arraymap:{{{toy}}}|,|@@@|[[@@@]]}}|}} |
| tonic = ; [[Tonic|Тоник]]:{{#if:{{{tonic|}}}|[[{{{tonic}}}]]|}} | | tonic = ; [[Tonic|Тоник]]:{{#if:{{{tonic|}}}|[[{{{tonic}}}]]|}} | ||
| trait = ; [[Trait|Черта]]:{{#if:{{{trait|}}}|[[{{{trait}}}]]|}}{{#set:Has skill context=Trait}} | | trait = ; [[Trait|Черта]]:{{#if:{{{trait|}}}|[[{{{trait}}}]]|}}{{#set:Has skill context=Trait}} | ||
Строка 361: | Строка 370: | ||
| special | | special | ||
| special action = [[Category:Special action skills]] | | special action = [[Category:Special action skills]] | ||
− | | toy = [[Category:{{{toy|}}} skills]] | + | | toy = {{#if: {{#pos:{{{toy}}}|,}} | [[Category:Toy skills]] | [[Category:{{{toy|}}} skills]] }} |
| tonic = [[Category:{{{tonic|}}} skills]] | | tonic = [[Category:{{{tonic|}}} skills]] | ||
| weapon kit | | weapon kit | ||
Строка 389: | Строка 398: | ||
}} | }} | ||
}}{{#ifeq:{{{uw-replaced-by|none}}}|none|<!--display nothing when there is no replacement skill-->|:[[File:Not available underwater.png|x20px]] ''Это умение имеет [[underwater mode|подводную]] версию [[{{{uw-replaced-by}}}]]''}}{{#if:{{{uw-replaces|}}}|:[[File:Underwater.png|x20px]] ''Это умение является [[underwater mode|подводной]] версией [[{{{uw-replaces|}}}]]''}} | }}{{#ifeq:{{{uw-replaced-by|none}}}|none|<!--display nothing when there is no replacement skill-->|:[[File:Not available underwater.png|x20px]] ''Это умение имеет [[underwater mode|подводную]] версию [[{{{uw-replaced-by}}}]]''}}{{#if:{{{uw-replaces|}}}|:[[File:Underwater.png|x20px]] ''Это умение является [[underwater mode|подводной]] версией [[{{{uw-replaces|}}}]]''}} | ||
− | {{Quotation|Внутриигровое описание <sup><nowiki>[</nowiki>[[Guild Wars 2 Wiki:Skill formatting|?]]<nowiki>]</nowiki></sup>|{{{description|''Описание отсутствует.''}}}{{#set:Has game description={{#dplreplace:{{{description|}}}|\[\[Category:Text errors\]\]}}}} | + | {{Quotation|Внутриигровое описание <sup><nowiki>[</nowiki>[[Guild Wars 2 Wiki:Skill formatting|?]]<nowiki>]</nowiki></sup>|{{{description|''Описание отсутствует.''}}}{{#if: {{{description|}}} |
+ | | {{#if: {{#pos: {{{description}}} |id="sic"}}<!-- Check for [sic] tags, if so, remove the template before storing the value --> | ||
+ | | {{#set:Has game description={{#dplreplace:{{{description|}}}|\[\[Category:Text errors\]\]}}}} | ||
+ | | {{#set:Has game description={{{description|}}}}} | ||
+ | }} | ||
+ | }} | ||
{{{variables|}}} | {{{variables|}}} | ||
− | }} | + | }} |
− | {{clear}}<noinclude> | + | {{clear}}</includeonly><noinclude> |
== Description == | == Description == | ||
<pre>{{Skill infobox | <pre>{{Skill infobox | ||
Строка 452: | Строка 466: | ||
: Recharge time. If there is no recharge, define the value as 0. Omitting the recharge does not set [[Property:Has recharge time]]. | : Recharge time. If there is no recharge, define the value as 0. Omitting the recharge does not set [[Property:Has recharge time]]. | ||
;profession | ;profession | ||
− | : Profession that uses the skill. | + | : Profession that uses the skill. Required if the specialization is set too. |
+ | ;specialization | ||
+ | : Specialization required to use skill. | ||
;race | ;race | ||
: Race that uses the skill. | : Race that uses the skill. | ||
Строка 479: | Строка 495: | ||
: Weapon held in the off-hand. | : Weapon held in the off-hand. | ||
;twohand | ;twohand | ||
− | : Weapon held in both hands, including | + | : Weapon held in both hands, including bundles. |
;tool belt | ;tool belt | ||
: The associated tool belt skill. | : The associated tool belt skill. | ||
Строка 522: | Строка 538: | ||
;status | ;status | ||
: Optional. Status of skill. Only set if not currently obtainable ingame, displays relevant notice. Available options: "historical", "future", "unimplemented", "current" (default). | : Optional. Status of skill. Only set if not currently obtainable ingame, displays relevant notice. Available options: "historical", "future", "unimplemented", "current" (default). | ||
− | ;release | + | ;status notes |
+ | : Optional. Allows provision of additional reason for the given status. | ||
+ | ;release | ||
: Optional. The expansion or living world season required to access the content. Displays a notice of the release. See {{tl|infobox release}} for options. | : Optional. The expansion or living world season required to access the content. Displays a notice of the release. See {{tl|infobox release}} for options. | ||
− | |||
− | |||
== Examples == | == Examples == | ||
Строка 544: | Строка 560: | ||
}}</pre> | }}</pre> | ||
{{skill infobox | {{skill infobox | ||
− | | icon = | + | | icon = Firestorm.png |
| description = This is an example. | | description = This is an example. | ||
| activation = 1.5 | | activation = 1.5 | ||
Строка 558: | Строка 574: | ||
| categorize = n | | categorize = n | ||
}} | }} | ||
− | [[Category:Infobox templates | + | [[Category:Infobox templates]] |
+ | </noinclude> |
Версия 19:40, 25 мая 2017
Description
{{Skill infobox | name = | icon = | description = | variables = | activation = | initiative = | energy = | upkeep = | recharge = | profession = | race = | slot = | mainhand = | offhand = | twohand = | tool belt = | attunement = | activity = | kit = | pet = | pet-family = | monster = | parent = | uw-replaced-by = | uw-replaces = | type = | activ-type = | chain1 = | chain2 = | chain3 = | weapon-slot = | hero points = | ground-target = | id = }}
Parameters
All parameters are optional.
- name
- Skill name. Defaults to the page name.
- icon
- Skill icon to show. If not explicitly stated, displays File:<name>.png; if it was not found, shows instead.
- description
- Skill description.
- variables
- The skill facts (i.e. bleeding, damage, range, etc.) shown below the description. Each fact should be presented as an individual instance of the {{skill fact}} template.
- activation
- Activation time. Enter as a decimal, e.g. 1.25.
- initiative
- Initiative cost.
- energy
- Energy cost.
- upkeep
- Energy upkeep cost.
- recharge
- Recharge time. If there is no recharge, define the value as 0. Omitting the recharge does not set Property:Has recharge time.
- profession
- Profession that uses the skill. Required if the specialization is set too.
- specialization
- Specialization required to use skill.
- race
- Race that uses the skill.
- slot
- Skill slot occupied by the skill:
- weapon: Weapon skill.
- environmental: Environmental weapon skill.
- healing: Healing skill.
- utility: Utility skill.
- elite: Elite skill.
- downed: Downed skill.
- drowning: Drowning skill.
- downed and drowning: Both downed and drowning skill.
- celestial: Ranger's skill in Celestial Avatar.
- deathshroud: Necromancer's skill in Death Shroud.
- pet: Pet skill.
- mechanic: Profession specific ability.
- monster: Monster skill.
- toy: Skills provided by toys.
- tonic: Skills provided by tonics.
- trait: Skills provided by traits.
- ...otherwise direct input.
- mainhand
- Weapon held in the main hand.
- offhand
- Weapon held in the off-hand.
- twohand
- Weapon held in both hands, including bundles.
- tool belt
- The associated tool belt skill.
- attunement
- Attunement for elementalist's weapon skills.
- activity
- The activity in which the skill is available.
- kit
- The weapon or device kit that provides the skill.
- pet
- Pet species name (e.g. Jaguar), for skills unique to a specific pet. Do not include the "Juvenile" prefix, the template handles that internally.
- pet-family
- Pet family name (e.g. Feline), for skills common to that family.
- monster
- The monster or monster type that uses this skill
- parent
- Parent skill — the skill which gives access to this skill.
- uw-replaced-by
- For skills that are not usable underwater.
- If the skill is not usable underwater and has an underwater counterpart/replacement, name of the underwater skill.
- If the skill is not usable underwater and does not have a replacment, input none.
- uw-replaces
- For underwater skills that replace a normal skill, name of the skill it replaces.
- type
- Skill type, such as signet.
- activ-type
- Activation type:
- chain: Chain skill.
- channeled or hold: Channeled skill.
- charge: Charge skill.
- chain1 .. chain3
- Skill sequence. Set with the names of the skills in the chain.
- weapon-slot
- Weapon skills only. Used to indicate which fixed position the skill has on a skill bar.
- hero points
- Slot skills only. Used to indicate how many hero points required to unlock the skill.
- ground-target
- Whether the skill has ground targeting or not. Parameter expects type of ground targeting, but providing anything will automatically display to the rightmost of upper properties.
- id
- The skill's internal ID. Generates a game link in the infobox.
- categorize
- Optional. "y" or "n" to turn on/off categorization. Default is on for main namespace articles and off for others. If using "status", don't set this parameter.
- status
- Optional. Status of skill. Only set if not currently obtainable ingame, displays relevant notice. Available options: "historical", "future", "unimplemented", "current" (default).
- status notes
- Optional. Allows provision of additional reason for the given status.
- release
- Optional. The expansion or living world season required to access the content. Displays a notice of the release. See {{infobox release}} for options.
Examples
{{Skill infobox | icon = Skill.png | description = This is an example. | activation = 1.5 | recharge = 45 | variables = {{skill fact|bleeding|5}} | specialization = tempest | slot = weapon | twohand = staff | attunement = fire | weapon-slot = 5 | ground-target = circle | id = 12345 }}
“This is an example.
- Кровотечение (5 сек): 110 урона.
- Поддержка устаревших версий: пожалуйста, используйте параметр facts вместо variables.
— Внутриигровое описание