Шаблон:Skill list — различия между версиями
Материал из Guild Wars 2 wiki
Blood (обсуждение | вклад) |
Blood (обсуждение | вклад) |
||
Строка 3: | Строка 3: | ||
{{#vardefine: smw-empty-query-warning|{{#ifeq: {{{warning|true}}}|false|<!-- no warning -->|{{#if: {{NAMESPACE}}||[[Category:Pages with empty semantic mediawiki query results]]}}}}}} | {{#vardefine: smw-empty-query-warning|{{#ifeq: {{{warning|true}}}|false|<!-- no warning -->|{{#if: {{NAMESPACE}}||[[Category:Pages with empty semantic mediawiki query results]]}}}}}} | ||
− | {{#vardefine:last_skill|}} <!-- purge last skill from previous template --> | + | {{#vardefine:last_skill|}}{{#vardefine:last_profession|}}<!-- purge last skill/profession from previous template call --> |
− | {{#vardefine: | + | {{#vardefine:context|{{ucfirst:{{{1|}}}}}}} |
− | {{#vardefine: type | {{#if: {{{type|}}}|{{ucfirst:{{{type|}}}}}|{{#switch: | + | {{#vardefine:effect|{{ucfirst:{{{2|{{#titleparts:{{PAGENAME}}}}}}}}}}} |
+ | |||
+ | {{#vardefine: type | {{#if: {{{type|}}}|{{ucfirst:{{{type|}}}}}|{{#switch: {{#var:effect}} | ||
| Aegis | | Aegis | ||
| Alacrity | | Alacrity | ||
Строка 73: | Строка 75: | ||
}}{{#ask: | }}{{#ask: | ||
− | {{#switch: {{ | + | {{#switch: {{#var:context}} |
| <!-- by supertype profession if empty --> | | <!-- by supertype profession if empty --> | ||
− | | Profession = | + | | Profession = <!-- wiki query depth restrictions -->[[Is for skill.Has skill context::!Trait]] |
{{#switch: {{lc:{{{game mode|}}}}} | {{#switch: {{lc:{{{game mode|}}}}} | ||
| <!-- empty --> = {{#switch: {{lc:{{{suffix|}}}}} | type and notes | notes = <!-- no restriction --> | #default = [[Is for game mode::Default||PvE]]}} | | <!-- empty --> = {{#switch: {{lc:{{{suffix|}}}}} | type and notes | notes = <!-- no restriction --> | #default = [[Is for game mode::Default||PvE]]}} | ||
Строка 94: | Строка 96: | ||
| n | | n | ||
| no | | no | ||
− | | #default = [[Has fact type::{{#var:type}}]] [[Has fact:: | + | | #default = [[Has fact type::{{#var:type}}]] [[Has fact::{{#var:effect}}]] |
| y | | y | ||
− | | yes = {{#ifeq: {{#var:type}}|+|<!-- no restriction -->|[[Has fact type::{{#var:type}}{{!!}}Effect]]}} [[Has fact effect:: | + | | yes = {{#ifeq: {{#var:type}}|+|<!-- no restriction -->|[[Has fact type::{{#var:type}}{{!!}}Effect]]}} [[Has fact effect::{{#var:effect}}]] |
− | | only = [[Has fact type::Effect]] [[Has fact effect:: | + | | only = [[Has fact type::Effect]] [[Has fact effect::{{#var:effect}}]] |
}} | }} | ||
[[Is for skill.Has availability::Current{{#ifeq:{{#show:{{PAGENAME}}|?Has availability}}|Future|{{!!}}Future}}]] | [[Is for skill.Has availability::Current{{#ifeq:{{#show:{{PAGENAME}}|?Has availability}}|Future|{{!!}}Future}}]] | ||
Строка 107: | Строка 109: | ||
| ?Is for skill.Has canonical name <!-- 3 --> | | ?Is for skill.Has canonical name <!-- 3 --> | ||
| ?Is for skill.Has game icon <!-- 4 --> | | ?Is for skill.Has game icon <!-- 4 --> | ||
− | | {{#switch: {{ | + | | {{#switch: {{#var:context}} | #default = ?Is for skill.Is for profession | Racial | Race = ?Is for skill.Is for race}} <!-- 5 --> |
| ?Is for skill.Is for specialization <!-- 6 --> | | ?Is for skill.Is for specialization <!-- 6 --> | ||
| ?Is for skill.Has game description <!-- 7 --> | | ?Is for skill.Has game description <!-- 7 --> | ||
Строка 119: | Строка 121: | ||
| ?Is for game mode <!--15 --> | | ?Is for game mode <!--15 --> | ||
| ?Is for skill.Is for attunement <!--16 --> | | ?Is for skill.Is for attunement <!--16 --> | ||
− | | {{#switch: {{ | + | | {{#switch: {{#var:context}} <!--17 --> |
− | | {{#switch: {{ | + | | Weapon = ?Is for skill.Is for weapon |
− | | {{#switch: {{ | + | | Bundle |
+ | | Common = ?Is for skill.Is for bundle | ||
+ | | Activity, Tonic | Tonic = ?Is for skill.Is for tonic | ||
+ | | Activity, Toy | Toy = ?Is for skill.Is for toy | ||
+ | | Transform = ?Is for skill.Has parent skill | ||
+ | | Healing | ||
+ | | Utility | ||
+ | | Elite = ?Is for skill.Has skill type | ||
+ | | Racial | ||
+ | | Profession mechanic = ?Is for skill.Has parent skill | ||
+ | | Pet = ?Is for skill.Is for pet family | ||
+ | | Trait = ?Is for skill.Has trait parent | ||
+ | | Profession | ||
+ | |<!-- empty -->= ?Is for skill.Has skill type}} | ||
+ | | {{#switch: {{#var:context}} | Racial = ?Is for skill.Has skill type | Pet = ?Is for skill.Is for pet | Profession mechanic | Profession |<!-- empty -->= ?Is for skill.Is for weapon}} <!--18 --> | ||
+ | | {{#switch: {{#var:context}} | Profession mechanic = ?Is for skill.Has skill type | Pet = ?Dummy query | Profession |<!-- empty -->= ?Is for skill.Is for weapon}} <!--19 --> | ||
| format = template | | format = template | ||
− | | template = Skill list result format{{ | + | | template = Skill list result format{{#switch: {{lc:{{{suffix|{{#ifeq:{{#var:context}}|Trait|trait|type}}}}}}} |
− | + | | notes | type and notes = /notes | |
+ | | description | trait = /description | ||
+ | }}{{!}}suffix={{lc:{{{suffix|{{#ifeq:{{#var:context}}|Trait|trait|type}}}}}}}{{!}}type={{#var:type}}{{!}}effect={{#var:effect}}{{!}}context={{#var:context}} | ||
+ | | intro = {{{intro|}}}{{#if: {{{heading|}}}|<nowiki/> | ||
+ | <div id="{{{id|skilllist}}}"><{{{heading level|h3}}} class="filter-plain {{#var_final: p-{{#var:type}}-{{#var:effect}}-{{#var:context}} }} f-{{#var:context}}">{{{heading|}}}</{{{heading level|h3}}}></div>}}<ul id="{{{id|skilllist}}}" style="margin-top:0em;"> | ||
+ | | outro = </ul> | ||
| link = none | | link = none | ||
− | | sort = {{#switch: {{ | + | | sort = {{#switch: {{#var:context}} |
| Weapon = Is for skill.Has profession sort order, Is for skill.Has specialization sort order, Is for skill.Has weapon type sort order, Is for skill.Has page name | | Weapon = Is for skill.Has profession sort order, Is for skill.Has specialization sort order, Is for skill.Has weapon type sort order, Is for skill.Has page name | ||
| Bundle = Is for skill.Has profession sort order, Is for skill.Has specialization sort order, Is for skill.Is for bundle, Is for skill.Has page name | | Bundle = Is for skill.Has profession sort order, Is for skill.Has specialization sort order, Is for skill.Is for bundle, Is for skill.Has page name | ||
Строка 133: | Строка 155: | ||
| Elite = Is for skill.Has profession sort order, Is for skill.Has specialization sort order, Is for skill.Has skill type sort order, Is for skill.Has page name | | Elite = Is for skill.Has profession sort order, Is for skill.Has specialization sort order, Is for skill.Has skill type sort order, Is for skill.Has page name | ||
| Racial = Is for skill.Is for race, Is for skill.Has page name | | Racial = Is for skill.Is for race, Is for skill.Has page name | ||
+ | | Toy | ||
+ | | Tonic | ||
| Common = | | Common = | ||
| #default = Is for skill.Has profession sort order, Is for skill.Has specialization sort order, Is for skill.Has page name}} | | #default = Is for skill.Has profession sort order, Is for skill.Has specialization sort order, Is for skill.Has page name}} | ||
Строка 140: | Строка 164: | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
== Description == | == Description == | ||
− | This template returns a list of skills of a certain skill context that grant a certain [[boon]], apply a certain [[condition]] or a certain [[control effect]]. Sorted by profession (alphabetically within heavy, medium, light), by elite specialization and if possible by weapon. It relies on the usage of the template {{tl|skill fact}} which sets the according skill fact properties. An overview of the skill fact properties and their types can be found [[Guild Wars 2 Wiki:Semantic MediaWiki/Skill facts#Overview|here]] | + | This template returns a list of skills of a certain skill context that grant a certain [[boon]], apply a certain [[condition]] or a certain [[control effect]]. Sorted by profession (alphabetically within heavy, medium, light), by elite specialization and if possible by weapon. It relies on the usage of the template {{tl|skill fact}} which sets the according skill fact properties. An overview of the skill fact properties and their types can be found [[Guild Wars 2 Wiki:Semantic MediaWiki/Skill facts#Overview|here]]. |
− | + | ;Format using | |
+ | * {{tl|skill list result format}} for the format "suffix = type/none". | ||
+ | * {{tl|skill list result format/notes}} for the format "suffix = notes/type and notes". | ||
+ | * {{tl|skill list result format/description}} for the format "suffix = description/trait". | ||
+ | : ''See also: [[#Format comparison]]'' | ||
;Related templates | ;Related templates | ||
Строка 203: | Строка 231: | ||
{{Skill list|Profession|<effect>}} | {{Skill list|Profession|<effect>}} | ||
</pre> | </pre> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
=== Parameters === | === Parameters === | ||
;1 ''(unnamed parameter)'' | ;1 ''(unnamed parameter)'' | ||
− | : Required. | + | : Required. Profession skill context: "Weapon", "Bundle", "Transform", "Healing", "Utility", "Elite", "Profession mechanic", "Pet", "Downed", "Drowning", "Trait". Can be set to "Profession" to display all profession skills without specifying any skill context (default). |
− | + | : Additional options: "Racial" and "Common" (non-profession skills), or common skill context like "Tonic", "Toy". | |
;2 ''(unnamed parameter)'' | ;2 ''(unnamed parameter)'' | ||
: Required. Skill fact, boon, condition or control effect, e.g. [[Might]], [[Burning]]. Defaults to PAGENAME. | : Required. Skill fact, boon, condition or control effect, e.g. [[Might]], [[Burning]]. Defaults to PAGENAME. | ||
Строка 378: | Строка 243: | ||
: Optional. On default the game mode is restricted to the PvE version (except for "suffix = type and notes OR notes", there all versions are taken into account). Set it to "all" to select all game modes or specify one or more game modes: "PvE", "WvW", "PvP" and "Default" (for skills that aren't split, e.g. "Default, PvE"), separated by ",". | : Optional. On default the game mode is restricted to the PvE version (except for "suffix = type and notes OR notes", there all versions are taken into account). Set it to "all" to select all game modes or specify one or more game modes: "PvE", "WvW", "PvP" and "Default" (for skills that aren't split, e.g. "Default, PvE"), separated by ",". | ||
;suffix | ;suffix | ||
− | : Optional. Either "type" (default, weapon or skill type), "none | + | : Optional. Either "type" (default, weapon or skill type), "none", "notes" (in-game fact description), "type and notes", "description" or "trait" (matching {{tl|trait list}}, trait parent and description). See also [[#Format comparison]]. |
;number | ;number | ||
: Optional. Allows to ask for the skill effect number, e.g. "20" for Physical Projectile (20% chance) and "100" for Physical Projectile. | : Optional. Allows to ask for the skill effect number, e.g. "20" for Physical Projectile (20% chance) and "100" for Physical Projectile. | ||
Строка 385: | Строка 250: | ||
;intro | ;intro | ||
: Optional. Intro text. | : Optional. Intro text. | ||
+ | ;heading | ||
+ | : Optional. Intro heading. This will internally set filter classes for {{tl|related skills filter}}. | ||
+ | ;heading level | ||
+ | : Optional. Intro heading level, defaults to h3. | ||
;default | ;default | ||
: Optional. Default text. | : Optional. Default text. | ||
Строка 393: | Строка 262: | ||
<pre>{{Skill list|Utility|Might}}</pre> | <pre>{{Skill list|Utility|Might}}</pre> | ||
{{Skill list|Utility|Might}} | {{Skill list|Utility|Might}} | ||
− | |||
− | |||
− | |||
<pre>{{Skill list|Racial|Burning}}</pre> | <pre>{{Skill list|Racial|Burning}}</pre> | ||
{{Skill list|Racial|Burning}} | {{Skill list|Racial|Burning}} | ||
− | <pre>{{Skill list| | + | <pre>{{Skill list|Bundle|Projectile finisher|number=20}}</pre> |
− | {{Skill list| | + | {{Skill list|Bundle|Projectile finisher|number=20}} |
− | + | === Format comparison === | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | === Format comparison | ||
{| style="width:100%" | {| style="width:100%" | ||
! style="width:50%" | type (default) | ! style="width:50%" | type (default) | ||
Строка 420: | Строка 280: | ||
|- | |- | ||
! style="width:50%" | notes | ! style="width:50%" | notes | ||
− | ! style="width:50%" | | + | ! style="width:50%" | type and notes |
|- | |- | ||
+ | | style="vertical-align:top" | <pre>{{Skill list|Utility|Might|suffix=notes}}</pre> | ||
+ | {{Skill list|Utility|Might|suffix=notes}} | ||
| style="vertical-align:top" | <pre>{{Skill list|Utility|Might|suffix=type and notes}}</pre> | | style="vertical-align:top" | <pre>{{Skill list|Utility|Might|suffix=type and notes}}</pre> | ||
{{Skill list|Utility|Might|suffix=type and notes}} | {{Skill list|Utility|Might|suffix=type and notes}} | ||
+ | |- | ||
+ | ! style="width:50%" | description | ||
+ | ! style="width:50%" | trait | ||
+ | |- | ||
| style="vertical-align:top" | <pre>{{Skill list|Utility|Might|suffix=description}}</pre> | | style="vertical-align:top" | <pre>{{Skill list|Utility|Might|suffix=description}}</pre> | ||
{{Skill list|Utility|Might|suffix=description}} | {{Skill list|Utility|Might|suffix=description}} | ||
+ | | style="vertical-align:top" | <pre>{{Skill list|Trait|Might|suffix=trait}}</pre> | ||
+ | {{Skill list|Trait|Might|suffix=trait}} | ||
|} | |} | ||
[[Category:Skill formatting templates]] | [[Category:Skill formatting templates]] | ||
</noinclude> | </noinclude> |
Текущая версия на 02:27, 11 марта 2022
Содержание
Description[править]
This template returns a list of skills of a certain skill context that grant a certain boon, apply a certain condition or a certain control effect. Sorted by profession (alphabetically within heavy, medium, light), by elite specialization and if possible by weapon. It relies on the usage of the template {{skill fact}} which sets the according skill fact properties. An overview of the skill fact properties and their types can be found here.
- Format using
- {{skill list result format}} for the format "suffix = type/none".
- {{skill list result format/notes}} for the format "suffix = notes/type and notes".
- {{skill list result format/description}} for the format "suffix = description/trait".
- See also: #Format comparison
- Related templates
Usage | Skill templates | Trait templates | Description |
---|---|---|---|
Section | {{Related skills}} | {{Related traits}} | These templates list all related skills/traits based on {{skill fact}} and on the {{trait infobox}} improves parameters. They create subsection headings automatically. |
Subsection | {{Skill list}} | {{Trait list}} | These templates list all related skills of a certain context (e.g. weapon, utility)/traits based on {{skill fact}} |
{{Skill list by property}} | {{Trait list by property}} | These templates list all related skills/traits based on a smw query, e.g. based on the {{trait infobox}} improves parameters. | |
Inline | — | {{Trait list entry}} | This template displays the profession icon, trait icon, trait, trait line and trait description. |
Usage[править]
Related skills[править]
{{Skill list|Weapon}} {{Skill list|Bundle}} {{Skill list|Transform}} {{Skill list|Healing}} {{Skill list|Utility}} {{Skill list|Elite}} {{Skill list|Profession mechanic}} {{Skill list|Pet}} {{Skill list|Downed}} {{Skill list|Drowning}} {{Skill list|Trait}} {{Skill list|Racial}} {{Skill list|Common}} {{Skill list|Profession}}
{{Skill list|Weapon|<effect>}} {{Skill list|Bundle|<effect>}} {{Skill list|Transform|<effect>}} {{Skill list|Healing|<effect>}} {{Skill list|Utility|<effect>}} {{Skill list|Elite|<effect>}} {{Skill list|Profession mechanic|<effect>}} {{Skill list|Pet|<effect>}} {{Skill list|Downed|<effect>}} {{Skill list|Drowning|<effect>}} {{Skill list|Trait|<effect>}} {{Skill list|Racial|<effect>}} {{Skill list|Common|<effect>}} {{Skill list|Profession|<effect>}}
Parameters[править]
- 1 (unnamed parameter)
- Required. Profession skill context: "Weapon", "Bundle", "Transform", "Healing", "Utility", "Elite", "Profession mechanic", "Pet", "Downed", "Drowning", "Trait". Can be set to "Profession" to display all profession skills without specifying any skill context (default).
- Additional options: "Racial" and "Common" (non-profession skills), or common skill context like "Tonic", "Toy".
- 2 (unnamed parameter)
- Required. Skill fact, boon, condition or control effect, e.g. Might, Burning. Defaults to PAGENAME.
- type
- Optional. Skill fact type. For boons, conditions and control effect this is set automatically. See also here.
- game mode
- Optional. On default the game mode is restricted to the PvE version (except for "suffix = type and notes OR notes", there all versions are taken into account). Set it to "all" to select all game modes or specify one or more game modes: "PvE", "WvW", "PvP" and "Default" (for skills that aren't split, e.g. "Default, PvE"), separated by ",".
- suffix
- Optional. Either "type" (default, weapon or skill type), "none", "notes" (in-game fact description), "type and notes", "description" or "trait" (matching {{trait list}}, trait parent and description). See also #Format comparison.
- number
- Optional. Allows to ask for the skill effect number, e.g. "20" for Physical Projectile (20% chance) and "100" for Physical Projectile.
- include effects
- Optional. Include fact type "Effect" facts to allow keywords set via effect bonus (i.e. to ask for Property:Has fact effect instead of Property:Has fact), e.g. "Power" for Banner of Strength. Either "no" (default), "yes" or "only".
- intro
- Optional. Intro text.
- heading
- Optional. Intro heading. This will internally set filter classes for {{related skills filter}}.
- heading level
- Optional. Intro heading level, defaults to h3.
- default
- Optional. Default text.
- query
- Optional. Additional query.
Examples[править]
{{Skill list|Utility|Might}}
- "Save Yourselves!" — Крик
- Overwhelming Celerity — Последний заряд
- Potent Haste — Мантра
- Facet of Strength — Стойка легендарного дракона, Аспект
- Nomad's Advance — Стойка легендарного альянса, Люксон
- Banner of Strength — Стяг
- "For Great Justice!" — Крик
- Signet of Might — Печать
- Frenzy — Стойка
- Elixir B — Эликсир
- Blast Gyro — Источник
- "Guard!" — Команда
- Sun Spirit — Дух
- Griffon Stance — Стойка
- Well of Bounty — Источник
- Cleansing Fire — Колдовство
- "Feel the Burn!" — Крик
- Mantra of Pain — Мантра
- Signet of Inspiration — Печать
- Well of Action — Источник
- Psychic Force — Псионика
- Well of Power — Источник
- "You Are All Weaklings!" — Крик
- Desiccate — Кара
- Elixir of Risk — Эликсир
{{Skill list|Racial|Burning}}
- No skills found.
{{Skill list|Bundle|Projectile finisher|number=20}}
Format comparison[править]
type (default) | none |
---|---|
{{Skill list|Utility|Might|suffix=type}}
|
{{Skill list|Utility|Might|suffix=none}}
|
notes | type and notes |
{{Skill list|Utility|Might|suffix=notes}}
|
{{Skill list|Utility|Might|suffix=type and notes}}
|
description | trait |
{{Skill list|Utility|Might|suffix=description}}
|
{{Skill list|Trait|Might|suffix=trait}}
|