Шаблон:Skill infobox — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
Строка 26: | Строка 26: | ||
| #default = 10 | | #default = 10 | ||
}} | }} | ||
− | }}<!-- | + | }}<!-- Description skill type prefix called via Template:Skill type |
+ | -->{{#vardefine: description type |{{#arraymap: {{#if: {{{description type|}}}|{{#ifeq:{{{description type|}}}|none|<!--none-->|{{{description type|}}}}}|{{#ifeq: {{lc:{{{status|}}}}}|historical|<!--none-->|{{{type|}}}}}}}|,|@@@|{{skill type|<!-- | ||
+ | -->{{#switch:{{lc:@@@}}| | ||
+ | | ambush = Ambush | ||
+ | | arcane = Arcane | ||
+ | | banner = Banner | ||
+ | | beast = Beast | ||
+ | | burst | ||
+ | | burst skill = Burst | ||
+ | | cantrip = Cantrip | ||
+ | | celestial avatar = Celestial Avatar | ||
+ | | citadel order = Citadel Order | ||
+ | | clone = Clone | ||
+ | | command = Command | ||
+ | | conjure = Conjure | ||
+ | | consecration = Consecration | ||
+ | | consume = Consume | ||
+ | | corruption = Corruption | ||
+ | | deception = Deception | ||
+ | | dual | ||
+ | | dual skill | ||
+ | | dual wield = Dual Wield | ||
+ | | dual attack = Dual Attack | ||
+ | | elixir = Elixir | ||
+ | | engage = Engage | ||
+ | | backpack kit | ||
+ | | device kit | ||
+ | | weapon kit | ||
+ | | engineering kit = Engineering Kit | ||
+ | | exceed = Exceed | ||
+ | | facet = Facet | ||
+ | | final charge = Final Charge | ||
+ | | gadget = Gadget | ||
+ | | glamour = Glamour | ||
+ | | glyph = Glyph | ||
+ | | gyro = Gyro | ||
+ | | kneel = Kneel | ||
+ | | legendary assassin = Legendary Assassin | ||
+ | | legendary centaur = Legendary Centaur | ||
+ | | legendary demon = Legendary Demon | ||
+ | | legendary dragon = Legendary Dragon | ||
+ | | legendary dwarf = Legendary Dwarf | ||
+ | | legendary renegade = Legendary Renegade | ||
+ | | manipulation = Manipulation | ||
+ | | mantra = {{#ifeq: {{#show:{{PAGENAME}}|?Has chain sequence position|default=-1}}|2|<!--display nothing-->|Mantra}} | ||
+ | | mark = Mark | ||
+ | | meditation = Meditation | ||
+ | | minion = Minion | ||
+ | | overload = Overload | ||
+ | | phantasm = Phantasm | ||
+ | | physical = Physical | ||
+ | | preparation = Preparation | ||
+ | | primal burst = Primal Burst | ||
+ | | punishment = Punishment | ||
+ | | rage = Rage | ||
+ | | shade = Shade | ||
+ | | shatter = Shatter | ||
+ | | shout = Shout | ||
+ | | signet = <!--manually: Signet Passive/Signet Active--> | ||
+ | | spectral = Spectral | ||
+ | | spirit | ||
+ | | spirit skill = {{#ifeq: {{#show:{{PAGENAME}}|?Has chain sequence position|default=-1}}|2|<!--display nothing-->|Spirit}} | ||
+ | | spirit weapon = Spirit Weapon | ||
+ | | stance = Stance | ||
+ | | stealth attack = Stealth Attack | ||
+ | | stolen skill = <!--No prefix yet: Stolen--> | ||
+ | | survival = Survival | ||
+ | | symbol = Symbol | ||
+ | | tome = {{#if:{{#show: {{PAGENAME}}|?Has parent skill|default=}}|Tome|<!--display nothing-->}} | ||
+ | | tool belt skill = <!--No prefix yet: Tool belt--> | ||
+ | | transform = Transform | ||
+ | | trap = Trap | ||
+ | | trick = Trick | ||
+ | | turret = Turret | ||
+ | | venom = Venom | ||
+ | | virtue = <!-- manually: Virtue:/Activate:--> | ||
+ | | ward = Ward | ||
+ | | well = Well}}}}|}}}}<!-- | ||
-->{{#if:{{{split|}}}|{{Game mode version|{{{split}}}}}<!-- | -->{{#if:{{{split|}}}|{{Game mode version|{{{split}}}}}<!-- | ||
-->{{#set:Is for game mode=PvE}}<!-- | -->{{#set:Is for game mode=PvE}}<!-- | ||
Строка 66: | Строка 143: | ||
|chain4={{{chain4|}}} | |chain4={{{chain4|}}} | ||
|id={{{id|}}} | |id={{{id|}}} | ||
− | |description={{{description|}}} | + | |description={{#var:description type}}{{{description|}}} |
|variables={{{variables|}}} | |variables={{{variables|}}} | ||
|status={{{status|}}}<!-- | |status={{{status|}}}<!-- | ||
Строка 380: | Строка 457: | ||
}} | }} | ||
<!---Type---> | <!---Type---> | ||
− | {{# | + | {{#arraymap:{{{type|}}}|,|@@@|{{#switch:{{lc:@@@}} |
+ | | ambush = [[Category:Ambush skills]] | ||
| arcane = [[Category:Arcane skills]] | | arcane = [[Category:Arcane skills]] | ||
− | |||
| banner = [[Category:Banner skills]] | | banner = [[Category:Banner skills]] | ||
+ | | beast = [[Category:Beast skills]] | ||
| burst | | burst | ||
| burst skill = [[Category:Burst skills]] | | burst skill = [[Category:Burst skills]] | ||
| cantrip = [[Category:Cantrip skills]] | | cantrip = [[Category:Cantrip skills]] | ||
+ | | citadel order = [[Category:Citadel Order skills]] | ||
| clone = [[Category:Clone skills]] | | clone = [[Category:Clone skills]] | ||
+ | | command = [[Category:Command skills]] | ||
| conjure = [[Category:Conjure skills]] | | conjure = [[Category:Conjure skills]] | ||
| consecration = [[Category:Consecration skills]] | | consecration = [[Category:Consecration skills]] | ||
| corruption = [[Category:Corruption skills]] | | corruption = [[Category:Corruption skills]] | ||
| dual | | dual | ||
− | | dual skill = [[Category:Dual skills]] | + | | dual skill |
+ | | dual wield = [[Category:Dual Wield skills]] | ||
| deception = [[Category:Deception skills]] | | deception = [[Category:Deception skills]] | ||
− | |||
| elixir = [[Category:Elixir skills]] | | elixir = [[Category:Elixir skills]] | ||
+ | | engage = [[Category:Engage skills]] | ||
| backpack kit | | backpack kit | ||
| device kit | | device kit | ||
| weapon kit | | weapon kit | ||
| engineering kit = [[Category:Engineering kit skills]] | | engineering kit = [[Category:Engineering kit skills]] | ||
+ | | exceed = [[Category:Exceed skills]] | ||
+ | | final charge = [[Category:Final Charge skills]] | ||
| gadget = [[Category:Gadget skills]] | | gadget = [[Category:Gadget skills]] | ||
| glamour = [[Category:Glamour skills]] | | glamour = [[Category:Glamour skills]] | ||
| glyph = [[Category:Glyph skills]] | | glyph = [[Category:Glyph skills]] | ||
− | |||
| intervention = [[Category:Intervention skills]] | | intervention = [[Category:Intervention skills]] | ||
+ | | legendary assassin = [[Category:Legendary Assassin skills]] | ||
+ | | legendary centaur = [[Category:Legendary Centaur skills]] | ||
+ | | legendary demon = [[Category:Legendary Demon skills]] | ||
+ | | legendary dragon = [[Category:Legendary Dragon skills]] | ||
+ | | legendary dwarf = [[Category:Legendary Dwarf skills]] | ||
+ | | legendary renegade = [[Category:Legendary Renegade skills]] | ||
| manipulation = [[Category:Manipulation skills]] | | manipulation = [[Category:Manipulation skills]] | ||
| mantra = [[Category:Mantra skills]] | | mantra = [[Category:Mantra skills]] | ||
Строка 410: | Строка 498: | ||
| meditation = [[Category:Meditation skills]] | | meditation = [[Category:Meditation skills]] | ||
| minion = [[Category:Minion skills]] | | minion = [[Category:Minion skills]] | ||
+ | | overload = [[Category:Overload skills]] | ||
| phantasm = [[Category:Phantasm skills]] | | phantasm = [[Category:Phantasm skills]] | ||
| physical = [[Category:Physical skills]] | | physical = [[Category:Physical skills]] | ||
| preparation = [[Category:Preparation skills]] | | preparation = [[Category:Preparation skills]] | ||
+ | | primal burst = [[Category:Primal Burst skills]] | ||
| punishment = [[Category:Punishment skills]] | | punishment = [[Category:Punishment skills]] | ||
− | |||
| rage = [[Category:Rage skills]] | | rage = [[Category:Rage skills]] | ||
+ | | shade = [[Category:Shade skills]] | ||
| shatter = [[Category:Shatter skills]] | | shatter = [[Category:Shatter skills]] | ||
| shout = [[Category:Shout skills]]{{DEFAULTSORT:{{#replace:{{{name|{{PAGENAME}}}}}|"|}}}} | | shout = [[Category:Shout skills]]{{DEFAULTSORT:{{#replace:{{{name|{{PAGENAME}}}}}|"|}}}} | ||
Строка 423: | Строка 513: | ||
| spirit skill = [[Category:Spirit skills]] | | spirit skill = [[Category:Spirit skills]] | ||
| spirit weapon = [[Category:Spirit weapon skills]] | | spirit weapon = [[Category:Spirit weapon skills]] | ||
− | |||
| stance = [[Category:Stance skills]] | | stance = [[Category:Stance skills]] | ||
| stealth attack = [[Category:Stealth Attack skills]] | | stealth attack = [[Category:Stealth Attack skills]] | ||
| stolen skill = [[Category:Stolen skills]] | | stolen skill = [[Category:Stolen skills]] | ||
+ | | survival = [[Category:Survival skills]] | ||
| symbol = [[Category:Symbol skills]] | | symbol = [[Category:Symbol skills]] | ||
| tome = [[Category:Tome skills]] | | tome = [[Category:Tome skills]] | ||
Строка 434: | Строка 524: | ||
| trick = [[Category:Trick skills]] | | trick = [[Category:Trick skills]] | ||
| turret = [[Category:Turret skills]] | | turret = [[Category:Turret skills]] | ||
+ | | venom = [[Category:Venom skills]] | ||
+ | | virtue = [[Category:Virtue skills]] | ||
| ward = [[Category:Ward skills]] | | ward = [[Category:Ward skills]] | ||
| well = [[Category:Well skills]] | | well = [[Category:Well skills]] | ||
− | |||
− | |||
}} | }} | ||
<!---Slot---> | <!---Slot---> | ||
Строка 485: | Строка 575: | ||
}} | }} | ||
}}{{#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|''Описание отсутствует.'' | + | {{Quotation|Внутриигровое описание <sup><nowiki>[</nowiki>[[Guild Wars 2 Wiki:Skill formatting|?]]<nowiki>]</nowiki></sup>|{{#if: {{{description|}}}|{{#var:description type}}{{{description|}}}|''Описание отсутствует.''}}<!-- |
-->{{#if: {{{description|}}} | -->{{#if: {{{description|}}} | ||
| {{#if: {{#pos: {{{description}}} |id="sic"}}<!-- Check for [sic] tags, if so, remove the template before storing the value --> | | {{#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={{#dplreplace:{{#var:description type}}{{{description|}}}|\[\[Category:Text errors\]\]}}}} |
− | | {{#set:Has game description={{{description|}}}}} | + | | {{#set:Has game description={{#var:description type}}{{{description|}}}}} |
}} | }} | ||
}}<!-- | }}<!-- | ||
Строка 499: | Строка 589: | ||
| icon = | | icon = | ||
| description = | | description = | ||
+ | | description type = | ||
| split = | | split = | ||
| variables = | | variables = | ||
Строка 549: | Строка 640: | ||
;description | ;description | ||
: Skill 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 | ;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. | : 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. |
Версия 19:59, 30 мая 2019
Description
{{Skill infobox | name = | icon = | description = | description type = | split = | variables = | activation = | initiative = | initiative-wvw = | initiative-pvp = | energy = | energy-wvw = | energy-pvp = | upkeep = | upkeep-wvw = | upkeep-pvp = | recharge = | recharge-wvw = | recharge-pvp = | 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.
- 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 initiative, energy, upkeep and recharge 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.
- 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. 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.
- 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 | 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.
— Внутриигровое описание