Шаблон:Skill infobox — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
Строка 27: | Строка 27: | ||
}} | }} | ||
}}<!-- | }}<!-- | ||
+ | -->{{#if:{{{split|}}}|{{Game mode version|{{{split}}}}}<!-- | ||
+ | -->{{#set:Is for game mode=PvE}}<!-- | ||
+ | -->{{#if:{{#pos:{{#explode:{{{split|}}}|,|0}}|wvw}}|{{#set:Is for game mode=WvW}}}}<!-- | ||
+ | -->{{#if:{{#pos:{{#explode:{{{split|}}}|,|0}}|pvp}}|{{#set:Is for game mode=PvP}}}}<!-- | ||
+ | -->{{Skill infobox/subobject | ||
+ | |split={{{split|}}} | ||
+ | |profession={{{profession|}}} | ||
+ | |icon={{{icon|}}} | ||
+ | |name={{{name|}}} | ||
+ | |hero points={{{hero points|}}} | ||
+ | |initiative-wvw={{{initiative-wvw|}}} | ||
+ | |initiative-pvp={{{initiative-pvp|}}} | ||
+ | |activation={{{activation|}}} | ||
+ | |energy-wvw={{{energy-wvw|}}} | ||
+ | |energy-pvp={{{energy-pvp|}}} | ||
+ | |upkeep-wvw={{{upkeep-wvw|}}} | ||
+ | |upkeep-pvp={{{upkeep-pvp|}}} | ||
+ | |recharge-wvw={{{recharge-wvw|}}} | ||
+ | |recharge-pvp={{{recharge-pvp|}}} | ||
+ | |ground-target={{{ground-target|}}} | ||
+ | |specialization={{{specialization|}}} | ||
+ | |race={{{race|}}} | ||
+ | |pet={{{pet|}}} | ||
+ | |pet-family={{{pet-family|}}} | ||
+ | |parent={{{parent|}}} | ||
+ | |slot={{{slot|}}} | ||
+ | |mainhand={{{mainhand|}}} | ||
+ | |offhand={{{offhand|}}} | ||
+ | |twohand={{{twohand|}}} | ||
+ | |kit={{{kit|}}} | ||
+ | |type={{{type|}}} | ||
+ | |weapon-slot={{{weapon-slot|}}} | ||
+ | |attunement={{{attunement|}}} | ||
+ | |chain1={{{chain1|}}} | ||
+ | |chain2={{{chain2|}}} | ||
+ | |chain3={{{chain3|}}} | ||
+ | |chain4={{{chain4|}}} | ||
+ | |id={{{id|}}} | ||
+ | |description={{{description|}}} | ||
+ | |variables={{{variables|}}} | ||
+ | |status={{{status|}}}<!-- | ||
+ | -->}} }}<!-- | ||
--><div class="infobox skill {{lc:{{{race|{{#var:profession}}}}}}} {{#if:{{{specialization|}}}|specialization}}"> | --><div class="infobox skill {{lc:{{{race|{{#var:profession}}}}}}} {{#if:{{{specialization|}}}|specialization}}"> | ||
Строка 38: | Строка 80: | ||
<div class="statistics"> | <div class="statistics"> | ||
{{#if: {{{uw-replaced-by|}}} |<span>[[File:Not available underwater.png|x20px|link=Underwater mode#Подводные умения|Недоступно под водой]]</span> | | {{#if: {{{uw-replaced-by|}}} |<span>[[File:Not available underwater.png|x20px|link=Underwater mode#Подводные умения|Недоступно под водой]]</span> | | ||
+ | }}{{#if:{{{initiative|}}}{{{initiative-pve|}}} |<!-- | ||
+ | -->{{#set:Has initiative cost={{{initiative-pve|{{{initiative}}}}}}}}{{#if:{{{initiative-wvw|}}}{{{initiative-pvp|}}}|<!-- is split | ||
+ | -->{{initiative/split|{{{initiative|}}}|pve={{{initiative-pve|}}}|wvw={{{initiative-wvw|}}}|pvp={{{initiative-pvp|}}}}}|<!-- is not split | ||
+ | -->{{initiative|{{{initiative}}}}} }} | ||
}}{{#ifeq: {{{activation|0}}} | 0 || | }}{{#ifeq: {{{activation|0}}} | 0 || | ||
− | {{#set:Has activation time= | + | {{#set:Has activation time={{{activation}}}}}{{activation|{{{activation}}}}} |
− | }}{{# | + | }}{{#if:{{{energy|}}}{{{energy-pve|}}} |<!-- |
− | {{#set:Has energy cost={{{energy}}}}}{{energy|{{{energy}}}}} | + | -->{{#set:Has energy cost={{{energy-pve|{{{energy}}}}}}}}{{#if:{{{energy-wvw|}}}{{{energy-pvp|}}}|<!-- is split |
− | }}{{# | + | -->{{energy/split|{{{energy|}}}|pve={{{energy-pve|}}}|wvw={{{energy-wvw|}}}|pvp={{{energy-pvp|}}}}}|<!-- is not split |
− | {{#set:Has upkeep cost={{{upkeep}}}}}{{upkeep|{{{upkeep}}} | + | -->{{energy|{{{energy}}}}} }} |
− | + | }}{{#if:{{{upkeep|}}}{{{upkeep-pve|}}} |<!-- | |
− | {{ | + | -->{{#set:Has upkeep cost={{{upkeep-pve|{{{upkeep}}}}}}}}{{#if:{{{upkeep-wvw|}}}{{{upkeep-pvp|}}}|<!-- is split |
− | }}{{# | + | -->{{upkeep/split|{{{upkeep|}}}|pve={{{upkeep-pve|}}}|wvw={{{upkeep-wvw|}}}|pvp={{{upkeep-pvp|}}}}}|<!-- is not split |
− | {{#set:Has recharge time={{# | + | -->{{upkeep|{{{upkeep}}}}} }} |
+ | }}{{#if:{{{recharge|}}}{{{recharge-pve|}}} |<!-- | ||
+ | -->{{#set:Has recharge time={{{recharge-pve|{{{recharge}}}}}}}}{{#if:{{{recharge-wvw|}}}{{{recharge-pvp|}}}|<!-- is split | ||
+ | -->{{recharge/split|{{{recharge|}}}|pve={{{recharge-pve|}}}|wvw={{{recharge-wvw|}}}|pvp={{{recharge-pvp|}}}}}|<!-- is not split | ||
+ | -->{{recharge|{{{recharge}}}}} }} | ||
}}{{#if: {{{hero points|}}} |<span>[[Has hero point cost::{{{hero points}}}]] [[File:Hero point.png|20px|Очко героя]]</span> }}{{#if: {{{ground-target|}}} | [[File:Ground target aim.png|18px|Прицеливание на землю|link=Targeting#Прицеливание на землю]] {{#set:Is ground targeted=Y}} }} | }}{{#if: {{{hero points|}}} |<span>[[Has hero point cost::{{{hero points}}}]] [[File:Hero point.png|20px|Очко героя]]</span> }}{{#if: {{{ground-target|}}} | [[File:Ground target aim.png|18px|Прицеливание на землю|link=Targeting#Прицеливание на землю]] {{#set:Is ground targeted=Y}} }} | ||
</div> | </div> | ||
Строка 273: | Строка 323: | ||
{{#ifeq: {{lc:{{{historical}}}}} | y | do not categorize }}<!-- legacy support --> | {{#ifeq: {{lc:{{{historical}}}}} | y | do not categorize }}<!-- legacy support --> | ||
| <!-- Do not categorize --> | | | <!-- Do not categorize --> | | ||
− | {{#if: {{{name | + | {{#if: {{{name}}} || [[Category:Unnamed skills]] }} |
{{#if: {{{icon|}}} || {{#ifexist:File:{{#replace:{{PAGENAME}}|:|-}}.png || [[Category:Skills missing icon]] }} }} | {{#if: {{{icon|}}} || {{#ifexist:File:{{#replace:{{PAGENAME}}|:|-}}.png || [[Category:Skills missing icon]] }} }} | ||
{{#if: {{{specialization|}}} | {{#if: {{{specialization|}}} | ||
Строка 447: | Строка 497: | ||
| icon = | | icon = | ||
| description = | | description = | ||
+ | | split = | ||
| variables = | | variables = | ||
| activation = | | activation = | ||
Строка 488: | Строка 539: | ||
;description | ;description | ||
: Skill description. | : Skill description. | ||
+ | ;split | ||
+ | : Game modes that this skill applies to. See {{tl|Game mode version}}. Calls {{tl|Skill infobox/subobject}} for each game mode beside PvE to create subobjects. | ||
;variables | ;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 {{tl|skill fact}} template. | : The skill facts (i.e. bleeding, damage, range, etc.) shown below the description. Each fact should be presented as an individual instance of the {{tl|skill fact}} template. |
Версия 11:25, 18 мая 2018
Description
{{Skill infobox | name = | icon = | description = | split = | 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 if skipped; displays (unnamed skill) if included but left blank.
- icon
- Skill icon to show. If not explicitly stated, displays File:<name>.png; if it was not found, shows instead.
- description
- Skill description.
- split
- Game modes that this skill applies to. See {{Game mode version}}. Calls {{Skill infobox/subobject}} for each game mode beside PvE to create subobjects.
- 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. Also use the tonic parameter to link to the tonic.
- trait: Skills provided by traits. Also use the trait parameter to link to the trait.
- ...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 engineering 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 .. chain4
- 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}} | profession = elementalist | specialization = tempest | slot = weapon | twohand = staff | attunement = fire | weapon-slot = 5 | ground-target = circle | id = 12345 }}
Skill infobox
- Профессия
- Элементалист (список умений)
- Специализация
- Буря
- Оружие
- Посох
- Настройка
- Огонь
- Игр. ссылка
- API
- 12345
“This is an example.
- Кровотечение (5 сек): 110 урона.
- Поддержка устаревших версий: пожалуйста, используйте параметр facts вместо variables.
— Внутриигровое описание