Шаблон:Trait infobox — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
Строка 8: | Строка 8: | ||
{{#vardefine:profession_number| {{#switch: {{lc:{{#var:profession}}}} | {{#vardefine:profession_number| {{#switch: {{lc:{{#var:profession}}}} | ||
| guardian = 1 | | guardian = 1 | ||
− | | revenant = 2 | + | | revenant = 2 |
| warrior = 3 | | warrior = 3 | ||
| engineer = 4 | | engineer = 4 | ||
Строка 21: | Строка 21: | ||
{{#vardefine:specialization|{{#var:traitline}}}} | {{#vardefine:specialization|{{#var:traitline}}}} | ||
{{#vardefine:specialization_number|{{#switch: {{lc:{{#var:traitline}}}} | {{#vardefine:specialization_number|{{#switch: {{lc:{{#var:traitline}}}} | ||
− | | dragonhunter | + | | dragonhunter |
− | | herald | + | | herald |
| berserker | | berserker | ||
| scrapper | | scrapper | ||
Строка 28: | Строка 28: | ||
| daredevil | | daredevil | ||
| tempest | | tempest | ||
− | | chronomancer | + | | chronomancer |
| reaper = 1 | | reaper = 1 | ||
| firebrand | | firebrand | ||
Строка 85: | Строка 85: | ||
<!-- UI position --> | <!-- UI position --> | ||
− | {{#set: Has trait position number={{{position|0}}} }} | + | {{#set: |
+ | | Has trait line number ={{#vardefineecho: traitline_number|{{#show: {{#var:traitline}}|?Has trait line number}}}} | ||
+ | | Has trait tier number ={{#switch: {{lc:{{{tier|}}}}}|proficiency=0|adept=1|master=2|grandmaster=3}} | ||
+ | | Has trait type number ={{#switch: {{lc:{{{type|}}}}}|minor=1|major=2}} | ||
+ | | Has trait position number ={{{position|0}}} | ||
+ | }} | ||
+ | |||
+ | <!-- Improves skill/type/boon/condition/weapon/aura/effect/trait --> | ||
+ | |||
+ | <!-- excluding contradictiong specialization, e.g. spellbreaker trait improving "daze" should not improve berserker skills --> | ||
+ | {{#switch: {{#var:specialization_number}} | ||
+ | | 1 = {{#vardefine: specialization_QUERY|[[Has specialization sort order::0||1]]}}{{#vardefine: specialization_CHAIN_QUERY|[[Is for skill.Has specialization sort order::0||1]]}} | ||
+ | | 2 = {{#vardefine: specialization_QUERY|[[Has specialization sort order::0||2]]}}{{#vardefine: specialization_CHAIN_QUERY|[[Is for skill.Has specialization sort order::0||2]]}} | ||
+ | | #default ={{#vardefine: specialization_QUERY|}}{{#vardefine: specialization_CHAIN_QUERY|}} | ||
+ | }} | ||
+ | |||
+ | <!-- improves skill --> | ||
+ | {{#vardefine: improves_skill | ||
+ | | {{#arraymap:{{{improves skill|}}}|,|@@@|{{ucfirst:@@@}} | ||
+ | }},{{#arraymap: boon, condition, control effect, aura, effect|,|%%%|{{#arraymap: {{{improves %%%|}}}|,|@@@|{{#vardefine:effect|{{#ask:[[{{ucfirst:@@@}}]]|default={{ucfirst:@@@}}|link=none}}}}<!-- take redirects into account -->{{#ask: [[Has context::Skill fact]] | ||
+ | {{#switch: %%% <!-- default, one specific boon/condition/control effect --> | ||
+ | | boon = [[Has fact::{{#var:effect}}]] [[Has fact type::Boon]] | ||
+ | | condition = [[Has fact::{{#var:effect}}]] [[Has fact type::Condition]] | ||
+ | | control effect = [[Has fact::{{#var:effect}}]] [[Has fact type::Control effect]] | ||
+ | | aura = [[Has fact::{{#switch: {{lc:@@@}} | chaos aura = Chaos Aura |dark aura = Dark Aura |fire aura = Fire Aura | frost aura | frost aura (effect) = Frost Aura (effect) | light aura = Light Aura | magnetic aura | magnetic aura (effect) = Magnetic Aura (effect) | shocking aura | shocking aura (effect) = Shocking Aura (effect)}}]] [[Has fact type::Aura]] | ||
+ | | effect = [[Has fact::{{#var:effect}}]] [[Has fact type::Effect]] | ||
+ | }} | ||
+ | [[Is for skill.Is for profession::{{ucfirst:{{#var:profession}}}}]] {{#var:specialization_CHAIN_QUERY}} [[Is for skill.Is historical::N]] | ||
+ | | ?Is for skill | ||
+ | | format = plainlist | headers = hide | link = none | sep = , | limit = 250 | mainlabel = - | default = | searchlabel = | ||
+ | }} }} | ||
+ | }},{{#arraymap: {{{improves weapon|}}}|,|@@@|{{#ask: [[Has context::Skill]] [[Has skill context::Weapon]] [[Is for weapon::{{ucfirst:@@@}}]] | ||
+ | [[Is for profession::{{ucfirst:{{#var:profession}}}}]] {{#var:specialization_QUERY}} [[Is for game mode::Default||PvE]] [[Is historical::N]] | ||
+ | | format = plainlist | headers = hide | link = none | sep = , | limit = 250 | default = | searchlabel = | ||
+ | }} | ||
+ | }},{{#arraymap: {{{improves type|}}}|,|@@@|{{#ask: [[Has context::Skill]] | ||
+ | {{#switch: {{ucfirst:@@@}} | ||
+ | | Healing skill = [[Has skill context::Healing]] | ||
+ | | Utility skill = [[Has skill context::Utility]] | ||
+ | | Elite skill = [[Has skill context::Elite]] | ||
+ | | #default = [[Has skill type::{{ucfirst:@@@}}]] | ||
+ | }} | ||
+ | [[Is for profession::{{ucfirst:{{#var:profession}}}}]] {{#var:specialization_QUERY}} [[Is for game mode::Default||PvE]] [[Is historical::N]] | ||
+ | | format = plainlist | headers = hide | link = none | sep = , | limit = 250 | default = | searchlabel = | ||
+ | }} | ||
+ | }},{{#arraymap: {{{improves property|}}}|,|@@@|{{#ask: [[Has context::Skill fact]] | ||
+ | {{#switch: {{lc:@@@}} | ||
+ | | boon = [[Has fact type::Boon]] | ||
+ | | condition = [[Has fact type::Condition]] | ||
+ | | control effect = [[Has fact type::Control effect]] | ||
+ | | aura = [[Has fact type::Aura]] | ||
+ | | #default = [[Has fact::{{#ask:[[{{ucfirst:@@@}}]]|default={{ucfirst:@@@}}|link=none}}]] | ||
+ | }} | ||
+ | [[Is for skill.Is for profession::{{ucfirst:{{#var:profession}}}}]] {{#var:specialization_CHAIN_QUERY}} [[Is for skill.Is historical::N]] | ||
+ | | ?Is for skill | ||
+ | | format = plainlist | headers = hide | link = none | sep = , | limit = 250 | mainlabel = - | default = | searchlabel = | ||
+ | }} | ||
+ | }},{{#if: {{#pos: {{lc:{{{improves property|}}}}}|control effect}}|<!-- Condition control effects -->{{#arraymap:Fear,Taunt|,|@@@|{{#ask: [[Has context::Skill fact]] [[Has fact::@@@]] [[Has fact type::Condition]] | ||
+ | [[Is for skill.Is for profession::{{ucfirst:{{#var:profession}}}}]] {{#var:specialization_CHAIN_QUERY}} [[Is for skill.Is historical::N]] | ||
+ | | ?Is for skill | ||
+ | | format = plainlist | headers = hide | link = none | sep = , | limit = 250 | mainlabel = - | default = | searchlabel = | ||
+ | }} }} | ||
+ | }},{{#ask: [[Has context::Skill]] [[Has skill context::Trait]] [[Has trait parent::{{PAGENAME}}]] [[Is for game mode::Default||PvE]] [[Is historical::N]] | ||
+ | | format = plainlist | headers = hide | link = none | sep = , | limit = 250 | default = | searchlabel = | ||
+ | }} | ||
+ | }} | ||
+ | |||
+ | <!-- exclude improves skill --> | ||
+ | {{#if: {{{exclude improves skill|}}} | ||
+ | | {{#arraymap: {{{exclude improves skill|}}}|,|@@@|{{#vardefine: improves_skill|{{#dplreplace: {{#var: improves_skill}}|@@@}}}}|}} | ||
+ | }} | ||
+ | |||
+ | <!-- improves trait --> | ||
+ | {{#vardefine: improves_trait | ||
+ | | {{#dplreplace: {{#arraymap:{{{improves trait|}}}|,|@@@|{{ucfirst:@@@}} | ||
+ | }},{{#arraymap: boon, condition, control effect, aura, effect|,|%%%|{{#arraymap: {{{improves %%%|}}}|,|@@@|{{#vardefine:effect|{{#ask:[[{{ucfirst:@@@}}]]|default={{ucfirst:@@@}}|link=none}}}}<!-- take redirects into account -->{{#ask: <!-- [[Has context::Trait fact]] will create a smw warning, using sort instead --> | ||
+ | {{#switch: %%% <!-- default, one specific boon/condition/control effect --> | ||
+ | | boon = [[Has fact::{{#var:effect}}]] [[Has fact type::Boon]] [[Has fact number::>>0]] | ||
+ | | condition = [[Has fact::{{#var:effect}}]] [[Has fact type::Condition]] [[Has fact number::>>0]] | ||
+ | | control effect = [[Has fact::{{#var:effect}}]] [[Has fact type::Control effect]] | ||
+ | | aura = [[Has fact::{{#switch: {{lc:@@@}} | chaos aura = Chaos Aura |dark aura = Dark Aura |fire aura = Fire Aura | frost aura | frost aura (effect) = Frost Aura (effect) | light aura = Light Aura | magnetic aura | magnetic aura (effect) = Magnetic Aura (effect) | shocking aura | shocking aura (effect) = Shocking Aura (effect)}}]] [[Has fact type::Effect]] | ||
+ | | effect = [[Has fact::{{#var:effect}}]] [[Has fact type::Effect]] | ||
+ | }} | ||
+ | [[Is for skill.Is for profession::{{ucfirst:{{#var:profession}}}}]] {{#var:specialization_CHAIN_QUERY}} [[Is for skill.Is historical::N]] | ||
+ | | ?Is for skill | ||
+ | | format = plainlist | headers = hide | link = none | sep = , | limit = 250 | mainlabel = - | default = | searchlabel = | ||
+ | | sort = Is for skill.Is in trait line <!-- dummy sort to search for traits only as [[Has context::Trait fact]] will create a smw warning: restrictions on query size or depth --> | ||
+ | }} }} | ||
+ | }},{{#arraymap: {{{improves property|}}}|,|@@@|{{#ask: [[Has context::Trait fact]] | ||
+ | {{#switch: {{lc:@@@}} | ||
+ | | boon = [[Has fact type::Boon]] [[Has fact number::>>0]] | ||
+ | | condition = [[Has fact type::Condition]] [[Has fact number::>>0]] | ||
+ | | control effect = [[Has fact type::Control effect]] | ||
+ | | aura = [[Has fact type::Aura]] | ||
+ | | #default = [[Has fact::{{#ask:[[{{ucfirst:@@@}}]]|default={{ucfirst:@@@}}|link=none}}]] | ||
+ | }} | ||
+ | [[Is for skill.Is for profession::{{ucfirst:{{#var:profession}}}}]] {{#var:specialization_CHAIN_QUERY}} [[Is for skill.Is historical::N]] | ||
+ | | ?Is for skill | ||
+ | | format = plainlist | headers = hide | link = none | sep = , | limit = 250 | mainlabel = - | default = | searchlabel = | ||
+ | }} | ||
+ | }},{{#if: {{#pos: {{lc:{{{improves property|}}}}}|control effect}}|<!-- Condition control effects -->{{#arraymap:Fear,Taunt|,|@@@|{{#ask: [[Has context::Trait fact]] [[Has fact::@@@]] [[Has fact type::Condition]] | ||
+ | [[Is for skill.Is for profession::{{ucfirst:{{#var:profession}}}}]] {{#var:specialization_CHAIN_QUERY}} [[Is for skill.Is historical::N]] | ||
+ | | ?Is for skill | ||
+ | | format = plainlist | headers = hide | link = none | sep = , | limit = 250 | mainlabel = - | default = | searchlabel = | ||
+ | }} }} | ||
+ | }}|{{PAGENAME}}|<!-- remove the current page -->}} | ||
+ | }} | ||
+ | |||
+ | <!-- exclude improves trait --> | ||
+ | {{#if: {{{exclude improves trait|}}} | ||
+ | | {{#arraymap: {{{exclude improves trait|}}}|,|@@@|{{#vardefine: improves_trait|{{#dplreplace: {{#var: improves_trait}}|@@@}}}}|}} | ||
+ | }} | ||
+ | |||
+ | <!-- setting improves properties --> | ||
+ | {{#set: | ||
+ | | Improves skill ={{#var: improves_skill}}|+sep=, | ||
+ | | Improves boon ={{#arraymap: {{{improves boon|}}}|,|@@@|{{ucfirst:@@@}}}}|+sep=, | ||
+ | | Improves condition ={{#arraymap: {{{improves condition|}}}|,|@@@|{{ucfirst:@@@}}}}|+sep=, | ||
+ | | Improves control effect={{#arraymap: {{{improves control effect|}}}|,|@@@|{{ucfirst:@@@}}}}|+sep=, | ||
+ | | Improves aura ={{#arraymap: {{{improves aura|}}}|,|@@@|{{ucfirst:@@@}}}}|+sep=, | ||
+ | | Improves effect ={{#arraymap: {{{improves effect|}}}|,|@@@|{{ucfirst:@@@}}}}|+sep=, | ||
+ | | Improves weapon type ={{#arraymap: {{{improves weapon|}}},{{{improves wielded weapon|}}}|,|@@@|{{ucfirst:@@@}}}}|+sep=, | ||
+ | | Improves skill type ={{#arraymap: {{{improves type|}}}|,|@@@|{{ucfirst:@@@}}}}|+sep=, | ||
+ | | Improves property ={{#arraymap: {{{improves property|}}}|,|@@@|{{ucfirst:@@@}}}}|+sep=, | ||
+ | | Improves trait ={{#var: improves_trait}}|+sep=, | ||
+ | }} | ||
}}<!-- | }}<!-- | ||
Строка 103: | Строка 228: | ||
|type={{{type|}}} | |type={{{type|}}} | ||
|line={{{line|}}} | |line={{{line|}}} | ||
− | |status={{{status|}}}}} | + | |status={{{status|}}}}} |
| {{#set:Is for game mode=Default}} }}<!-- | | {{#set:Is for game mode=Default}} }}<!-- | ||
Строка 123: | Строка 248: | ||
: {{profession|{{#var:profession}}}} [[{{#var:traitline}}|{{rus lang|specialization|{{{line|Профессия}}}}}]] <small>([[List of {{#var:profession}} traits|список черт]])</small> | : {{profession|{{#var:profession}}}} [[{{#var:traitline}}|{{rus lang|specialization|{{{line|Профессия}}}}}]] <small>([[List of {{#var:profession}} traits|список черт]])</small> | ||
; Уровень | ; Уровень | ||
− | : {{#if:{{{tier|}}}|[[Has trait tier::{{ucfirst:{{{tier}}}}}|{{#switch:{{lc:{{{tier}}}}}|proficiency=Владение|adept=Адепт|master=Мастер|grandmaster=Грандмастер}}]] | + | : {{#if:{{{tier|}}}|[[Has trait tier::{{ucfirst:{{{tier}}}}}|{{#switch:{{lc:{{{tier}}}}}|proficiency=Владение|adept=Адепт|master=Мастер|grandmaster=Грандмастер}}]] | ''Не указан'' }} |
{{#if: {{{type|}}} | | {{#if: {{{type|}}} | | ||
; Тип | ; Тип | ||
− | : [[Has trait type::{{ucfirst:{{{type}}}}}|{{#switch:{{lc:{{{type}}}}}|minor=Младшая|major=Старшая}}]] | + | : [[Has trait type::{{ucfirst:{{{type}}}}}|{{#switch:{{lc:{{{type}}}}}|minor=Младшая|major=Старшая}}]] |
− | }}{{#ifeq: {{#var:hero points}} | 0 || | + | }}{{#ifeq: {{#var:hero points}} | 0 || |
; [[Training|Изучение]] | ; [[Training|Изучение]] | ||
: {{#var:hero points}} [[Hero point|Очки героя]] | : {{#var:hero points}} [[Hero point|Очки героя]] | ||
Строка 140: | Строка 265: | ||
{{clear}} | {{clear}} | ||
</div>{{Quotation|game|{{#if:{{{description|}}}|{{{description}}}{{#set:Has game description={{#dplreplace:{{{description}}}|\[\[Category:Text errors\]\]}}}}|''Описание отсутствует.''}} | </div>{{Quotation|game|{{#if:{{{description|}}}|{{{description}}}{{#set:Has game description={{#dplreplace:{{{description}}}|\[\[Category:Text errors\]\]}}}}|''Описание отсутствует.''}} | ||
− | {{#vardefine:enable facts|true}}{{{facts|}}}{{#vardefine:enable facts|false}}}}{{#if: {{{facts|}}} | {{#set: Has trait facts = {{{facts}}} }} }}<!-- | + | {{#vardefine:enable facts|true}}{{#vardefine:skill fact context|Trait fact}}{{{facts|}}}{{#if: <!-- set missing skill fact subobjects silently --> {{#vardefine: missing skill fact|true}} {{{missing facts|}}} {{#vardefine: missing skill fact|false}} }}{{#vardefine:enable facts|false}}}}{{#if: {{{facts|}}} | {{#set: Has trait facts = {{{facts}}} }} }}<!-- |
AUTOCATEGORIZATION | AUTOCATEGORIZATION | ||
Строка 186: | Строка 311: | ||
; icon : Optional. Icon filename. Defaults to <code>File:<page name>.png</code>. | ; icon : Optional. Icon filename. Defaults to <code>File:<page name>.png</code>. | ||
; split : Optional. Game modes that this skill applies to. See {{tl|Game mode version}}. Calls {{tl|Trait infobox/subobject}} for each game mode beside PvE to create subobjects. | ; split : Optional. Game modes that this skill applies to. See {{tl|Game mode version}}. Calls {{tl|Trait infobox/subobject}} for each game mode beside PvE to create subobjects. | ||
− | ; line : Required. The trait line that the trait is under. | + | ; line : Required. The trait line that the trait is under. |
; tier : Required. The tier (Proficiency ''elite spec only'', Adept, Master, Grandmaster) of the trait; displays ''Unspecified'' if omitted. | ; tier : Required. The tier (Proficiency ''elite spec only'', Adept, Master, Grandmaster) of the trait; displays ''Unspecified'' if omitted. | ||
; type : Required. The trait type (Minor or Major); displays ''Unspecified'' if omitted. | ; type : Required. The trait type (Minor or Major); displays ''Unspecified'' if omitted. | ||
Строка 194: | Строка 319: | ||
; description : Required. The in-game description. | ; description : Required. The in-game description. | ||
; facts : Optional. The trait facts displayed in-game below the description. Each fact should be presented as an individual instance of the {{tl|skill fact}} template. | ; facts : Optional. The trait facts displayed in-game below the description. Each fact should be presented as an individual instance of the {{tl|skill fact}} template. | ||
+ | ;missing facts : Optional. Related skill facts that aren't shown in-game, uses the template {{tl|skill fact}} as the parameter "facts" does. This parameter has no visible result, however, the missing skill fact subobjects can be used in SMW queries. | ||
; training track : Optional, should be automatically calculated. Used to indicate the associated training track. Sets [[Property:Is for training track]]. | ; training track : Optional, should be automatically calculated. Used to indicate the associated training track. Sets [[Property:Is for training track]]. | ||
; training order : Optional. Used to identify the unlock order. Sets [[Property:Has training unlock order]]. | ; training order : Optional. Used to identify the unlock order. Sets [[Property:Has training unlock order]]. | ||
; hero points : Optional, should be automatically calculated. Used to indicate how many hero points required to unlock the skill. Sets [[Property:Has training hero point cost]]. | ; hero points : Optional, should be automatically calculated. Used to indicate how many hero points required to unlock the skill. Sets [[Property:Has training hero point cost]]. | ||
+ | ;improves skill | ||
+ | : Optional. List of all skill pages that are improved by this trait, separated by ",", that are stored in the property [[Property:Improves skill|Improves skill]]. As a '''shortcut''', setting any of the following parameters: ''improves boon/condition/control effect/aura/effect/weapon/type/property'' will query for the related non-historical skills and set them automatically to this property. In other words, if a group of skills is improved by this trait (and not one specific skill) then this parameter can be omitted by specifing one of the following parameters instead. However, if nevertheless a skill is still missing and not added automatically, then this skill can be added with this parameter manually (see '''Browse properties''' in the left bar for the currently stored properties). Furthermore, the related trait skill (if there is one) is also set automatically. | ||
+ | ;exclude improves skill | ||
+ | : Optional. If in rare cases the query yield unwanted results, then this parameter allows to exclude the unwanted skill pages, separated by ",". | ||
+ | ;improves trait | ||
+ | : Optional. List of all trait pages that are improved by this trait, separated by ",", that are stored in the property [[Property:Improves trait|Improves trait]]. As a shortcut, setting any of the following improves parameters: ''improves boon/condition/control effect/aura/effect/property'' will query for the related non-historical traits and set them automatically. | ||
+ | ;exclude improves trait | ||
+ | : Optional. If in rare cases the query yield unwanted results, then this parameter allows to exclude the unwanted trait pages, separated by ",". | ||
+ | ;improves boon | ||
+ | : Optional. List of all [[boon]] pages that are improved by this trait, separated by ",", that are stored in the property [[Property:Improves boon|Improves boon]]. Allowed values: "[[Aegis]]", "[[Alacrity]]", "[[Fury]]", "[[Might]]", "[[Protection]]", "[[Quickness]]", "[[Regeneration]]", "[[Resistance]]", "[[Retaliation]]", "[[Stability]]", "[[Swiftness]]", "[[Vigor]]". This will set the properties [[Property:Improves skill|Improves skill]]/[[Property:Improves trait|Improves trait]] automatically to all related skills/traits. | ||
+ | ;improves condition | ||
+ | : Optional. List of all [[condition]] pages that are improved by this trait, separated by ",", that are stored in the property [[Property:Improves condition|Improves condition]]. Allowed values: "[[Bleeding]]", "[[Blinded]]", "[[Burning]]", "[[Chilled]]", "[[Confusion]]", "[[Crippled]]", "[[Fear]]", "[[Immobile]]", "[[Poisoned]]", "[[Slow]]", "[[Taunt]]", "[[Torment]]", "[[Vulnerability]]", "[[Weakness]]". This will set the properties [[Property:Improves skill|Improves skill]]/[[Property:Improves trait|Improves trait]] automatically to all related skills/traits. | ||
+ | ;improves control effect | ||
+ | : Optional. List of all [[control effect]] pages that are improved by this trait, separated by ",", that are stored in the property [[Property:Improves control effect|Improves control effect]]. Allowed values: "[[Daze]]", "[[Float]]", "[[Knockback]]", "[[Knockdown]]", "[[Launch]]", "[[Pull]]", "[[Sink]]", "[[Stun]]". This will set the properties [[Property:Improves skill|Improves skill]]/[[Property:Improves trait|Improves trait]] automatically to all related skills/traits. | ||
+ | ;improves aura | ||
+ | : Optional. List of all [[aura]] pages that are improved by this trait, separated by ",", that are stored in the property [[Property:Improves aura|Improves aura]]. Allowed values: "[[Chaos Aura]]", "[[Dark Aura]]", "[[Fire Aura]]", "[[Frost Aura (effect)]]" (or "Frost Aura"), "[[Light Aura]]", "[[Magnetic Aura (effect)]]" (or "Magnetic Aura"), "[[Shocking Aura (effect)]]" (or "Shocking Aura"). This will set the properties [[Property:Improves skill|Improves skill]]/[[Property:Improves trait|Improves trait]] automatically to all related skills/traits. | ||
+ | ;improves effect | ||
+ | : Optional. List of all [[effect]] pages that are improved by this trait, separated by ",", that are stored in the property [[Property:Improves effect|Improves effect]]. This will set the properties [[Property:Improves skill|Improves skill]]/[[Property:Improves trait|Improves trait]] automatically to all related skills/traits. | ||
+ | ;improves weapon | ||
+ | : Optional. List of all [[weapon]] type pages that are improved by this trait, separated by ",", that are stored in the property [[Property:Improves weapon type|Improves weapon type]]. Allowed values: "[[Axe]]", "[[Dagger]]", "[[Mace]]", "[[Pistol]]", "[[Scepter]]", "[[Sword]]", "[[Focus]]", "[[Warhorn]]", "[[Torch]]", "[[Shield]]", "[[Greatsword]]", "[[Hammer]]", "[[Longbow]]", "[[Rifle]]", "[[Short bow]]", "[[Staff]]", "[[Spear]]", "[[Harpoon gun]]", "[[Trident]]". This will set the properties [[Property:Improves skill|Improves skill]]/[[Property:Improves trait|Improves trait]] automatically to all related skills/traits. | ||
+ | ;improves wielded weapon | ||
+ | : Optional. List of all [[weapon]] type pages that can be wielded with this trait or grants any bonus while wielding it, separated by ",", that are stored in the property [[Property:Improves weapon type|Improves weapon type]]. If "improves weapon" is already set, then this parameter does '''not''' have to be set again; in contrast to "improves weapon", this will '''not''' set the properties [[Property:Improves skill|Improves skill]]/[[Property:Improves trait|Improves trait]] automatically to all related skills/traits. | ||
+ | ;improves type | ||
+ | : Optional. List of all [[skill type]] pages that are improved by this trait, separated by ",", that are stored in the property [[Property:Improves skill type|Improves skill type]]. Can be set also to "Healing skill", "Utility skill" and "Elite skill". This will set the properties [[Property:Improves skill|Improves skill]]/[[Property:Improves trait|Improves trait]] automatically to all related skills/traits. | ||
+ | ;improves property | ||
+ | : Optional. List of all pages that are improved by this trait and don't match any of the previous improves parameters, separated by ",", that are stored in the property [[Property:Improves skill type|Improves skill type]]. E.g. "[[Barrier]]", "[[Boon]]", "[[Condition]]", "[[Control effect]]", "[[Aura]]", "[[Interrupt]]". | ||
; id : Optional. The game id required to produce the chat link to the trait ingame. | ; id : Optional. The game id required to produce the chat link to the trait ingame. | ||
; 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. | ; 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. |
Версия 22:59, 16 октября 2020
Description
{{Trait infobox | name = | icon = | split = | line = | tier = | type = | recharge = | description = | facts = | id = }}
Parameters
- name
- Optional. Trait name. Defaults to the page name.
- icon
- Optional. Icon filename. Defaults to
File:<page name>.png
. - split
- Optional. Game modes that this skill applies to. See {{Game mode version}}. Calls {{Trait infobox/subobject}} for each game mode beside PvE to create subobjects.
- line
- Required. The trait line that the trait is under.
- tier
- Required. The tier (Proficiency elite spec only, Adept, Master, Grandmaster) of the trait; displays Unspecified if omitted.
- type
- Required. The trait type (Minor or Major); displays Unspecified if omitted.
- position
- Required. The vertical position of the trait within the main trait selection panel. (0 for Minor traits, 1 for the top Major trait, 2 for the middle Major trait, and 3 for the bottom Major trait).
- recharge
- Optional. The trait's recharge time, if any.
- To set this parameter for a specific game mode: use the -wvw and -pvp parameters to set it. If the split is PvE | WvW + PvP, set only one of these parameters for the wvw+pvp version.
- description
- Required. The in-game description.
- facts
- Optional. The trait facts displayed in-game below the description. Each fact should be presented as an individual instance of the {{skill fact}} template.
- missing facts
- Optional. Related skill facts that aren't shown in-game, uses the template {{skill fact}} as the parameter "facts" does. This parameter has no visible result, however, the missing skill fact subobjects can be used in SMW queries.
- training track
- Optional, should be automatically calculated. Used to indicate the associated training track. Sets Property:Is for training track.
- training order
- Optional. Used to identify the unlock order. Sets Property:Has training unlock order.
- hero points
- Optional, should be automatically calculated. Used to indicate how many hero points required to unlock the skill. Sets Property:Has training hero point cost.
- improves skill
- Optional. List of all skill pages that are improved by this trait, separated by ",", that are stored in the property Improves skill. As a shortcut, setting any of the following parameters: improves boon/condition/control effect/aura/effect/weapon/type/property will query for the related non-historical skills and set them automatically to this property. In other words, if a group of skills is improved by this trait (and not one specific skill) then this parameter can be omitted by specifing one of the following parameters instead. However, if nevertheless a skill is still missing and not added automatically, then this skill can be added with this parameter manually (see Browse properties in the left bar for the currently stored properties). Furthermore, the related trait skill (if there is one) is also set automatically.
- exclude improves skill
- Optional. If in rare cases the query yield unwanted results, then this parameter allows to exclude the unwanted skill pages, separated by ",".
- improves trait
- Optional. List of all trait pages that are improved by this trait, separated by ",", that are stored in the property Improves trait. As a shortcut, setting any of the following improves parameters: improves boon/condition/control effect/aura/effect/property will query for the related non-historical traits and set them automatically.
- exclude improves trait
- Optional. If in rare cases the query yield unwanted results, then this parameter allows to exclude the unwanted trait pages, separated by ",".
- improves boon
- Optional. List of all boon pages that are improved by this trait, separated by ",", that are stored in the property Improves boon. Allowed values: "Aegis", "Alacrity", "Fury", "Might", "Protection", "Quickness", "Regeneration", "Resistance", "Retaliation", "Stability", "Swiftness", "Vigor". This will set the properties Improves skill/Improves trait automatically to all related skills/traits.
- improves condition
- Optional. List of all condition pages that are improved by this trait, separated by ",", that are stored in the property Improves condition. Allowed values: "Bleeding", "Blinded", "Burning", "Chilled", "Confusion", "Crippled", "Fear", "Immobile", "Poisoned", "Slow", "Taunt", "Torment", "Vulnerability", "Weakness". This will set the properties Improves skill/Improves trait automatically to all related skills/traits.
- improves control effect
- Optional. List of all control effect pages that are improved by this trait, separated by ",", that are stored in the property Improves control effect. Allowed values: "Daze", "Float", "Knockback", "Knockdown", "Launch", "Pull", "Sink", "Stun". This will set the properties Improves skill/Improves trait automatically to all related skills/traits.
- improves aura
- Optional. List of all aura pages that are improved by this trait, separated by ",", that are stored in the property Improves aura. Allowed values: "Chaos Aura", "Dark Aura", "Fire Aura", "Frost Aura (effect)" (or "Frost Aura"), "Light Aura", "Magnetic Aura (effect)" (or "Magnetic Aura"), "Shocking Aura (effect)" (or "Shocking Aura"). This will set the properties Improves skill/Improves trait automatically to all related skills/traits.
- improves effect
- Optional. List of all effect pages that are improved by this trait, separated by ",", that are stored in the property Improves effect. This will set the properties Improves skill/Improves trait automatically to all related skills/traits.
- improves weapon
- Optional. List of all weapon type pages that are improved by this trait, separated by ",", that are stored in the property Improves weapon type. Allowed values: "Axe", "Dagger", "Mace", "Pistol", "Scepter", "Sword", "Focus", "Warhorn", "Torch", "Shield", "Greatsword", "Hammer", "Longbow", "Rifle", "Short bow", "Staff", "Spear", "Harpoon gun", "Trident". This will set the properties Improves skill/Improves trait automatically to all related skills/traits.
- improves wielded weapon
- Optional. List of all weapon type pages that can be wielded with this trait or grants any bonus while wielding it, separated by ",", that are stored in the property Improves weapon type. If "improves weapon" is already set, then this parameter does not have to be set again; in contrast to "improves weapon", this will not set the properties Improves skill/Improves trait automatically to all related skills/traits.
- improves type
- Optional. List of all skill type pages that are improved by this trait, separated by ",", that are stored in the property Improves skill type. Can be set also to "Healing skill", "Utility skill" and "Elite skill". This will set the properties Improves skill/Improves trait automatically to all related skills/traits.
- improves property
- Optional. List of all pages that are improved by this trait and don't match any of the previous improves parameters, separated by ",", that are stored in the property Improves skill type. E.g. "Barrier", "Boon", "Condition", "Control effect", "Aura", "Interrupt".
- id
- Optional. The game id required to produce the chat link to the trait ingame.
- 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 content. Only set if not currently obtainable ingame, displays relevant notice. Available options: "historical", "future", "unimplemented", "current" (default).
- status notes
- Optional. Allows provision of additional reason for the given status.
- status date
- Optional. Sets the date of the update that marked this skill as historical (in YYYY-MM-DD format).
- requires
- Optional. The expansion or living world season required to access the content. Displays a notice of the release. See {{infobox requires}} for options.
Example
{{Trait infobox | name = Retribution | line = Radiance | tier = Master | type = Major | position = 3 | description = Gain increased damage while under the effects of [[retaliation]]. | facts = {{skill fact|damage increase|10}} | id = 565 }}
Retribution
- Специализация
- Сияние (список черт)
- Уровень
- Мастер
- Тип
- Старшая
- Изучение
- 5 очков героя
- Игр. ссылка
- API
- 565
“Gain increased damage while under the effects of retaliation.
- Увеличение урона: 10%
— Внутриигровое описание