Шаблон:Trait infobox/subobject — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) (Новая страница: «<includeonly>{{#arraymap:{{{split}}}|,|@@@|{{#if:{{#pos:@@@|pve}}|<!-- ignore if pve part of the currently selected game mode split-->|<!-- # set name and game m…») |
Blood (обсуждение | вклад) |
||
(не показано 5 промежуточных версий этого же участника) | |||
Строка 14: | Строка 14: | ||
-->| Is in trait line={{#var:traitline}}<!-- | -->| Is in trait line={{#var:traitline}}<!-- | ||
-->| Is for profession={{ucfirst:{{#var:profession}}}}<!-- | -->| Is for profession={{ucfirst:{{#var:profession}}}}<!-- | ||
+ | -->| Has profession sort order={{#var:profession_number}}<!-- | ||
+ | -->| Is for specialization={{#var:specialization}}<!-- | ||
+ | -->| 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 | ||
Строка 23: | Строка 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=€€€}}}}}}<!-- | ||
Строка 33: | Строка 38: | ||
-->{{#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 | + | -->{{#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. | ||
Строка 71: | Строка 57: | ||
; name | ; name | ||
; position | ; position | ||
− | ; recharge | + | ; recharge wvw |
− | ; recharge | + | ; recharge pvp |
; id | ; id | ||
; description | ; description | ||
Строка 79: | Строка 65: | ||
; line | ; line | ||
; status | ; status | ||
− | [[Category:Infobox subtemplates]]</noinclude> | + | [[Category:Infobox subtemplates]] |
+ | [[Category:Subobject templates]] | ||
+ | </noinclude> |