Шаблон:Skill infobox/subobject — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
Строка 44: | Строка 44: | ||
| #default = 0 <!-- Core --> | | #default = 0 <!-- Core --> | ||
}} }} }}<!-- | }} }} }}<!-- | ||
− | -->| Has attunement sort order ={{#switch: {{#replace:{{lc:{{{attunement|}}}}}| }} | + | -->| Has attunement sort order ={{#switch: {{lc:{{{slot|}}}}} |
− | + | | utility = 0 | |
− | + | | #default = {{#switch: {{#replace:{{lc:{{{attunement|}}}}}| }} | |
− | + | | fire = 1 | |
− | + | | water = 2 | |
− | + | | air = 3 | |
− | + | | earth = 4 | |
− | + | | fire,water | |
− | + | | water,fire = 5 | |
− | + | | fire,air | |
− | + | | air,fire = 6 | |
− | + | | fire,earth | |
− | + | | earth,fire = 7 | |
− | + | | water,air | |
− | + | | air,water = 8 | |
− | + | | water,earth | |
− | + | | earth,water = 9 | |
+ | | air,earth = 10 | ||
+ | | #default = 0 | ||
+ | }} | ||
}}<!-- | }}<!-- | ||
-->| Has skill context sort order ={{#switch: {{lc:{{{slot|}}}}} | -->| Has skill context sort order ={{#switch: {{lc:{{{slot|}}}}} | ||
Строка 77: | Строка 80: | ||
| trait = 11 | | trait = 11 | ||
| #default = 12 | | #default = 12 | ||
− | }}<!-- | + | }}<!-- |
+ | -->| Has skill slot sort order ={{#switch: {{lc:{{{slot|}}}}} | ||
+ | | pet | ||
+ | | mechanic = {{#if:{{{mechanic-slot|}}}|{{#expr:{{{mechanic-slot}}}-6}}|0}} <!-- storing F1,..,F5 as -5,...,-1, allowing to sort it before weapon slots, e.g. burst skills --> | ||
+ | | #default = {{#if:{{{weapon-slot|}}}|{{{weapon-slot}}}|0}} <!-- on default use weapon-slot, else set to 0 --> | ||
+ | }}<!-- | ||
-->| Has skill type sort order ={{#if: {{{sort type|}}} <!-- if sort type --> | -->| Has skill type sort order ={{#if: {{{sort type|}}} <!-- if sort type --> | ||
| {{#arraymap: {{lc:{{{sort type}}}}}|,|@@@|{{#switch:{{lc:@@@}} | | {{#arraymap: {{lc:{{{sort type}}}}}|,|@@@|{{#switch:{{lc:@@@}} | ||
Строка 100: | Строка 108: | ||
}}|+sep=,<!-- | }}|+sep=,<!-- | ||
-->| Has weapon type sort order ={{#switch: {{lc:{{{slot|}}}}} | -->| Has weapon type sort order ={{#switch: {{lc:{{{slot|}}}}} | ||
− | | weapon | + | | weapon |
| mechanic = {{#switch: {{lc:{{{mainhand|}}}{{{offhand|}}}{{{twohand|}}}{{{mechanic weapon|}}}}} | | mechanic = {{#switch: {{lc:{{{mainhand|}}}{{{offhand|}}}{{{twohand|}}}{{{mechanic weapon|}}}}} | ||
| axe = 1 | | axe = 1 | ||
Строка 121: | Строка 129: | ||
| harpoon gun = 18 | | harpoon gun = 18 | ||
| trident = 19 | | trident = 19 | ||
+ | | #default = 100 <!-- non-weapon related profession mechanic skills --> | ||
+ | }} | ||
+ | | engineering kit | ||
+ | | bundle = {{#switch: {{lc:{{{bundle|{{{kit|}}}}}}}} | ||
+ | | tome of justice = 20 | ||
+ | | tome of courage = 21 | ||
+ | | tome of resolve = 22 | ||
+ | | med kit = 23 | ||
+ | | bomb kit = 24 | ||
+ | | elixir gun = 25 | ||
+ | | flamethrower = 26 | ||
+ | | grenade kit = 27 | ||
+ | | tool kit = 28 | ||
+ | | elite mortar kit = 29 | ||
+ | | conjured flame = 30 | ||
+ | | frost bow = 31 | ||
+ | | lightning hammer = 32 | ||
+ | | magnetic shield (bundle) = 33 | ||
+ | | fiery greatsword = 34 | ||
+ | | #default = 100 <!-- historical, etc... --> | ||
+ | }} | ||
+ | | transform = {{#switch: {{lc:{{{parent|}}}}} | ||
+ | | rampage = 40 | ||
+ | | engage photon forge = 41 | ||
+ | | celestial avatar = 42 | ||
+ | | tornado = 43 | ||
+ | | whirlpool = 44 | ||
+ | | death shroud = 45 | ||
+ | | lich form = 46 | ||
+ | | reaper's shroud = 47 | ||
+ | | #default = 100 <!-- historical, etc... --> | ||
}} | }} | ||
− | }}<!-- | + | | #default = 100 <!-- default value --> |
+ | }}<!-- | ||
-->| Has skill sort order ={{#if: {{{sort|}}} | -->| Has skill sort order ={{#if: {{{sort|}}} | ||
| {{ucfirst:{{{sort|}}}}} | | {{ucfirst:{{{sort|}}}}} | ||
Строка 129: | Строка 169: | ||
| {{PAGENAME}} | | {{PAGENAME}} | ||
}} | }} | ||
− | + | }}<!-- | |
-->| Has game icon=File:{{#if:{{{icon|}}}|{{{icon}}}|{{#replace:{{BASEPAGENAME}}|:|-}}.png}}<!-- | -->| Has game icon=File:{{#if:{{{icon|}}}|{{{icon}}}|{{#replace:{{BASEPAGENAME}}|:|-}}.png}}<!-- | ||
Строка 186: | Строка 226: | ||
-->| downed and drowning | downed = {{#subobject:{{#var:sobj}}| Has skill context=Downed}}<!-- | -->| downed and drowning | downed = {{#subobject:{{#var:sobj}}| Has skill context=Downed}}<!-- | ||
-->| drowning = {{#subobject:{{#var:sobj}}| Has skill context=Drowning}}<!-- | -->| drowning = {{#subobject:{{#var:sobj}}| Has skill context=Drowning}}<!-- | ||
− | -->| pet = {{#subobject:{{#var:sobj}}| Has skill context=Pet| Has profession mechanic slot number={{#if:{{{mechanic-slot|}}}|{{{mechanic-slot}}} | + | -->| pet = {{#subobject:{{#var:sobj}}| Has skill context=Pet| Has profession mechanic slot number={{#if:{{{mechanic-slot|}}}|{{{mechanic-slot}}}}}}}<!-- |
− | -->| mechanic = {{#subobject:{{#var:sobj}}| Has skill context=Profession mechanic| Has profession mechanic slot number={{#if:{{{mechanic-slot|}}}|{{{mechanic-slot}}} | + | -->| mechanic = {{#subobject:{{#var:sobj}}| Has skill context=Profession mechanic| Has profession mechanic slot number={{#if:{{{mechanic-slot|}}}|{{{mechanic-slot}}}}}}}{{#if: {{{mechanic weapon|}}}|{{#subobject:{{#var:sobj}}| Is for weapon={{ucfirst:{{{mechanic weapon|}}}}}}}}}<!-- |
-->| special | special action = {{#subobject:{{#var:sobj}}| Has skill context=Special action}}<!-- | -->| special | special action = {{#subobject:{{#var:sobj}}| Has skill context=Special action}}<!-- | ||
-->| trait = {{#subobject:{{#var:sobj}}| Has skill context=Trait}}<!-- | -->| trait = {{#subobject:{{#var:sobj}}| Has skill context=Trait}}<!-- |
Версия 11:10, 6 июля 2020
To be used by the infobox for split skills.
Parameters
- split
- profession
- icon
- name
- initiative
- initiative-wvw
- initiative-pvp
- activation
- energy
- energy-wvw
- energy-pvp
- upkeep
- upkeep-wvw
- upkeep-pvp
- health cost
- health cost-wvw
- health cost-pvp
- recharge
- recharge-wvw
- recharge-pvp
- ground-target
- specialization
- race
- pet
- pet-family
- archetype
- parent
- slot
- mainhand
- offhand
- twohand
- kit
- type
- sort type
- sort
- weapon-slot
- mechanic-slot
- attunement
- chain1
- chain2
- chain3
- chain4
- uw-replaced-by
- uw-replaces
- id
- description
- variables
- status
- trait