Шаблон:Trait infobox/subobject — различия между версиями

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
 
(не показаны 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-wvw|}}}|{{#if:{{#pos:@@@|wvw}}|{{#subobject:{{#var:sobj}}| Has recharge time={{{recharge-wvw}}} }}}}}}<!--
+
-->{{#if: {{{recharge wvw|}}} | {{#if:{{#pos:@@@|wvw}}|{{#subobject:{{#var:sobj}}| Has recharge time={{{recharge wvw}}} }}}} }}<!--
-->{{#if:{{{recharge-pvp|}}}|{{#if:{{#pos:@@@|pvp}}|{{#subobject:{{#var:sobj}}| Has recharge time={{{recharge-pvp}}} }}}}}}<!--
+
-->{{#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}}}}}}<!--
-->{{#if:{{{type|}}}|{{#if:{{{tier|}}}|{{#if:{{{line|}}}|<!--
 
-->{{#switch: {{lc:{{{line|}}}}}
 
| berserker | dragonhunter | herald | druid | scrapper | daredevil | chronomancer | tempest | reaper
 
| spellbreaker | firebrand | renegade | soulbeast | holosmith | deadeye | mirage | weaver | scourge =
 
{{#subobject:{{#var:sobj}}|Has hero point cost={{#switch:{{lc:{{{tier|}}}}}
 
  | proficiency = 30
 
  | #default = 10
 
  }} }}
 
| #default =
 
{{#subobject:{{#var:sobj}}|Has hero point cost={{#switch:{{lc:{{{type|}}}{{{tier|}}}}}
 
  | minoradept = 2
 
  | majoradept = 3
 
  | minormaster = 4
 
  | majormaster = 5
 
  | minorgrandmaster = 6
 
  | majorgrandmaster = 8
 
  }} }}
 
}}<!--
 
-->}} }} }}<!--
 
  
 
# properties set by templates called by Trait Infobox
 
# properties set by templates called by Trait Infobox
  
-->{{#if:{{{status|}}}|{{#switch: {{lc:{{{status|}}}}}<!--
+
-->{{#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=Y | Has availability=Future}}<!--
+
-->| future = {{#subobject:{{#var:sobj}}| Is historical=N | Has availability=Future}}<!--
-->| temporary | historical = {{#subobject:{{#var:sobj}}| Is historical=Y | Has availability=Historical}}<!--
+
-->| 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 = = {{#subobject:{{#var:sobj}}| Is historical=N | Has availability=Current}}<!--
+
-->| 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-wvw
+
; recharge wvw
; recharge-pvp
+
; recharge pvp
 
; id
 
; id
 
; description
 
; description

Текущая версия на 07:55, 14 февраля 2024

To be used by the infobox for split traits.

Parameters[править]

split
icon
name
position
recharge wvw
recharge pvp
id
description
tier
type
line
status