Шаблон:Trait infobox/subobject — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
(не показаны 4 промежуточные версии этого же участника) | |||
Строка 17: | Строка 17: | ||
-->| Is for specialization={{#var:specialization}}<!-- | -->| Is for specialization={{#var:specialization}}<!-- | ||
-->| Has specialization sort order={{#var:specialization_number}}<!-- | -->| Has specialization sort order={{#var:specialization_number}}<!-- | ||
+ | -->| Has trait line number={{#var:traitline_number}}<!-- | ||
-->| Has trait position number={{#if:{{{position|}}}|{{{position}}}|0}}<!-- | -->| Has trait position number={{#if:{{{position|}}}|{{{position}}}|0}}<!-- | ||
-->}}<!-- end subobject | -->}}<!-- end subobject | ||
Строка 26: | Строка 27: | ||
# all other properties will only be set if the corresponding parameter is set | # all other properties will only be set if the corresponding parameter is set | ||
− | -->{{#if:{{{recharge | + | -->{{#if: {{{recharge wvw|}}} | {{#if:{{#pos:@@@|wvw}}|{{#subobject:{{#var:sobj}}| Has recharge time={{{recharge wvw}}} }}}} }}<!-- |
− | -->{{#if:{{{recharge | + | -->{{#if: {{{recharge pvp|}}} | {{#if:{{#pos:@@@|pvp}}|{{#subobject:{{#var:sobj}}| Has recharge time={{{recharge pvp}}} }}}} }}<!-- |
+ | -->{{#if: {{{recharge|}}} | {{#if:{{{recharge wvw|}}}{{{recharge pvp|}}}|<!-- already set -->|{{#subobject:{{#var:sobj}}| Has recharge time={{{recharge}}} }}}} }}<!-- | ||
-->{{#if:{{{id|}}}|{{#arraymap:{{{id}}}|,|€€€|{{#subobject:{{#var:sobj}}| Has game id=€€€}}}}}}<!-- | -->{{#if:{{{id|}}}|{{#arraymap:{{{id}}}|,|€€€|{{#subobject:{{#var:sobj}}| Has game id=€€€}}}}}}<!-- | ||
Строка 37: | Строка 39: | ||
-->{{#if:{{{tier|}}}|{{#subobject:{{#var:sobj}}| Has trait tier={{ucfirst:{{{tier}}}}}| Has trait tier number={{#switch:{{lc:{{{tier}}}}}|proficiency=0|adept=1|master=2|grandmaster=3}}}}}}<!-- | -->{{#if:{{{tier|}}}|{{#subobject:{{#var:sobj}}| Has trait tier={{ucfirst:{{{tier}}}}}| Has trait tier number={{#switch:{{lc:{{{tier}}}}}|proficiency=0|adept=1|master=2|grandmaster=3}}}}}}<!-- | ||
-->{{#if:{{{type|}}}|{{#subobject:{{#var:sobj}}| Has trait type={{ucfirst:{{{type}}}}}| Has trait type number={{#switch:{{lc:{{{type}}}}}|minor=1|major=2}}}}}}<!-- | -->{{#if:{{{type|}}}|{{#subobject:{{#var:sobj}}| Has trait type={{ucfirst:{{{type}}}}}| Has trait type number={{#switch:{{lc:{{{type}}}}}|minor=1|major=2}}}}}}<!-- | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
# properties set by templates called by Trait Infobox | # properties set by templates called by Trait Infobox | ||
− | --> | + | -->{{#switch: {{lc:{{{status|}}}}}<!-- |
-->| unimplemented = {{#subobject:{{#var:sobj}}| Is historical=Y | Has availability=Unimplemented}}<!-- | -->| unimplemented = {{#subobject:{{#var:sobj}}| Is historical=Y | Has availability=Unimplemented}}<!-- | ||
− | -->| future = {{#subobject:{{#var:sobj}}| Is historical= | + | -->| future = {{#subobject:{{#var:sobj}}| Is historical=N | Has availability=Future}}<!-- |
− | --> | + | -->| historical = {{#subobject:{{#var:sobj}}| Is historical=Y | Has availability=Historical}}<!-- |
-->| temporary item| discontinued = {{#subobject:{{#var:sobj}}| Is historical=N | Has availability=Discontinued}}<!-- | -->| temporary item| discontinued = {{#subobject:{{#var:sobj}}| Is historical=N | Has availability=Discontinued}}<!-- | ||
− | -->| current | #default | + | -->| current | temporary | #default = {{#subobject:{{#var:sobj}}| Is historical=N | Has availability=Current}}<!-- |
− | --> | + | -->}}<!-- |
-->}}}}<!-- end arraymap --></includeonly><noinclude>To be used by the [[Template:Trait infobox|infobox]] for split traits. | -->}}}}<!-- end arraymap --></includeonly><noinclude>To be used by the [[Template:Trait infobox|infobox]] for split traits. | ||
Строка 74: | Строка 57: | ||
; name | ; name | ||
; position | ; position | ||
− | ; recharge | + | ; recharge wvw |
− | ; recharge | + | ; recharge pvp |
; id | ; id | ||
; description | ; description |