Редактирование: Шаблон:Trait infobox
Материал из Guild Wars 2 wiki
Внимание! Вы не авторизовались на сайте. Ваш IP-адрес будет публично видимым, если вы будете вносить любые правки. Если вы войдёте или создадите учётную запись, правки вместо этого будут связаны с вашим именем пользователя, а также у вас появятся другие преимущества.
Правка может быть отменена. Пожалуйста, просмотрите сравнение версий, чтобы убедиться, что это именно те изменения, которые вас интересуют, и нажмите «Записать страницу», чтобы изменения вступили в силу.
На этой странице невозможны семантические аннотации в тексте из-за ограничений пространства имён. Детали относительно того, как разрешить пространство имен, находятся в справочной странице конфигурации.
Текущая версия | Ваш текст | ||
Строка 4: | Строка 4: | ||
-->{{#if: <!-- Hide whitespace for SMW PROPERTIES --> | -->{{#if: <!-- Hide whitespace for SMW PROPERTIES --> | ||
− | {{#vardefine:traitline| {{ | + | {{#vardefine:traitline| {{ifexists|{{{line}}} (specialization)|{{{line}}} (specialization)|{{{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 | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}}}}|{{#vardefine:specialization_number|0}}<!-- set core to 0 to ensure proper sorting -->}} | }}}}|{{#vardefine:specialization_number|0}}<!-- set core to 0 to ensure proper sorting -->}} | ||
Строка 68: | Строка 59: | ||
| {{#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 | + | | spellbreaker | firebrand | renegade | soulbeast | holosmith | deadeye | mirage | weaver | scourge = {{#switch:{{lc:{{{tier|}}}}} |
− | |||
| proficiency = 30 | | proficiency = 30 | ||
| #default = 10 | | #default = 10 | ||
Строка 110: | Строка 100: | ||
| 1 = {{#vardefine: specialization_QUERY|[[Has specialization sort order::0||1]]}}{{#vardefine: specialization_CHAIN_QUERY|[[Is for skill.Has specialization sort order::0||1]]}} | | 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]]}} | | 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|}} | | #default ={{#vardefine: specialization_QUERY|}}{{#vardefine: specialization_CHAIN_QUERY|}} | ||
}} | }} | ||
Строка 130: | Строка 119: | ||
| 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 skill context::Weapon]] [[Is for weapon::{{ucfirst:@@@}}]] | + | }},{{#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 profession::{{ucfirst:{{#var:profession}}}}]] {{#var:specialization_QUERY}} | ||
− | {{#ifeq: {{{exclude weapon 1|false}}}|true|[[Has skill slot number::>>1 | + | {{#ifeq: {{{exclude weapon 1|false}}}|true|[[Has skill slot number::>>1]]}} |
[[Is for game mode::Default||PvE]] [[Is historical::N]] | [[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 = | ||
Строка 141: | Строка 130: | ||
| 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:@@@}}]] {{#if: {{{improves mechanic-slot|}}} | [[Has skill context::!Profession mechanic]] | [[Has context::Skill]]}} | |
− | |||
− | |||
− | |||
− | | #default = [[Has skill type::{{ucfirst:@@@}}]] {{#if: | ||
}} | }} | ||
[[Is for profession::{{ucfirst:{{#var:profession}}}}]] {{#var:specialization_QUERY}} | [[Is for profession::{{ucfirst:{{#var:profession}}}}]] {{#var:specialization_QUERY}} | ||
Строка 151: | Строка 136: | ||
| format = plainlist | headers = hide | link = none | sep = , | limit = 250 | default = | searchlabel = | | format = plainlist | headers = hide | link = none | sep = , | limit = 250 | default = | searchlabel = | ||
}}|, | }}|, | ||
− | }},{{#if: | + | }},{{#if: {{{improves mechanic-slot|}}}|{{#arraymap: {{{improves type|}}}|,|@@@|{{#ask: [[Has skill context::Profession mechanic]] |
[[Has skill type::{{ucfirst:@@@}}]] | [[Has skill type::{{ucfirst:@@@}}]] | ||
[[Is for profession::{{ucfirst:{{#var:profession}}}}]] {{#var:specialization_QUERY}} | [[Is for profession::{{ucfirst:{{#var:profession}}}}]] {{#var:specialization_QUERY}} | ||
− | [[Has profession mechanic slot number:: | + | [[Has profession mechanic slot number::{{{improves mechanic-slot}}}]] |
[[Is for game mode::Default||PvE]] [[Is historical::N]] | [[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 = | ||
Строка 162: | Строка 147: | ||
| boon = [[Has fact type::Boon]] | | boon = [[Has fact type::Boon]] | ||
| condition = [[Has fact type::Condition]] | | condition = [[Has fact type::Condition]] | ||
− | | control effect | + | | control effect = [[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}}]] | ||
Строка 183: | Строка 168: | ||
<!-- 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:@@@|(|\(}}|)|\)}}\,|,}}}}|}} |
}} | }} | ||
Строка 206: | Строка 191: | ||
| 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 | + | | control effect = [[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}}]] | ||
Строка 225: | Строка 210: | ||
<!-- 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:@@@|(|\(}}|)|\)}}\,|,}}}}|}} |
}} | }} | ||
Строка 251: | Строка 236: | ||
|name={{{name|}}} | |name={{{name|}}} | ||
|position={{{position|}}} | |position={{{position|}}} | ||
− | |recharge | + | |recharge-wvw={{{recharge-wvw|}}} |
− | + | |recharge-pvp={{{recharge-pvp|}}} | |
− | |recharge pvp= | ||
|id={{{id|}}} | |id={{{id|}}} | ||
|description={{{description|}}} | |description={{{description|}}} | ||
Строка 266: | Строка 250: | ||
<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">{{#if: {{{recharge|}}} | + | <div class="statistics"> |
− | | {{#set:Has recharge time= | + | {{#if: {{{recharge|}}}{{{recharge-pve|}}} |
− | {{#if: | + | | {{#set:Has recharge time={{{recharge-pve|{{#replace:{{{recharge}}}|.|,}}}}}}} |
− | | {{infobox statistic split|stat=recharge|{{{recharge|}}}|pve= | + | {{#if: {{{recharge-wvw|}}}{{{recharge-pvp|}}} |
+ | | {{infobox statistic split|stat=recharge|{{{recharge|}}}|pve={{{recharge-pve|}}}|wvw={{{recharge-wvw|}}}|pvp={{{recharge-pvp|}}}}} | ||
| {{recharge|{{{recharge}}}}} | | {{recharge|{{{recharge}}}}} | ||
− | }} | + | }} |
− | + | }} | |
− | + | </div> | |
− | |||
− | |||
<div class="wrapper"> | <div class="wrapper"> | ||
; [[Specialization|Специализация]] | ; [[Specialization|Специализация]] | ||
− | : {{profession | + | : {{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=Грандмастер}}]] | ''Не указан'' }} | ||
Строка 286: | Строка 269: | ||
}}{{#ifeq: {{#var:hero points}} | 0 || | }}{{#ifeq: {{#var:hero points}} | 0 || | ||
; [[Training|Изучение]] | ; [[Training|Изучение]] | ||
− | : {{#var:hero points}} [[Hero point| | + | : {{#var:hero points}} [[Hero point|Очки героя]] |
}}{{#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 = | ||
− | ; | + | ; Внеш. ссылки |
− | : [https://api.guildwars2.com/v2/traits?ids={{{id}}}&lang=en | + | :[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" --> |
}} }} | }} }} | ||
</div> | </div> | ||
Строка 326: | Строка 309: | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
== Description == | == Description == | ||
− | |||
− | |||
− | |||
<pre>{{Trait infobox | <pre>{{Trait infobox | ||
| name = | | name = | ||
Строка 351: | Строка 331: | ||
; 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 '' | + | : 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. | ; 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. | ||
Строка 367: | Строка 347: | ||
: 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]]", "[[ | + | : 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 | ;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. | ||
Строка 383: | Строка 363: | ||
: 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 | + | : 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 mechanic slot | + | ;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. | : 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 | ||
Строка 397: | Строка 377: | ||
; 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 == | |
<pre> | <pre> | ||
{{Trait infobox | {{Trait infobox | ||
Строка 405: | Строка 385: | ||
| type = Major | | type = Major | ||
| position = 3 | | position = 3 | ||
− | | description = | + | | description = Gain increased damage while under the effects of [[retaliation]]. |
| facts = {{skill fact|damage increase|10}} | | facts = {{skill fact|damage increase|10}} | ||
| id = 565 | | id = 565 | ||
Строка 417: | Строка 397: | ||
| type = Major | | type = Major | ||
| position = 3 | | position = 3 | ||
− | | description = | + | | description = Gain increased damage while under the effects of [[retaliation]]. |
| facts = {{skill fact|damage increase|10}} | | facts = {{skill fact|damage increase|10}} | ||
| id = 565 | | id = 565 |