Шаблон:Skill infobox — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
(не показано 10 промежуточных версий этого же участника) | |||
Строка 216: | Строка 216: | ||
<!-- Underwater useability --> | <!-- Underwater useability --> | ||
− | {{#if: {{{uw-replaced-by|}}} | + | {{#switch: {{lc:{{{slot|}}}}} |
− | + | | downed = {{#set:Is usable underwater=Land only}}{{#vardefine:underwater useability|Land only}} | |
− | + | | drowning = {{#set:Is usable underwater=Underwater only}}{{#vardefine:underwater useability|Underwater only}} | |
− | + | | downed and drowning = {{#set:Is usable underwater=Land and Underwater}}{{#vardefine:underwater useability|Land and Underwater}} | |
− | + | | #default = {{#if: {{{uw-replaced-by|}}} | |
− | + | | {{#set:Is usable underwater=Land only}}{{#vardefine:underwater useability|Land only}} | |
− | + | | {{#if: {{{uw-replaces|}}} | |
− | + | | {{#set:Is usable underwater=Underwater only}}{{#vardefine:underwater useability|Underwater only}} | |
− | + | | {{#switch: {{lc:{{{slot|}}}}} | |
− | + | | weapon = {{#switch: {{lc:{{{twohand|}}}}} | |
+ | | harpoon gun | spear | trident = {{#set:Is usable underwater=Underwater only}}{{#vardefine:underwater useability|Underwater only}} | ||
+ | | #default = {{#set:Is usable underwater=Land only}}{{#vardefine:underwater useability|Land only}} | ||
+ | }} | ||
+ | | mechanic = {{#switch: {{lc:{{{mechanic weapon|}}}}} | ||
+ | | harpoon gun | spear | trident = {{#set:Is usable underwater=Underwater only}}{{#vardefine:underwater useability|Underwater only}} | ||
+ | | #default = {{#set:Is usable underwater=Land only}}{{#vardefine:underwater useability|Land only}} | ||
+ | | <!-- empty --> = {{#set:Is usable underwater=Land and Underwater}}{{#vardefine:underwater useability|Land and Underwater}} | ||
+ | }} | ||
+ | |||
+ | | #default = {{#set:Is usable underwater=Land and Underwater}}{{#vardefine:underwater useability|Land and Underwater}} | ||
+ | }} | ||
}} | }} | ||
}} | }} | ||
Строка 253: | Строка 264: | ||
{{#ifeq: {{lc:{{{activ-type|}}}{{{weapon-slot|}}}}}|chain1 <!-- if activation type "Chain" in weapon slot "1" --> | {{#ifeq: {{lc:{{{activ-type|}}}{{{weapon-slot|}}}}}|chain1 <!-- if activation type "Chain" in weapon slot "1" --> | ||
| {{#if: {{#var:chain sequence position}} | | {{#if: {{#var:chain sequence position}} | ||
− | | {{#switch: {{lc:{{{profession|}}} {{{mainhand|}}}{{{offhand|}}}{{{twohand|}}}{{{bundle| | + | | {{#switch: {{lc:{{{profession|}}} {{{mainhand|}}}{{{offhand|}}}{{{twohand|}}}{{{bundle|{{{parent|}}}}}}}} |
| #default = {{#ifexpr: 0 < {{#var:chain sequence position}} AND {{#var:chain sequence position}} < 3 | {{#vardefine:description chain|{{skill type|Chain}}}}}} <!-- only the first skill descriptions display "Chain." --> | | #default = {{#ifexpr: 0 < {{#var:chain sequence position}} AND {{#var:chain sequence position}} < 3 | {{#vardefine:description chain|{{skill type|Chain}}}}}} <!-- only the first skill descriptions display "Chain." --> | ||
| warrior dagger | | warrior dagger | ||
Строка 387: | Строка 398: | ||
| health cost-wvw = {{{health cost-wvw|}}} | | health cost-wvw = {{{health cost-wvw|}}} | ||
| health cost-pvp = {{{health cost-pvp|}}} | | health cost-pvp = {{{health cost-pvp|}}} | ||
− | | recharge = {{{recharge|}}} | + | | recharge = {{#replace:{{{recharge|}}}|.|,}} |
− | | recharge-wvw = {{{recharge-wvw|}}} | + | | recharge-wvw = {{#replace:{{{recharge-wvw|}}}|.|,}} |
− | | recharge-pvp = {{{recharge-pvp|}}} | + | | recharge-pvp = {{#replace:{{{recharge-pvp|}}}|.|,}} |
| ground-target = {{{ground-target|}}} | | ground-target = {{{ground-target|}}} | ||
| specialization = {{{specialization|}}} | | specialization = {{{specialization|}}} | ||
Строка 408: | Строка 419: | ||
| sort type = {{{sort type|}}} | | sort type = {{{sort type|}}} | ||
| sort = {{{sort|}}} | | sort = {{{sort|}}} | ||
+ | | activ-type = {{{activ-type|}}} | ||
+ | | movement type = {{{movement type|}}} | ||
| weapon-slot = {{{weapon-slot|}}} | | weapon-slot = {{{weapon-slot|}}} | ||
| mechanic-slot = {{{mechanic-slot|}}} | | mechanic-slot = {{{mechanic-slot|}}} | ||
Строка 443: | Строка 456: | ||
| <!-- display nothing --> | | <!-- display nothing --> | ||
| {{#if: {{{activation|}}}{{{activation-pve|}}} | | {{#if: {{{activation|}}}{{{activation-pve|}}} | ||
− | | {{#set:Has activation time={{{activation-pve| | + | | {{#set:Has activation time={{#replace:{{{activation-pve|{{{activation}}}}}}|.|,}}}} |
{{#if: {{{activation-wvw|}}}{{{activation-pvp|}}} | {{#if: {{{activation-wvw|}}}{{{activation-pvp|}}} | ||
| {{infobox statistic split|stat=activation|{{{activation|}}}|pve={{{activation-pve|}}}|wvw={{{activation-wvw|}}}|pvp={{{activation-pvp|}}}}} | | {{infobox statistic split|stat=activation|{{{activation|}}}|pve={{{activation-pve|}}}|wvw={{{activation-wvw|}}}|pvp={{{activation-pvp|}}}}} | ||
Строка 474: | Строка 487: | ||
}} | }} | ||
}}{{#if: {{{recharge|}}}{{{recharge-pve|}}} | }}{{#if: {{{recharge|}}}{{{recharge-pve|}}} | ||
− | | {{#set:Has recharge time={{{recharge-pve| | + | | {{#set:Has recharge time={{#replace:{{{recharge-pve|{{{recharge}}}}}}|.|,}}}} |
{{#if: {{{recharge-wvw|}}}{{{recharge-pvp|}}} | {{#if: {{{recharge-wvw|}}}{{{recharge-pvp|}}} | ||
| {{infobox statistic split|stat=recharge|{{{recharge|}}}|pve={{{recharge-pve|}}}|wvw={{{recharge-wvw|}}}|pvp={{{recharge-pvp|}}}}} | | {{infobox statistic split|stat=recharge|{{{recharge|}}}|pve={{{recharge-pve|}}}|wvw={{{recharge-wvw|}}}|pvp={{{recharge-pvp|}}}}} | ||
Строка 508: | Строка 521: | ||
}}{{#if: {{{monster|}}} | | }}{{#if: {{{monster|}}} | | ||
; [[Bestiary|Монстр]] | ; [[Bestiary|Монстр]] | ||
− | : {{#arraymap: {{{monster}}} |;|@@@| | + | : {{#arraymap: {{{monster}}} |;|@@@| {{cname|@@@}}{{#set: Is for monster={{ucfirst:@@@}} }}|<br>}} |
}}{{#if: {{{parent|}}} | | }}{{#if: {{{parent|}}} | | ||
; Род. умение | ; Род. умение | ||
Строка 613: | Строка 626: | ||
| charge = [[Charge skill|Зарядка]] {{#set:Has skill activation type=Charge}} | | charge = [[Charge skill|Зарядка]] {{#set:Has skill activation type=Charge}} | ||
| sequence = [[Sequence skill|Последовательность]] {{#set:Has skill activation type=Sequence}} | | sequence = [[Sequence skill|Последовательность]] {{#set:Has skill activation type=Sequence}} | ||
+ | }} | ||
+ | }}{{#if: {{{movement type|}}} | | ||
+ | ; [[Movement|Движение]] | ||
+ | : {{#switch: {{lc:{{{movement type|}}}}} | ||
+ | | leap = [[Leap|Прыжок]] {{#set:Has skill movement type=Leap}} | ||
+ | | retreat = [[Retreat|Отступление]] {{#set:Has skill movement type=Retreat}} | ||
+ | | shadowstep = [[Shadowstep (mechanic)|Призрачный шаг]] {{#set:Has skill movement type=Shadowstep (mechanic)}} | ||
+ | | teleport = [[Teleport|Телепорт]] {{#set:Has skill movement type=Teleport}} | ||
}} | }} | ||
}}{{#if: {{{chain1|}}} | | }}{{#if: {{{chain1|}}} | | ||
Строка 662: | Строка 683: | ||
| channeled = [[Category:Channeled skills]] | | channeled = [[Category:Channeled skills]] | ||
| charge = [[Category:Charge skills]] | | charge = [[Category:Charge skills]] | ||
+ | }} | ||
+ | <!-- Movement type --> | ||
+ | {{#switch: {{lc:{{{movement type|}}}}} | ||
+ | | leap = [[Category:Leap skills]] | ||
+ | | retreat = [[Category:Retreat skills]] | ||
+ | | shadowstep = [[Category:Shadowstep skills]] | ||
+ | | teleport = [[Category:Teleport skills]] | ||
}} | }} | ||
<!-- Attunement --> | <!-- Attunement --> | ||
Строка 820: | Строка 848: | ||
-->{{#if: {{{facts|{{{variables|}}}}}} | {{{facts|{{{variables}}}}}}{{#set: Has skill facts = {{{facts|{{{variables}}}}}} }} }} | -->{{#if: {{{facts|{{{variables|}}}}}} | {{{facts|{{{variables}}}}}}{{#set: Has skill facts = {{{facts|{{{variables}}}}}} }} }} | ||
}}<!-- | }}<!-- | ||
− | -->{{#vardefine:enable facts|false}}</includeonly><noinclude> | + | -->{{#if: <!-- set missing skill fact subobjects silently --> {{#vardefine: missing skill fact|true}} {{{missing facts|}}} {{#vardefine: missing skill fact|false}} }}{{#vardefine:enable facts|false}}</includeonly><noinclude> |
== Description == | == Description == | ||
<pre>{{Skill infobox | <pre>{{Skill infobox | ||
Строка 849: | Строка 877: | ||
| type = | | type = | ||
| activ-type = | | activ-type = | ||
+ | | movement type = | ||
| chain1 = | | chain1 = | ||
| chain2 = | | chain2 = | ||
Строка 897: | Строка 926: | ||
;facts | ;facts | ||
: 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. | ||
+ | ;missing facts | ||
+ | : Optional. Related skill facts that aren't shown in-game, uses the template {{tl|skill fact}} as the parameter "facts" does. This parameter has no visible result, however, the missing skill fact subobjects can be used in SMW queries. | ||
;activation | ;activation | ||
− | : Activation time. | + | : Activation time. Enter as a decimal, e.g. 1.25. |
;initiative | ;initiative | ||
: Initiative cost. | : Initiative cost. | ||
Строка 988: | Строка 1019: | ||
:: '''<tt>channeled</tt>''' or '''<tt>hold</tt>''': Channeled skill. | :: '''<tt>channeled</tt>''' or '''<tt>hold</tt>''': Channeled skill. | ||
:: '''<tt>charge</tt>''': Charge skill. | :: '''<tt>charge</tt>''': Charge skill. | ||
+ | ;movement type | ||
+ | : Movement type: | ||
+ | :: '''<tt>leap</tt>''': [[Leap]] skill. | ||
+ | :: '''<tt>retreat</tt>''': [[Retreat]] skill. | ||
+ | :: '''<tt>shadowstep</tt>''': [[Shadowstep (mechanic)|Shadowstep]] skill. | ||
+ | :: '''<tt>teleport</tt>''': [[Teleport]] skill. | ||
;chain1 .. chain4 | ;chain1 .. chain4 | ||
: Skill sequence. Set with the names of the skills in the chain. | : Skill sequence. Set with the names of the skills in the chain. |
Текущая версия на 10:13, 6 декабря 2020
Description[править]
{{Skill infobox | name = | icon = | description = | description type = | facts = | profession = | race = | slot = | mainhand = | offhand = | twohand = | bundle = | tonic = | mechanic weapon = | tool belt = | attunement = | activity = | kit = | pet = | pet-family = | monster = | parent = | uw-replaced-by = | uw-replaces = | type = | activ-type = | movement type = | chain1 = | chain2 = | chain3 = | weapon-slot = | mechanic-slot = | training track = | training order = | hero points = | ground-target = | id = | split = | activation = | energy = | health cost = | initiative = | upkeep = | recharge = | activation-pvp = | energy-pvp = | health cost-pvp = | initiative-pvp = | recharge-pvp = | upkeep-pvp = | activation-wvw = | energy-wvw = | health cost-wvw = | initiative-wvw = | recharge-wvw = | upkeep-wvw = }}
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.
- description type
- Optional. Skill description type. On default the parameter type is used. Setting to "none" disables the skill description type.
- 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.
- To set activation, energy, health cost, initiative, recharge and upkeep for a specific game mode: use the -wvw and -pvp parameters to set it. If the split is PvE | WvW + PvP, set only one of these parameters for the wvw+pvp version.
- facts
- 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.
- missing facts
- Optional. Related skill facts that aren't shown in-game, uses the template {{skill fact}} as the parameter "facts" does. This parameter has no visible result, however, the missing skill fact subobjects can be used in SMW queries.
- activation
- Activation time. Enter as a decimal, e.g. 1.25.
- initiative
- Initiative cost.
- energy
- Energy cost.
- upkeep
- Energy upkeep cost.
- health cost
- Health cost.
- recharge
- Recharge time. If there is no recharge, define the value as 0. Omitting the recharge does not set Property:Has recharge time.
- supertype
- Skill supertype describing who can use the skill. On default the supertype is set automatically to one of the following allowed values:
- "Profession": If profession is set to one of the nine professions: Guardian, Revenant, Warrior, Engineer, Ranger, Thief, Elementalist, Mesmer, Necromancer.
- "Racial": If race is set to one of the five races: Asura, Charr, Human, Norn, Sylvari.
- "Profession, Racial": If profession and race is set.
- "Monster": If monster is set.
- "Common": On default or if profession is set to "Common".
- 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.
- bundle: Bundle 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.
- transform: Transform skill.
- pet: Pet skill.
- mechanic: Profession specific ability.
- toy: Skills provided by toys.
- tonic: Skills provided by tonics.
- trait: Skills provided by traits. Also use the trait parameter to link to the trait.
- mainhand
- Weapon held in the main hand.
- offhand
- Weapon held in the off-hand.
- twohand
- Weapon held in both hands.
- requires offhand
- Off-hand weapon that is required for this skill. Can be set to "none".
- bundle
- Bundles that grant the skill.
- tonic
- Tonics that grant the skill.
- mechanic weapon
- Weapon related to a certain profession mechanic.
- 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.
- archetype
- Pet archetype, for skills that require that archetype.
- monster
- The monster or monster type that uses this skill. Multiple monsters can be specified with semi-colons.
- 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.
- If the skill is only usable underwater and does not have a land replacment, input none.
- type
- Skill type, such as signet.
- sort type
- Skill sort type. On default: it inherits the skill type from the parameter type, else if it inherits chain1 skill type, else it sets "Skill without type".
- sort
- For grouping and sorting skills. On default: it inherits chain1 skill page name, else it uses page name.
- activ-type
- Activation type:
- chain: Chain skill.
- channeled or hold: Channeled skill.
- charge: Charge skill.
- movement type
- Movement type:
- leap: Leap skill.
- retreat: Retreat skill.
- shadowstep: Shadowstep skill.
- teleport: Teleport 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.
- mechanic-slot
- Profession mechanic skills only. Used to indicate which fixed position the skill has on a profession mechanic skill bar.
- training track
- Optional, should be automatically calculated. Slot (heal/utility/elite) skills only. Used to indicate the associated training track. Sets Property:Is for training track.
- training order
- Slot (heal/utility/elite) skills only. Used to identify the unlock order. Sets Property:Has training unlock order.
- hero points
- Slot (heal/utility/elite) skills only. Used to indicate how many hero points required to unlock the skill. Sets Property:Has training hero point cost.
- 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.
- status date
- Optional. Sets the date of the update that marked this skill as historical (in YYYY-MM-DD format).
- requires
- Optional. The expansion or living world season required to access the content. Displays a notice of the release. See {{infobox requires}} for options.
Examples[править]
{{Skill infobox | icon = Skill.png | description = This is an example. | activation = 1.5 | recharge = 45 | facts = {{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
“This is an example.
- Кровотечение (5 сек): 110 урона.
— Внутриигровое описание [?]