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

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
 
(не показано 12 промежуточных версий этого же участника)
Строка 4: Строка 4:
 
-->{{#if: <!-- Hide whitespace for SMW PROPERTIES -->
 
-->{{#if: <!-- Hide whitespace for SMW PROPERTIES -->
  
{{#vardefine:traitline| {{ifexists|{{{line}}} (specialization)|{{{line}}} (specialization)|{{{line|Profession}}}}} }}
+
{{#vardefine:traitline| {{#switch: {{{line}}} | Arcane | Corruption | Retribution = {{{line}}} (specialization) | #default = {{{line|Profession}}} }} }}
 
{{#vardefine:profession| {{lc:{{#show:{{#var:traitline}}|?Is for profession|link=none|default=Any}}}} }}
 
{{#vardefine:profession| {{lc:{{#show:{{#var:traitline}}|?Is for profession|link=none|default=Any}}}} }}
 
{{#vardefine:profession_number| {{#switch: {{lc:{{#var:profession}}}}
 
{{#vardefine:profession_number| {{#switch: {{lc:{{#var:profession}}}}
Строка 39: Строка 39:
 
   | mirage
 
   | mirage
 
   | scourge = 2
 
   | scourge = 2
 +
  | willbender
 +
  | vindicator
 +
  | bladesworn
 +
  | mechanist
 +
  | untamed
 +
  | specter
 +
  | catalyst
 +
  | virtuoso
 +
  | harbinger = 3
 
}}}}|{{#vardefine:specialization_number|0}}<!-- set core to 0 to ensure proper sorting -->}}
 
}}}}|{{#vardefine:specialization_number|0}}<!-- set core to 0 to ensure proper sorting -->}}
  
Строка 59: Строка 68:
 
           | {{#switch: {{lc:{{{line|}}}}}
 
           | {{#switch: {{lc:{{{line|}}}}}
 
             | berserker | dragonhunter | herald | druid | scrapper | daredevil | chronomancer | tempest | reaper
 
             | berserker | dragonhunter | herald | druid | scrapper | daredevil | chronomancer | tempest | reaper
             | spellbreaker | firebrand | renegade | soulbeast | holosmith | deadeye | mirage | weaver | scourge = {{#switch:{{lc:{{{tier|}}}}}
+
             | spellbreaker | firebrand | renegade | soulbeast | holosmith | deadeye | mirage | weaver | scourge
 +
            | willbender | vindicator | bladesworn | mechanist | untamed | specter | catalyst | virtuoso | harbinger = {{#switch:{{lc:{{{tier|}}}}}
 
                 | proficiency = 30
 
                 | proficiency = 30
 
                 | #default = 10
 
                 | #default = 10
Строка 95: Строка 105:
  
 
<!-- excluding contradictiong specialization, e.g. spellbreaker trait improving "daze" should not improve berserker skills -->
 
<!-- excluding contradictiong specialization, e.g. spellbreaker trait improving "daze" should not improve berserker skills -->
{{#switch: {{#var:specialization_number}}
+
{{#ifeq: {{{improves specialization only|false}}}|true
| 1 = {{#vardefine: specialization_QUERY|[[Has specialization sort order::0||1]]}}{{#vardefine: specialization_CHAIN_QUERY|[[Is for skill.Has specialization sort order::0||1]]}}
+
| {{#vardefine: specialization_QUERY|[[Is for specialization::{{#var:traitline}}]]}}{{#vardefine: specialization_CHAIN_QUERY|[[Is for skill.Is for specialization::{{#var:traitline}}]]}}
| 2 = {{#vardefine: specialization_QUERY|[[Has specialization sort order::0||2]]}}{{#vardefine: specialization_CHAIN_QUERY|[[Is for skill.Has specialization sort order::0||2]]}}
+
| {{#switch: {{#var:specialization_number}}
| #default ={{#vardefine: specialization_QUERY|}}{{#vardefine: specialization_CHAIN_QUERY|}}
+
    | 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]]}}
 +
    | 3 = {{#vardefine: specialization_QUERY|[[Has specialization sort order::0||3]]}}{{#vardefine: specialization_CHAIN_QUERY|[[Is for skill.Has specialization sort order::0||3]]}}
 +
    | #default ={{#vardefine: specialization_QUERY|}}{{#vardefine: specialization_CHAIN_QUERY|}}
 +
  }}
 
}}
 
}}
  
 
<!-- improves skill -->
 
<!-- improves skill -->
 
{{#vardefine: improves_skill
 
{{#vardefine: improves_skill
  | {{#arraymap:{{{improves skill|}}}|,|@@@|{{ucfirst:@@@}}
+
  | {{#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]]
 
   }},{{#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 -->
 
         {{#switch: %%% <!-- default, one specific boon/condition/control effect -->
Строка 115: Строка 129:
 
       | ?Is for skill
 
       | ?Is for skill
 
       | format = plainlist | headers = hide | link = none | sep = , | limit = 250 | mainlabel = - | default = | searchlabel =
 
       | 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:@@@}}]]
+
   }},{{#arraymap: {{{improves weapon|}}}|,|@@@|{{#ask: [[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]]
+
         [[Is for profession::{{ucfirst:{{#var:profession}}}}]] {{#var:specialization_QUERY}}
 +
        {{#ifeq: {{{exclude weapon 1|false}}}|true|[[Has skill slot number::>>1]]|[[Has context::Skill]]}}<!-- query limit! -->
 +
        [[Is for game mode::Default||PvE]] [[Is historical::N]]
 
       | format = plainlist | headers = hide | link = none | sep = , | limit = 250 | default = | searchlabel =
 
       | format = plainlist | headers = hide | link = none | sep = , | limit = 250 | default = | searchlabel =
       }}
+
       }}|,
   }},{{#arraymap: {{{improves type|}}}|,|@@@|{{#ask: [[Has context::Skill]]
+
   }},{{#arraymap: {{{improves type|}}}|,|@@@|{{#ask:
         {{#switch: {{ucfirst:@@@}}  
+
         {{#switch: {{ucfirst:@@@}}
 
           | Healing skill = [[Has skill context::Healing]]
 
           | Healing skill = [[Has skill context::Healing]]
 
           | Utility skill = [[Has skill context::Utility]]
 
           | Utility skill = [[Has skill context::Utility]]
 
           | Elite skill  = [[Has skill context::Elite]]
 
           | Elite skill  = [[Has skill context::Elite]]
           | #default = [[Has skill type::{{ucfirst:@@@}}]]
+
          | Leap          = [[Has skill movement type::Leap]]
 +
          | Retreat      = [[Has skill movement type::Retreat]]
 +
          | Shadowstep (mechanic) = [[Has skill movement type::Shadowstep (mechanic)]]
 +
          | Teleport      = [[Has skill movement type::Teleport]]
 +
           | #default = [[Has skill type::{{ucfirst:@@@}}]] {{#if: {{{improves mechanic slot|{{{improves mechanic-slot|}}}}}} | [[Has skill context::!Profession mechanic]] | [[Has context::Skill]]}}
 
         }}
 
         }}
         [[Is for profession::{{ucfirst:{{#var:profession}}}}]] {{#var:specialization_QUERY}} [[Is for game mode::Default||PvE]] [[Is historical::N]]
+
         [[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 =
 +
      }}|,
 +
  }},{{#if: {{{improves mechanic slot|{{{improves mechanic-slot|}}}}}}|{{#arraymap: {{{improves type|}}}|,|@@@|{{#ask: [[Has skill context::Profession mechanic]]
 +
        [[Has skill type::{{ucfirst:@@@}}]]
 +
        [[Is for profession::{{ucfirst:{{#var:profession}}}}]] {{#var:specialization_QUERY}}
 +
        [[Has profession mechanic slot number::{{{improves mechanic slot|{{{improves mechanic-slot}}}}}}]]
 +
        [[Is for game mode::Default||PvE]] [[Is historical::N]]
 
       | format = plainlist | headers = hide | link = none | sep = , | limit = 250 | default = | searchlabel =
 
       | format = plainlist | headers = hide | link = none | sep = , | limit = 250 | default = | searchlabel =
       }}
+
       }}|,}}
 
   }},{{#arraymap: {{{improves property|}}}|,|@@@|{{#ask: [[Has context::Skill fact]]
 
   }},{{#arraymap: {{{improves property|}}}|,|@@@|{{#ask: [[Has context::Skill fact]]
 
         {{#switch: {{lc:@@@}}
 
         {{#switch: {{lc:@@@}}
 
           | boon = [[Has fact type::Boon]]
 
           | boon = [[Has fact type::Boon]]
 
           | condition = [[Has fact type::Condition]]
 
           | condition = [[Has fact type::Condition]]
           | control effect = [[Has fact type::Control effect]]
+
           | control effect | interrupt = [[Has fact type::Control effect]]{{#vardefine:improves_control_effect|true}}
 
           | aura = [[Has fact type::Aura]]
 
           | aura = [[Has fact type::Aura]]
 
           | #default = [[Has fact::{{#ask:[[{{ucfirst:@@@}}]]|default={{ucfirst:@@@}}|link=none}}]]
 
           | #default = [[Has fact::{{#ask:[[{{ucfirst:@@@}}]]|default={{ucfirst:@@@}}|link=none}}]]
Строка 141: Строка 169:
 
       | ?Is for skill
 
       | ?Is for skill
 
       | format = plainlist | headers = hide | link = none | sep = , | limit = 250 | mainlabel = - | default = | searchlabel =
 
       | 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]]
+
   }},{{#ifeq: {{#var:improves_control_effect}}|true|{{#vardefine:improves_control_effect|false}}
 +
      <!-- 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.Is for profession::{{ucfirst:{{#var:profession}}}}]] {{#var:specialization_CHAIN_QUERY}} [[Is for skill.Is historical::N]]
 
       | ?Is for skill
 
       | ?Is for skill
 
       | format = plainlist | headers = hide | link = none | sep = , | limit = 250 | mainlabel = - | default = | searchlabel =
 
       | 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]]
 
   }},{{#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 =
 
       | format = plainlist | headers = hide | link = none | sep = , | limit = 250 | default = | searchlabel =
Строка 154: Строка 183:
 
<!-- exclude improves skill -->
 
<!-- exclude improves skill -->
 
{{#if: {{{exclude improves skill|}}}
 
{{#if: {{{exclude improves skill|}}}
  | {{#arraymap: {{{exclude improves skill|}}}|,|@@@|{{#vardefine: improves_skill|{{#dplreplace: {{#var: improves_skill}}|@@@}}}}|}}
+
  | {{#arraymap: {{{exclude improves skill|}}}|,|@@@|{{#vardefine: improves_skill|{{#dplreplace: ,{{#var: improves_skill}},|(\,)?{{#replace:{{#replace:@@@|(|\(}}|)|\)}}(\,)?|,}}}}|}}
 
}}
 
}}
  
 
<!-- improves trait -->
 
<!-- improves trait -->
 
{{#vardefine: improves_trait
 
{{#vardefine: improves_trait
  | {{#dplreplace: {{#arraymap:{{{improves trait|}}}|,|@@@|{{ucfirst:@@@}}
+
  | {{#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 -->
 
   }},{{#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 -->
 
         {{#switch: %%% <!-- default, one specific boon/condition/control effect -->
Строка 172: Строка 201:
 
       | format = plainlist | headers = hide | link = none | sep = , | limit = 250 | mainlabel = - | default = | searchlabel =
 
       | 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 -->
 
       | 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]]
 
   }},{{#arraymap: {{{improves property|}}}|,|@@@|{{#ask: [[Has context::Trait fact]]
 
         {{#switch: {{lc:@@@}}
 
         {{#switch: {{lc:@@@}}
 
           | boon = [[Has fact type::Boon]] [[Has fact number::>>0]]
 
           | boon = [[Has fact type::Boon]] [[Has fact number::>>0]]
 
           | condition = [[Has fact type::Condition]] [[Has fact number::>>0]]
 
           | condition = [[Has fact type::Condition]] [[Has fact number::>>0]]
           | control effect = [[Has fact type::Control effect]]
+
           | control effect | interrupt = [[Has fact type::Control effect]]{{#vardefine:improves_control_effect|true}}
 
           | aura = [[Has fact type::Aura]]
 
           | aura = [[Has fact type::Aura]]
 
           | #default = [[Has fact::{{#ask:[[{{ucfirst:@@@}}]]|default={{ucfirst:@@@}}|link=none}}]]
 
           | #default = [[Has fact::{{#ask:[[{{ucfirst:@@@}}]]|default={{ucfirst:@@@}}|link=none}}]]
Строка 184: Строка 213:
 
       | ?Is for skill
 
       | ?Is for skill
 
       | format = plainlist | headers = hide | link = none | sep = , | limit = 250 | mainlabel = - | default = | searchlabel =
 
       | 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]]
+
   }},{{#ifeq: {{#var:improves_control_effect}}|true|{{#vardefine:improves_control_effect|false}}
 +
      <!-- 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.Is for profession::{{ucfirst:{{#var:profession}}}}]] {{#var:specialization_CHAIN_QUERY}} [[Is for skill.Is historical::N]]
 
       | ?Is for skill
 
       | ?Is for skill
 
       | format = plainlist | headers = hide | link = none | sep = , | limit = 250 | mainlabel = - | default = | searchlabel =
 
       | format = plainlist | headers = hide | link = none | sep = , | limit = 250 | mainlabel = - | default = | searchlabel =
       }} }}
+
       }}|,}}
 
   }}|{{PAGENAME}}|<!-- remove the current page -->}}
 
   }}|{{PAGENAME}}|<!-- remove the current page -->}}
 
}}
 
}}
Строка 195: Строка 225:
 
<!-- exclude improves trait -->
 
<!-- exclude improves trait -->
 
{{#if: {{{exclude improves trait|}}}
 
{{#if: {{{exclude improves trait|}}}
  | {{#arraymap: {{{exclude improves trait|}}}|,|@@@|{{#vardefine: improves_trait|{{#dplreplace: {{#var: improves_trait}}|@@@}}}}|}}
+
  | {{#arraymap: {{{exclude improves trait|}}}|,|@@@|{{#vardefine: improves_trait|{{#dplreplace: ,{{#var: improves_trait}},|(\,)?{{#replace:{{#replace:@@@|(|\(}}|)|\)}}(\,)?|,}}}}|}}
 
}}
 
}}
  
Строка 201: Строка 231:
 
{{#set:
 
{{#set:
 
  | Improves skill ={{#var: improves_skill}}|+sep=,
 
  | Improves skill ={{#var: improves_skill}}|+sep=,
  | Improves boon ={{#arraymap: {{{improves boon|}}}|,|@@@|{{ucfirst:@@@}}}}|+sep=,
+
  | Improves boon ={{#arraymap: {{{improves boon|}}}|,|@@@|{{ucfirst:@@@}}|,}}|+sep=,
  | Improves condition ={{#arraymap: {{{improves condition|}}}|,|@@@|{{ucfirst:@@@}}}}|+sep=,
+
  | Improves condition ={{#arraymap: {{{improves condition|}}}|,|@@@|{{ucfirst:@@@}}|,}}|+sep=,
  | Improves control effect={{#arraymap: {{{improves control effect|}}}|,|@@@|{{ucfirst:@@@}}}}|+sep=,
+
  | Improves control effect={{#arraymap: {{{improves control effect|}}}|,|@@@|{{ucfirst:@@@}}|,}}|+sep=,
  | Improves aura ={{#arraymap: {{{improves aura|}}}|,|@@@|{{ucfirst:@@@}}}}|+sep=,
+
  | Improves aura ={{#arraymap: {{{improves aura|}}}|,|@@@|{{ucfirst:@@@}}|,}}|+sep=,
  | Improves effect ={{#arraymap: {{{improves effect|}}}|,|@@@|{{ucfirst:@@@}}}}|+sep=,
+
  | Improves effect ={{#arraymap: {{{improves effect|}}}|,|@@@|{{ucfirst:@@@}}|,}}|+sep=,
  | Improves weapon type ={{#arraymap: {{{improves weapon|}}},{{{improves wielded weapon|}}}|,|@@@|{{ucfirst:@@@}}}}|+sep=,
+
  | Improves weapon type ={{#arraymap: {{{improves weapon|}}},{{{improves wielded weapon|}}}|,|@@@|{{ucfirst:@@@}}|,}}|+sep=,
  | Improves skill type ={{#arraymap: {{{improves type|}}}|,|@@@|{{ucfirst:@@@}}}}|+sep=,
+
  | Improves skill type ={{#arraymap: {{{improves type|}}}|,|@@@|{{ucfirst:@@@}}|,}}|+sep=,
  | Improves property ={{#arraymap: {{{improves property|}}}|,|@@@|{{ucfirst:@@@}}}}|+sep=,
+
  | Improves property ={{#arraymap: {{{improves property|}}}|,|@@@|{{ucfirst:@@@}}|,}}|+sep=,
 
  | Improves trait ={{#var: improves_trait}}|+sep=,
 
  | Improves trait ={{#var: improves_trait}}|+sep=,
 
}}
 
}}
Строка 221: Строка 251:
 
|name={{{name|}}}
 
|name={{{name|}}}
 
|position={{{position|}}}
 
|position={{{position|}}}
|recharge-wvw={{{recharge-wvw|}}}
+
|recharge={{#replace:{{{recharge|}}}|.|,}}
|recharge-pvp={{{recharge-pvp|}}}
+
|recharge wvw={{#replace:{{{recharge wvw|{{{recharge-wvw|}}}}}}|.|,}}
 +
|recharge pvp={{#replace:{{{recharge pvp|{{{recharge-pvp|}}}}}}|.|,}}
 
|id={{{id|}}}
 
|id={{{id|}}}
 
|description={{{description|}}}
 
|description={{{description|}}}
Строка 235: Строка 266:
 
<div class="icon infobox-icon">[[Has game icon::File:{{{icon|{{#replace:{{BASEPAGENAME}}|:|-}}.png}}}|40x40px]]</div>
 
<div class="icon infobox-icon">[[Has game icon::File:{{{icon|{{#replace:{{BASEPAGENAME}}|:|-}}.png}}}|40x40px]]</div>
 
<p class="heading">[[Has canonical name::{{{name|{{#titleparts:{{PAGENAME}}}}}}}]]</p>
 
<p class="heading">[[Has canonical name::{{{name|{{#titleparts:{{PAGENAME}}}}}}}]]</p>
<div class="statistics">
+
<div class="statistics">{{#if: {{{recharge|}}}{{{recharge pve|{{{recharge-pve|}}}}}}
{{#if: {{{recharge|}}}{{{recharge-pve|}}}
+
  | {{#set:Has recharge time={{#replace:{{{recharge pve|{{{recharge-pve|{{{recharge}}}}}}}}}|.|,}}}}
  | {{#set:Has recharge time={{{recharge-pve|{{#replace:{{{recharge}}}|.|,}}}}}}}
+
   {{#if: {{{recharge wvw|{{{recharge-wvw|}}}}}}{{{recharge pvp|{{{recharge-pvp|}}}}}}
   {{#if: {{{recharge-wvw|}}}{{{recharge-pvp|}}}
+
     | {{infobox statistic split|stat=recharge|{{{recharge|}}}|pve={{{recharge pve|{{{recharge-pve|}}}}}}|wvw={{{recharge wvw|{{{recharge-wvw|}}}}}}|pvp={{{recharge pvp|{{{recharge-pvp|}}}}}}}}
     | {{infobox statistic split|stat=recharge|{{{recharge|}}}|pve={{{recharge-pve|}}}|wvw={{{recharge-wvw|}}}|pvp={{{recharge-pvp|}}}}}
 
 
     | {{recharge|{{{recharge}}}}}
 
     | {{recharge|{{{recharge}}}}}
   }} &nbsp;
+
   }}
}}
+
| {{#if: {{{recharge wvw|{{{recharge-wvw|}}}}}}{{{recharge pvp|{{{recharge-pvp|}}}}}}
</div>
+
    | {{infobox statistic split|stat=recharge|{{{recharge|}}}|pve={{{recharge pve|{{{recharge-pve|}}}}}}|wvw={{{recharge wvw|{{{recharge-wvw|}}}}}}|pvp={{{recharge pvp|{{{recharge-pvp|}}}}}}}}
 +
  }}
 +
}}</div>
 
<div class="wrapper">
 
<div class="wrapper">
 
; [[Specialization|Специализация]]
 
; [[Specialization|Специализация]]
: {{profession|{{#var:profession}}}} [[{{#var:traitline}}|{{rus lang|specialization|{{{line|Профессия}}}}}]] <small>([[List of {{#var:profession}} traits|список&nbsp;черт]])</small>
+
: {{profession|{{#if: {{#var:specialization}}|{{#var:specialization}}|{{#var:profession}}}}}} [[{{#var:traitline}}|{{rus lang|specialization|{{{line|Профессия}}}}}]] <small>([[List of {{#var:profession}} traits|список&nbsp;черт]])</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=Грандмастер}}]] | ''Не указан'' }}  
Строка 254: Строка 286:
 
}}{{#ifeq: {{#var:hero points}} | 0 ||
 
}}{{#ifeq: {{#var:hero points}} | 0 ||
 
; [[Training|Изучение]]
 
; [[Training|Изучение]]
: {{#var:hero points}} [[Hero point|Очки героя]]
+
: {{#var:hero points}} [[Hero point|{{#switch:{{#var:hero points}}|1=очко|2|3|4=очка|#default=очков}} героя]]
 
}}{{#if: {{{id|}}} |
 
}}{{#if: {{{id|}}} |
 
; Игр. ссылка
 
; Игр. ссылка
 
: {{#arraymap:{{{id}}}|,|@@@|{{trait link|@@@}}{{#set:Has game id=@@@}}|<br>}}
 
: {{#arraymap:{{{id}}}|,|@@@|{{trait link|@@@}}{{#set:Has game id=@@@}}|<br>}}
 
}}{{#if: {{{id|}}} | {{#switch: {{{status|}}} | unimplemented | unimplemented | temporary | historical = | #default =
 
}}{{#if: {{{id|}}} | {{#switch: {{{status|}}} | unimplemented | unimplemented | temporary | historical = | #default =
; Внеш.&nbsp;ссылки
+
; [[API:2/traits|API]]
:[https://api.guildwars2.com/v2/traits?ids={{{id}}}&lang=en API] <!-- "&lang=" is being left in on purpose to make it easier to search for interwiki names of items by switching "en" to "es/fr/de" -->
+
: [https://api.guildwars2.com/v2/traits?ids={{{id}}}&lang=en {{{id}}}] <!-- "&lang=" is being left in on purpose to make it easier to search for interwiki names of items by switching "en" to "es/fr/de" -->
 
}} }}
 
}} }}
 
</div>
 
</div>
Строка 294: Строка 326:
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
== Description ==
 
== Description ==
 +
This infobox is used for [[trait]]s. Uses {{tl|Trait infobox/subobject}}. See {{tl|Trait infobox/historical}} for SMW-free version used on version history pages.
 +
 +
== Usage ==
 
<pre>{{Trait infobox
 
<pre>{{Trait infobox
 
| name =  
 
| name =  
Строка 316: Строка 351:
 
; 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).
 
; 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.
 
; 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.
+
: To set this parameter for a specific game mode: use the ''recharge wvw'' and ''recharge 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.
 
; 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.
Строка 332: Строка 367:
 
: Optional. If in rare cases the query yield unwanted results, then this parameter allows to exclude the unwanted trait pages, separated by ",".
 
: Optional. If in rare cases the query yield unwanted results, then this parameter allows to exclude the unwanted trait pages, separated by ",".
 
;improves boon
 
;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.
+
: 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]]", "[[Resolution]]", "[[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
 
;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.
 
: 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.
Строка 343: Строка 378:
 
;improves weapon
 
;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.
 
: 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.
 +
;exclude weapon 1
 +
: Optional. Can be set to "true" to exclude weapon slot 1 skills from the related skill query based on the parameter "improves weapon". For example used for traits that only improve the recharge of weapons. Defaults to "false".
 
;improves wielded weapon
 
;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.
 
: 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
 
;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.
+
: 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" or movement types: "Leap", "Retreat" "Shadowstep (mechanic)" and "Teleport". This will set the properties [[Property:Improves skill|Improves skill]]/[[Property:Improves trait|Improves trait]] automatically to all related skills/traits.
 +
;improves mechanic slot
 +
: Optional. Restricts the related skill query based on the parameter "improves type" to a mechanic slot, e.g. for [[Virtue skill 1]] set this parameter to 1.
 
;improves property
 
;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]]".
+
: 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 property|Improves property]]. E.g. "[[Barrier]]", "[[Boon]]", "[[Condition]]", "[[Control effect]]" ("Control effect#incoming" for improving on incoming control effects), "[[Aura]]", "[[Interrupt]]".
 +
;improves specialization only
 +
: Optional. Can be set to "true" to restricts the related skill/trait query to the current elite specialization only. Defaults to "false".
 
; 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.
Строка 356: Строка 397:
 
; requires : Optional. The expansion or living world season required to access the content. Displays a notice of the release. See {{tl|infobox requires}} for options.
 
; requires : Optional. The expansion or living world season required to access the content. Displays a notice of the release. See {{tl|infobox requires}} for options.
  
== Example ==
+
=== Example ===
 
<pre>
 
<pre>
 
{{Trait infobox
 
{{Trait infobox
Строка 364: Строка 405:
 
| type = Major
 
| type = Major
 
| position = 3
 
| position = 3
| description = Gain increased damage while under the effects of [[retaliation]].
+
| description = Strike [[damage]] dealt is increased while you have [[resolution]].
 
| facts = {{skill fact|damage increase|10}}
 
| facts = {{skill fact|damage increase|10}}
 
| id = 565
 
| id = 565
Строка 376: Строка 417:
 
| type = Major
 
| type = Major
 
| position = 3
 
| position = 3
| description = Gain increased damage while under the effects of [[retaliation]].
+
| description = Strike [[damage]] dealt is increased while you have [[resolution]].
 
| facts = {{skill fact|damage increase|10}}
 
| facts = {{skill fact|damage increase|10}}
 
| id = 565
 
| id = 565

Текущая версия на 03:15, 26 октября 2023

Description[править]

This infobox is used for traits. Uses {{Trait infobox/subobject}}. See {{Trait infobox/historical}} for SMW-free version used on version history pages.

Usage[править]

{{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 recharge wvw and recharge 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", "Resolution", "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.
exclude weapon 1
Optional. Can be set to "true" to exclude weapon slot 1 skills from the related skill query based on the parameter "improves weapon". For example used for traits that only improve the recharge of weapons. Defaults to "false".
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" or movement types: "Leap", "Retreat" "Shadowstep (mechanic)" and "Teleport". This will set the properties Improves skill/Improves trait automatically to all related skills/traits.
improves mechanic slot
Optional. Restricts the related skill query based on the parameter "improves type" to a mechanic slot, e.g. for Virtue skill 1 set this parameter to 1.
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 property. E.g. "Barrier", "Boon", "Condition", "Control effect" ("Control effect#incoming" for improving on incoming control effects), "Aura", "Interrupt".
improves specialization only
Optional. Can be set to "true" to restricts the related skill/trait query to the current elite specialization only. Defaults to "false".
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 = Strike [[damage]] dealt is increased while you have [[resolution]].
| facts = {{skill fact|damage increase|10}}
| id = 565
}}
Retribution (trait).png

Retribution

Специализация
Guardian icon small.png Сияние (список черт)
Уровень
Мастер
Тип
Старшая
Изучение
5 очков героя
Игр. ссылка
API
565

Strike damage dealt is increased while you have resolution.

Damage.png Увеличение урона: 10%

— Внутриигровое описание