User:Valento/Sandbox/Skill infobox
From Guild Wars 2 Wiki
< User:Valento | Sandbox
Jump to navigationJump to search
{{infobox status|{{{status|{{#ifeq:{{{historical|n}}}|y|historical}} }}} }}<!-- --><div class="infobox skill {{lc:{{{profession|{{{race|}}}}}}}}"> <div class="icon skill-infobox-icon"> <div style="overflow: hidden; width: 36px; height: 36px; display:inline-block; vertical-align:middle;"> <div style="margin: -6px; overflow: hidden;">[[Has game icon::File:{{{icon|{{#titleparts:{{FULLPAGENAME}}}}.png}}}|48x48px]]</div> </div> {{ifimage|{{FULLPAGENAME}} animation.gif|<p>[[:File:{{PAGENAME}} animation.gif|Animation]]</p>}} </div> <p class="heading">[[Has canonical name::{{{name|{{#titleparts:{{FULLPAGENAME}}}}}}}]]</p> <div class="statistics"> {{#if: {{{uw-replaced-by|}}} |<span>[[File:Not available underwater.png|x20px|link=Underwater mode#Underwater skills|Not available underwater]]</span> | }}{{#ifeq: {{{initiative|0}}} | 0 || {{#set:Has initiative cost={{{initiative}}}}}{{initiative|{{{initiative}}}}} }}{{#ifeq: {{{energy|0}}} | 0 || {{#set:Has energy cost={{{energy}}}}}{{energy|{{{energy}}}}} }}{{#ifeq: {{{upkeep|0}}} | 0 || {{#set:Has upkeep cost={{{upkeep}}}}}{{upkeep|{{{upkeep}}}}} }}{{#ifeq: {{{activation|0}}} | 0 || {{#set:Has activation time={{{activation}}}}}{{activation|{{{activation}}}}} }}{{#ifeq: {{{recharge|0}}} | 0 || {{#set:Has recharge time={{{recharge}}}}}{{recharge|{{{recharge}}}}} }}{{#if: {{{hero points|}}} |<span>[[Has training hero point cost::{{{hero points}}}]] [[File:Hero point.png|20px|Hero point]]</span> }}{{#if: {{{ground-target|}}} | [[File:Ground_target_aim.png|18px|Ground-targeted|link=Targeting#Ground_targeting]] {{#set:Is ground targeted=Y}}|{{#set:Is ground targeted=N}}}} </div> <div class="wrapper"> {{#if: {{{profession|}}} | ;[[Profession]] :{{#ifeq: {{lc:{{{profession}}}}} | common | {{common}} [[Profession|All]] {{#set:Is for profession=Any}} | {{ {{{profession}}} }} [[Is for profession::{{ucfirst:{{{profession}}}}}]] <small>([[List of {{lc:{{{profession}}}}} skills|skill list]])</small> }}{{#set:Has profession sort order={{#switch:{{lc:{{{profession}}}}} | guardian = 1 | warrior = 2 | engineer = 3 | revenant = 4 | ranger = 5 | thief = 6 | elementalist = 7 | mesmer = 8 | necromancer = 9 | #default = 10 }} }} | {{#set:Is for profession=Any}} <!-- Default to any if parameter is missing --> }}{{#if:{{{specialization|}}}| ;Specialization :[[Is for specialization::{{ucfirst:{{{specialization}}}}}]] }}{{#if: {{{race|}}} | ; [[Playable races|Race]] : [[File:{{ucfirst:{{{race}}}}} tango icon 20px.png]] [[Is for race::{{ucfirst:{{{race}}}}}]] <small>([[List of {{lc:{{{race}}}}} racial skills|skill list]])</small> }}{{#if: {{{pet|}}} | ; [[Pet]]{{#if: {{#pos: {{{pet|}}} |,}} | s }} : {{#arraymap: {{{pet}}} |,|@@@| [[Is for pet::Juvenile {{ucfirst:@@@}}|{{ucfirst:@@@}}]] |<br>}} }}{{#if: {{{pet-family|}}} | ; [[Pet]] family : [[Is for pet family::{{ucfirst:{{{pet-family|}}}}}]] }}{{#if: {{{monster|}}} | ; [[Monster]] : [[{{ucfirst:{{{monster}}}}}]] }}{{#if: {{{parent|}}} | ; Parent skill : {{skill icon|{{{parent}}}|size=20}} {{#set: Has parent skill={{{parent}}}}} }}{{ #switch: {{{slot|}}} | weapon = ; [[Weapon]] : {{#if: {{{mainhand|}}} | {{#set:Is for weapon={{{mainhand}}}}} {{#switch: {{{mainhand|}}} | | axe = [[Main hand]] [[axe]] | dagger = [[Main hand]] [[dagger]] | mace = [[Main hand]] [[mace]] | pistol = [[Main hand]] [[pistol]] | scepter = [[Scepter]] | sword = [[Main hand]] [[sword]] }}{{#if: {{{offhand|}}} | <br> }} }}{{#if: {{{offhand|}}} | {{#ifeq: {{lc:{{{type|}}}}} | dual wield | {{#set:Requires offhand={{ucfirst:{{{offhand}}}}}}} | {{#set:Is for weapon={{{offhand}}}}} }}{{#switch: {{{offhand}}} | axe = [[Off-hand]] [[axe]] | dagger = [[Off-hand]] [[dagger]] | mace = [[Off-hand]] [[mace]] | pistol = [[Off-hand]] [[pistol]] | sword = [[Off-hand]] [[sword]] | focus = [[Focus]] | shield = [[Shield]] | torch = [[Torch]] | warhorn = [[Warhorn]] | none | empty = ''[[Off-hand]] empty'' }} }}{{#if: {{{twohand|}}} | [[Is for weapon::{{ucfirst:{{{twohand}}}}}]] }} | weapon kit = ; [[Weapon kit]] : {{#ifexist: File:{{{kit}}}.png | [[File:{{{kit}}}.png{{!}}20x20px{{!}}link={{{kit}}}]] | [[Image:Skill.png{{!}}20x20px{{!}}link={{{kit}}}]]}} [[Is for weapon::{{{kit}}}]] | backpack kit | device kit = ; [[Device kit]] : {{#ifexist: File:{{{kit}}}.png | [[File:{{{kit}}}.png{{!}}20x20px{{!}}link={{{kit}}}]] | [[Image:Skill.png{{!}}20x20px{{!}}link={{{kit}}}]]}} [[Is for weapon::{{{kit}}}]] | environmental | bundle = ; [[Bundle|Bundle]]:{{#arraymap: {{{twohand|}}} |,|@@@| [[Is for weapon::{{ucfirst:@@@}}|{{#replace: {{ucfirst:@@@}} | (environmental weapon) }}]] |<br>}} | burst skill = ; [[Weapon]]</p> <p class="info"> [[Main hand]] [[{{lc:{{{mainhand}}}}}]] | healing = ; [[Skill bar{{!}}Slot]]:[[Healing skill|Healing]] {{#set:Has skill context=Healing}}{{#if:{{{uw-replaced-by|}}}|{{#set:Is usable underwater=N}}|{{#set:Is usable underwater=Y}}}} | utility = ; [[Skill bar{{!}}Slot]]:[[Utility skill|Utility]] {{#set:Has skill context=Utility}}{{#if:{{{uw-replaced-by|}}}|{{#set:Is usable underwater=N}}|{{#set:Is usable underwater=Y}}}} | elite = ; [[Skill bar{{!}}Slot]]:[[Elite skill|Elite]] {{#set:Has skill context=Elite}}{{#if:{{{uw-replaced-by|}}}|{{#set:Is usable underwater=N}}|{{#set:Is usable underwater=Y}}}} | downed = ; [[Skill bar{{!}}Slot]]:[[List of downed skills|Downed]]{{#set:Has skill context=Downed}} | drowning = ; [[Skill bar{{!}}Slot]]:[[List of drowning skills|Drowning]]{{#set:Has skill context=Drowning}} | downed and drowning = ;[[Skill bar{{!}}Slot]]:[[List of downed skills|Downed]] <br /> [[List of drowning skills|Drowning]]{{#set:Has skill context=Downed}} | deathshroud = ; [[Skill bar{{!}}Slot]]: [[Death Shroud]] | reapershroud = ; [[Skill bar{{!}}Slot]]: [[Reaper's Shroud]] | pet = ; [[Skill bar{{!}}Slot]]:[[List of pet skills|Pet]] | mechanic = ; [[Skill bar{{!}}Slot]]:[[Profession mechanic]]{{#set:Has skill context=Profession mechanic}} | monster = ; [[Skill bar{{!}}Slot]]:[[Monster skill]] | toy = ; [[Toy]]:{{#if:{{{toy|}}}|[[{{{toy}}}]]|}} | tonic = ; [[Tonic]]:{{#if:{{{tonic|}}}|[[{{{tonic}}}]]|}} }}<!-- end switch slot -->{{#if: {{{activity|}}} | ; [[Activity]] : {{#switch: {{lc:{{{activity|}}}}} | costume | costume brawl = [[Costume Brawl]] | #default = [[{{ucfirst:{{{activity|}}}}}]]{{#set:Has skill context=Activity}}{{#set:Is for activity={{ucfirst:{{{activity|}}}}}}} }} }}{{#if: {{{weapon-slot|}}}|{{#set:Has skill slot number={{{weapon-slot}}}}} {{#ifexpr:{{{weapon-slot}}} < 6 and {{{weapon-slot}}} > 0 |; : [[File:Weapon slot {{{weapon-slot}}} tango.png|65x20px|Weapon slot {{{weapon-slot}}}]] }} }} {{#if: {{{tool_belt|}}} | {{#switch:{{{slot}}} | healing | utility | elite = {{#if:{{{parent|}}} | <!--don't show tool belt for secondary skills--> |; [[Tool belt]] : {{#ifexist: File:{{{tool_belt}}}.png | [[File:{{{tool_belt}}}.png{{!}}20x20px{{!}}link={{{tool_belt}}}]] | [[Image:Skill.png{{!}}20x20px{{!}}link={{{tool_belt}}}]]}} [[{{{tool_belt}}}]]}} }} }}{{#if: {{{attunement|}}} | ; [[Attunement]] : [[Is for attunement::{{ucfirst:{{{attunement}}}}} Attunement|{{ucfirst:{{{attunement}}}}}]] }}{{#if: {{{type|}}} | ; [[Skill type|Type]] : {{#arraymap:{{{type}}}|,|@@@|{{#switch:{{lc:@@@}} | deception = [[Deception (skill type)|Deception]] {{#set:Has skill type=Deception}} | tool belt | tool belt skill = [[Has skill type::Tool belt]] | #default = [[Has skill type::{{ucfirst:@@@}}]] }}}} }}{{#if: {{{activ-type|}}} | ; [[Skill#Skill types{{!}}Activ. type]] : {{#switch: {{lc:{{{activ-type|}}}}} | chain = [[Chain]] | channeled | hold = [[Channeled skill|Channeled]] | charge = [[Charge skill|Charge]] }} }}{{#if: {{{chain1|}}} | ; [[Sequence skill|Sequence]] : {{#arraymap: {{{chain1|}}}, {{{chain2|}}}, {{{chain3|}}} |,|@@@| {{borderless|{{#sub:{{#show: @@@ | ?Has game icon | link = none | default = File:Skill.png }}|5}}|20|link=@@@}}| → }}{{#set:Has chain sequence={{{chain1}}}{{#if:{{{chain2|}}}|, {{{chain2}}}}}{{#if:{{{chain3|}}}|, {{{chain3}}}}}}} }}{{#if:{{{id|}}}| ; Game link : {{skill link|{{#explode:{{{id}}}|,|0}}}} {{#arraymap:{{{id}}}|,|@@@|{{#set:Has game id=@@@}}|}}}} </div> {{clear}}{{#set:Has context=Skill}} </div><!-- AUTOCATEGORIZATION - skill description/effects code is after this -->{{#if: {{NAMESPACE}}<!-- no categories if outside of article namespace --> {{#ifeq: {{{categorize|y}}} | n | do not categorize | <!-- categorize --> }} {{#switch: {{lc:{{{status|}}}}} | historical | unimplemented | future = do not categorize }} {{#ifeq: {{lc:{{{historical}}}}} | y | do not categorize }}<!-- legacy support --> | <!-- Do not categorize --> | {{#if: {{{icon|}}} || {{#ifexist:File:{{#replace:{{FULLPAGENAME}}|:|-}}.png || [[Category:Skills missing icon]] }} }} {{#if: {{{profession|}}}| {{#if: {{{specialization|}}} | [[Category:{{ucfirst:{{{specialization|}}}}} skills]] | [[Category:{{ucfirst:{{{profession|}}}}} skills]] }} }} {{#if: {{{race|}}} | [[Category:{{ucfirst:{{{race|}}}}} skills]] }} <!---Attunement--> {{#if: {{{attunement|}}} | {{ #switch: {{lc:{{{attunement|}}}}} | air = [[Category:Air attunement skills]] | earth = [[Category:Earth attunement skills]] | fire = [[Category:Fire attunement skills]] | water = [[Category:Water attunement skills]] }} }} <!--Activity--> {{#if: {{{activity|}}} | {{ #switch: {{lc:{{{activity|}}}}} | costume | costume brawl = [[Category:Costume Brawl skills]] | #default = [[Category:{{ucfirst:{{{activity|}}}}} skills]] }} }} <!---Weapon---> {{#if: {{{mainhand|}}} | {{#switch: {{lc:{{{mainhand}}}}} | scepter = [[Category:Scepter skills]] | #default = [[Category:Main-hand {{lc:{{{mainhand}}}}} skills]] }} }} {{#if: {{{offhand|}}} | {{#switch: {{lc:{{{offhand}}}}} | none | empty = | focus | shield | torch | warhorn = [[Category:{{ucfirst:{{{offhand}}}}} skills]]{{#set:Has skill context=Offhand}} | #default = [[Category:Off-hand {{lc:{{{offhand}}}}} skills]]{{#set:Has skill context=Offhand}} }} }} {{#if: {{{twohand|}}} | {{#arraymap: {{{twohand}}} |,|@@@| {{#switch: {{{slot|}}} | environmental | bundle = [[Category:Bundle skills]] | weapon = [[Category:{{ucfirst:@@@}} skills]] }} |}} }} <!---Type---> {{#switch: {{lc:{{{type|}}}}} | arcane = [[Category:Arcane skills]] | aura = [[Category:Aura skills]] | banner = [[Category:Banner skills]] | burst | burst skill = [[Category:Burst skills]] | cantrip = [[Category:Cantrip skills]] | clone = [[Category:Clone skills]] | conjure = [[Category:Conjure skills]] | consecration = [[Category:Consecration skills]] | corruption = [[Category:Corruption skills]] | backpack kit | device kit = [[Category:Device kit skills]] | dual | dual skill = [[Category:Dual skills]] | deception = [[Category:Deception skills]] | elixir = [[Category:Elixir skills]] | gadget = [[Category:Gadget skills]] | glamour = [[Category:Glamour skills]] | glyph = [[Category:Glyph skills]] | intervention = [[Category:Intervention skills]] | manipulation = [[Category:Manipulation skills]] | mantra = [[Category:Mantra skills]] | mark = [[Category:Mark skills]] | meditation = [[Category:Meditation skills]] | minion = [[Category:Minion skills]] | phantasm = [[Category:Phantasm skills]] | physical = [[Category:Physical skills]] | preparation = [[Category:Preparation skills]] | shatter = [[Category:Shatter skills]] | shout = [[Category:Shout skills]]{{DEFAULTSORT:{{#replace:{{{name|{{FULLPAGENAME}}}}}|"|}}}} | signet = [[Category:Signet skills]] | spectral = [[Category:Spectral skills]] | spirit | spirit skill = [[Category:Spirit skills]] | spirit weapon = [[Category:Spirit weapon skills]] | survival = [[Category:Survival skills]] | stance = [[Category:Stance skills]] | stealth attack = [[Category:Stealth Attack skills]] | stolen skill = [[Category:Stolen skills]] | symbol = [[Category:Symbol skills]] | tome = [[Category:Tome skills]] | tool belt skill = [[Category:Tool belt skills]] | transform = [[Category:Transform skills]] | trap = [[Category:Trap skills]] | trick = [[Category:Trick skills]] | turret = [[Category:Turret skills]] | ward = [[Category:Ward skills]] | weapon kit = [[Category:Weapon kit skills]] | well = [[Category:Well skills]] | venom = [[Category:Venom skills]] | virtue = [[Category:Virtue skills]] }} <!---Slot---> {{#switch: {{lc:{{{slot|}}}}} | healing = [[Category:Healing skills]] | elite = [[Category:Elite skills]] | utility = [[Category:Utility skills]] | deathshroud = [[Category:Death Shroud skills]] | reapershroud = [[Category:Reaper's Shroud skills]] | downed = [[Category:Downed skills]] | drowning = [[Category:Drowning skills]] | downed and drowning = [[Category:Downed skills]][[Category:Drowning skills]] | monster = [[Category:Monster skills]] | pet = [[Category:Pet skills]] | toy = [[Category:{{{toy|}}} skills]] | tonic = [[Category:{{{tonic|}}} skills]] | weapon kit | backpack kit | device kit = [[Category:{{{kit|}}} skills]] }} <!---Ground targeting---> {{#if: {{{ground-target|}}} | [[Category:Ground-targeted skills]] }} <!---Polymorph forms--> {{#switch: {{lc:{{{parent|}}}}} | polymorph tuna = [[Category:Tuna Form skills]] | polymorph moa = [[Category:Moa Form skills]] }} <!---Activation type--> {{#switch: {{lc:{{{activ-type}}}}} | chain = [[Category:Chain skills]] | channeled = [[Category:Channeled skills]] | charge = [[Category:Charge skills]] }} }}<!-- Here's the description/effects section-->{{#ifeq:{{{uw-replaced-by|none}}}|none|<!--display nothing when there is no replacement skill-->|:[[File:Not available underwater.png|x20px]] ''This skill has an [[underwater mode|underwater]] replacement: [[{{{uw-replaced-by}}}]]''}}{{#if:{{{uw-replaces|}}}|:[[File:Underwater.png|x20px]] ''This skill is the [[underwater mode|underwater]] replacement for: [[{{{uw-replaces|}}}]]''}} {{Quotation|In-game description <sup>[[[Guild Wars 2 Wiki:Skill formatting|?]]]</sup>|[[Has game description::{{{description|''No description available.''}}}]] {{{variables|}}} }} {{clear}} <!-- Related traits -->{{#vardefine:related_traits|{{#ask:[[Relates to skill::{{FULLPAGENAME}}]]|link = none}}}} {{#if: {{#var:related_traits|}} | <includeonly>== Related [[trait]]s ==</includeonly> {{#arraymap: {{#var:related_traits}} |,|@@@|* {{trait icon|@@@}} - {{trait description|@@@}}|\n}} }}
Description[edit]
{{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[edit]
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.
- 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.
- 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.
- ...otherwise direct input.
- mainhand
- Weapon held in the main hand.
- offhand
- Weapon held in the off-hand.
- twohand
- Weapon held in both hands, including environmental weapons.
- 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).
- historical
- Optional. (legacy parameter). Duplicates function of setting
status = historical
. y displays the {{historical content}} notice.
Examples[edit]
{{Skill infobox | description = This is an example. | variables = {{skill fact|bleeding|5}} | icon = Skill.png | activation = 1.5 | recharge = 45 | profession = elementalist | slot = weapon | twohand = staff | attunement = fire | weapon-slot = 5 | ground-target = circle | id = 12345 }}