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

Материал из Guild Wars 2 wiki
Перейти к: навигация, поиск
(Новая страница: «<includeonly>{{#if: <!-- hide whitespace --> {{#vardefine:pagename|{{#replace:{{PAGENAME}}|'|'}}}} {{#vardefine: type | {{ucfirst:{{{type|{{#switch: {{ucfir…»)
 
 
(не показано 5 промежуточных версий этого же участника)
Строка 1: Строка 1:
 
<includeonly>{{#if: <!-- hide whitespace -->
 
<includeonly>{{#if: <!-- hide whitespace -->
  
{{#vardefine:pagename|{{#replace:{{PAGENAME}}|&#39;|'}}}}
+
{{#vardefine: smw-empty-query-warning|{{#ifeq: {{{warning|true}}}|false|<!-- no warning -->|{{#if: {{NAMESPACE}}||[[Category:Pages with empty semantic mediawiki query results]]}}}}}}
  
{{#vardefine: type | {{ucfirst:{{{type|{{#switch: {{ucfirst:{{{2|{{#var:pagename}}}}}}}
+
{{#vardefine:last_skill|}}{{#vardefine:last_profession|}}<!-- purge last skill/profession from previous template call -->
| Aegis  
+
 
| Alacrity  
+
{{#vardefine:context|{{ucfirst:{{{1|}}}}}}}
| Fury  
+
 
| Might  
+
{{#vardefine:effect|{{ucfirst:{{{2|{{#titleparts:{{PAGENAME}}}}}}}}}}}
| Protection  
+
 
| Quickness  
+
{{#vardefine: type | {{#if: {{{type|}}}|{{ucfirst:{{{type|}}}}}|{{#switch: {{#var:effect}}
| Regeneration  
+
| Aegis
| Resistance  
+
| Alacrity
| Retaliation  
+
| Fury
| Stability  
+
| Might
| Swiftness  
+
| Protection
| Vigor  
+
| Quickness
| Bleeding  
+
| Regeneration
| Blinded  
+
| Resistance
| Burning  
+
| Resolution
| Chilled  
+
| Retaliation
| Confusion  
+
| Stability
| Crippled  
+
| Swiftness
| Fear  
+
| Vigor = Boon
| Immobile  
+
| Bleeding
| Poisoned  
+
| Blinded
| Slow  
+
| Burning
| Taunt  
+
| Chilled
 +
| Confusion
 +
| Crippled
 +
| Fear
 +
| Immobile
 +
| Poisoned
 +
| Slow
 +
| Taunt
 
| Torment
 
| Torment
 
| Vulnerability
 
| Vulnerability
| Weakness = Buff
+
| Weakness = Condition
| Daze  
+
| Daze
| Float  
+
| Float
 +
| Knockback
 
| Knockdown
 
| Knockdown
 +
| Launch
 +
| Pull
 
| Sink
 
| Sink
| Stun = Time
+
| Stun = Control effect
| Knockback
 
| Launch
 
| Pull = Distance
 
 
| Barrier = Barrier
 
| Barrier = Barrier
| Damage = Damage  
+
| Life Siphon Damage
| Healing = Healing  
+
| Damage = Damage
 +
| Life Siphon Healing
 +
| Healing = Healing
 
| Dark field
 
| Dark field
 
| Ethereal field
 
| Ethereal field
Строка 63: Строка 72:
 
| Unblockable = Special
 
| Unblockable = Special
 
| #default = +
 
| #default = +
}} }}} }} }}  
+
}} }} }}
  
}}{{#ask:  
+
}}{{#ask:
   {{#switch: {{ucfirst:{{{1|}}}}}  
+
   {{#switch: {{#var:context}}
 
     | <!-- by supertype profession if empty -->
 
     | <!-- by supertype profession if empty -->
     | Profession = [[Is for skill.Has skill supertype::Profession]]    
+
     | Profession = <!-- wiki query depth restrictions -->[[Is for skill.Has skill context::!Trait]]
 +
                  {{#switch: {{lc:{{{game mode|}}}}}
 +
                    | <!-- empty --> = {{#switch: {{lc:{{{suffix|}}}}} | type and notes | notes = <!-- no restriction --> | #default = [[Is for game mode::Default||PvE]]}}
 +
                    | all = <!-- no restriction -->
 +
                    | #default = [[Is for game mode::{{#arraymap:{{{game mode}}}|,|@@@|@@@|{{!!}}}}]]
 +
                  }}
 
     | Common    = [[Is for skill.Has skill supertype::Common]]
 
     | Common    = [[Is for skill.Has skill supertype::Common]]
 
     | Race
 
     | Race
 
     | Racial    = [[Is for skill.Has skill supertype::Racial]]
 
     | Racial    = [[Is for skill.Has skill supertype::Racial]]
     | #default  = [[Is for skill.Has skill context::{{ucfirst:{{{1|+}}}}}]] <!-- by context if not supertype -->
+
     | #default  = [[Is for skill.Has skill context::{{ucfirst:{{{1|+}}}}}]]<!-- by context if not supertype is specified -->
 +
                  {{#switch: {{lc:{{{game mode|}}}}}
 +
                    | <!-- empty --> = {{#switch: {{lc:{{{suffix|}}}}} | type and notes | notes = <!-- no restriction --> | #default = [[Is for game mode::Default||PvE]]}}
 +
                    | all = <!-- no restriction -->
 +
                    | #default = [[Is for game mode::{{#arraymap:{{{game mode}}}|,|@@@|@@@|{{!!}}}}]]
 +
                  }}
 
   }}
 
   }}
   {{#switch: {{{include effects|}}}  
+
   {{#switch: {{{include effects|}}}
     | no  
+
    | n
     | #default = [[Has fact type::{{#var:type}}]] [[Has fact::{{ucfirst:{{{2|{{#var:pagename}}}}}}}]]
+
     | no
     | yes      = {{#ifeq: {{#var:type}}|+|<!-- no restriction -->|[[Has fact type::{{#var:type}}{{!!}}Effect]]}} [[Has fact effect::{{ucfirst:{{{2|{{#var:pagename}}}}}}}]]
+
     | #default = [[Has fact type::{{#var:type}}]] [[Has fact::{{#var:effect}}]]
     | only    = [[Has fact type::Effect]] [[Has fact effect::{{ucfirst:{{{2|{{#var:pagename}}}}}}}]]
+
    | y
 +
     | 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::{{#var:effect}}]]
 
   }}
 
   }}
   [[Is for skill.Has availability::Current]]
+
   [[Is for skill.Has availability::Current{{#ifeq:{{#show:{{PAGENAME}}|?Has availability}}|Future|{{!!}}Future}}]]
  {{#if: {{{number|}}}|[[Has fact number::{{{number|}}}]]}}
+
   {{#if: {{{number|}}}|[[Has fact number::{{{number|}}}]]
  {{{query|}}}
+
    | {{#switch: {{#var:type}}|Boon|Condition=[[Has fact number::>>0]]}} <!-- for boons and conditions select skills with duration greater than 0 only -->
   {{#if: {{{missing|}}}|OR [[{{#arraymap: {{{missing|}}}|;|@@@|{{#if: {{#pos: @@@|fact}}|@@@|@@@#fact1}}|{{!!}}}}]]}}
+
  }}           <!-- this will exclude skills (e.g. "Rampage") that list conditions which are not applied but rather their duration is decreased -->
 +
  {{{query|}}}
 
  | ?Is for skill                      <!-- 2 -->
 
  | ?Is for skill                      <!-- 2 -->
 
  | ?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: {{ucfirst:{{{1|}}}}} | #default = ?Is for skill.Is for profession | Racial | Race = ?Is for skill.Is for race }} <!-- 5 -->
+
  | {{#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 -->
  | ?Has fact type                      <!-- 8 -->
+
  | ?Has fact                           <!-- 8 -->
  | ?Has fact number                    <!-- 9 -->
+
  | ?Has fact type                      <!-- 9 -->
  | ?Has fact stacks                   <!--10 -->
+
  | ?Has fact number                   <!--10 -->
  | ?Has fact coefficient              <!--11 -->
+
  | ?Has fact stacks                    <!--11 -->
  | ?Has fact strikes                  <!--12 -->
+
  | ?Has fact coefficient              <!--12 -->
  | ?Is for game mode                   <!--13 -->
+
  | ?Has fact strikes                   <!--13 -->
  | ?Is for skill.Is for attunement    <!--14 -->
+
  | ?Has game description              <!--14 -->
  | {{#switch: {{ucfirst:{{{1|}}}}} | Weapon = ?Is for skill.Is for weapon | Bundle | Common = ?Is for skill.Is for bundle | Transform = ?Is for skill.Has parent skill | Profession mechanic | Healing | Utility | Elite = ?Is for skill.Has skill type | Pet = ?Is for skill.Is for pet family | Trait = ?Is for skill.Has trait parent | Profession |<!-- empty -->= ?Is for skill.Has skill type}} <!--15 -->
+
  | ?Is for game mode                  <!--15 -->
  | {{#switch: {{ucfirst:{{{1|}}}}} | Profession mechanic = ?Is for skill.Is for weapon | Pet = ?Is for skill.Is for pet | Profession |<!-- empty -->= ?Is for skill.Is for weapon}} <!--16 -->
+
  | ?Is for skill.Is for attunement    <!--16 -->
  | format = template
+
  | {{#switch: {{#var:context}}         <!--17 -->
| template = Skill list result format{{!}}fact={{ucfirst:{{{2|{{#var:pagename}}}}}}}{{!}}suffix={{{suffix|type}}}
+
   | Weapon = ?Is for skill.Is for weapon
| link = none
+
  | Bundle
| sort = {{#switch: {{ucfirst:{{{1|}}}}}<!-- Sorting hack, same level of poperty chain needed, sorting by result (i.e. ",") after property chains gets ignored and is used as first sort parameter, see "format = debug". Another solution: "Has pagename" :-) -->
+
  | Common = ?Is for skill.Is for bundle
   | Weapon   = Is for skill.Has profession sort order, Is for skill.Has specialization sort order, Is for skill.Is usable underwater, Is for skill.Is for weapon, Is for skill.Has subobject
+
   | Activity, Tonic | Tonic = ?Is for skill.Is for tonic
   | 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 subobject
+
  | Activity, Toy | Toy = ?Is for skill.Is for toy
 +
  | Transform = ?Is for skill.Has parent skill
 
   | Healing  
 
   | Healing  
 
   | Utility  
 
   | Utility  
   | Elite    = Is for skill.Has profession sort order, Is for skill.Has specialization sort order,                             Is for skill.Has subobject
+
   | Elite = ?Is for skill.Has skill type
   | Racial  = Is for skill.Is for race,                                                                                       Is for skill.Has subobject
+
  | Racial
   | Common  =  
+
  | Profession mechanic = ?Is for skill.Has parent skill
   | #default = Is for skill.Has profession sort order, Is for skill.Has specialization sort order,                             Is for skill.Has subobject}}  
+
  | Pet = ?Is for skill.Is for pet family
  | limit = 250
+
  | Trait = ?Is for skill.Has trait parent
  | default = * ''No skills found.''{{#if: {{NAMESPACE}}||[[Category:Pages with empty semantic mediawiki query results]]}}
+
  | 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
 +
| 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
 +
| 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
 +
   | 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
 +
  | Healing
 +
  | Utility
 +
  | 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
 +
  | Toy
 +
  | Tonic
 +
   | Common  =
 +
   | #default = Is for skill.Has profession sort order, Is for skill.Has specialization sort order, Is for skill.Has page name}}
 +
  | limit = 500
 +
  | searchlabel = <li>Further results... {{#if: {{NAMESPACE}}||[[Category:Pages with further semantic mediawiki query results]]}}</li>
 +
| default = {{{default|* ''No skills found.''{{#var:smw-empty-query-warning}}}}}
 
}}</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]]. Format using {{tl|skill list result format}}.
+
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]].
  
At the current stage it is not recommended to use if for any other skill fact effects, although it would work. E.g. "Pierces": not all piercing skills list this skill fact.
+
;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]]''
  
;See also
+
;Related templates
:* {{tl|Skill list by property}} &mdash; Skill list by semantic mediawiki skill properties.
+
{| class="wikitable"
:* {{tl|Trait list}} &mdash; Trait list by trait effect based on {{tl|skill fact}}.
+
! Usage
 +
! Skill templates
 +
! Trait templates
 +
! Description
 +
|-
 +
! Section
 +
| {{tl|Related skills}}
 +
| {{tl|Related traits}}
 +
| These templates list all related skills/traits based on {{tl|skill fact}} and on the {{tl|trait infobox}} ''improves'' parameters. They create subsection headings automatically.
 +
|-
 +
! rowspan="2" | Subsection
 +
| {{tl|Skill list}}
 +
| {{tl|Trait list}}
 +
| These templates list all related skills of a certain context (e.g. weapon, utility)/traits based on {{tl|skill fact}}
 +
|-
 +
| {{tl|Skill list by property}}
 +
| {{tl|Trait list by property}}
 +
| These templates list all related skills/traits based on a smw query, e.g. based on the {{tl|trait infobox}} ''improves'' parameters.
 +
|-
 +
! Inline
 +
| —
 +
| {{tl|Trait list entry}}
 +
| This template displays the profession icon, trait icon, trait, trait line and trait description.
 +
|}
  
 
== Usage ==
 
== Usage ==
 +
=== Related skills ===
 
<pre style="display:inline-block; width:25em">{{Skill list|Weapon}}
 
<pre style="display:inline-block; width:25em">{{Skill list|Weapon}}
 
{{Skill list|Bundle}}
 
{{Skill list|Bundle}}
Строка 154: Строка 231:
 
{{Skill list|Profession|<effect>}}
 
{{Skill list|Profession|<effect>}}
 
</pre>
 
</pre>
=== Copy-and-paste code ===
+
 
{|
 
! <context> skills that apply <effect>
 
! <context> skills that grant <effect>
 
|-
 
|<pre>
 
=== [[Weapon]] skills that apply {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Weapon}}
 
=== [[Bundle]] skills that apply {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Bundle}}
 
=== [[Transform]] skills that apply {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Transform}}
 
=== [[Healing skill]]s that apply {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Healing}}
 
=== [[Utility skill]]s that apply {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Utility}}
 
=== [[Elite skill]]s that apply {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Elite}}
 
=== [[Profession mechanic]] skills that apply {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Profession mechanic}}
 
=== [[List of pet skills|Pet]] skills that apply {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Pet}}
 
=== [[List of downed skills|Downed]] skills that apply {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Downed}}
 
=== [[List of drowning skills|Drowning]] skills that apply {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Drowning}}
 
=== [[List of trait skills|Trait]] skills that apply {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Trait}}
 
=== [[Racial skill]]s that apply {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Racial}}
 
=== Common skills that apply {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Common}}
 
</pre>
 
|<pre>
 
=== [[Weapon]] skills that grant {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Weapon}}
 
=== [[Bundle]] skills that grant {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Bundle}}
 
=== [[Transform]] skills that grant {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Transform}}
 
=== [[Healing skill]]s that grant {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Healing}}
 
=== [[Utility skill]]s that grant {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Utility}}
 
=== [[Elite skill]]s that grant {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Elite}}
 
=== [[Profession mechanic]] skills that grant {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Profession mechanic}}
 
=== [[List of pet skills|Pet]] skills that grant {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Pet}}
 
=== [[List of downed skills|Downed]] skills that grant {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Downed}}
 
=== [[List of drowning skills|Drowning]] skills that grant {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Drowning}}
 
=== [[List of trait skills|Trait]] skills that grant {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Trait}}
 
=== [[Racial skill]]s that grant {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Racial}}
 
=== Common skills that grant {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Common}}
 
</pre>
 
|-
 
! <context> skills that are <effect>
 
! <context> skills
 
|-
 
|<pre>
 
=== [[Weapon]] skills that are {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Weapon}}
 
=== [[Bundle]] skills that are {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Bundle}}
 
=== [[Transform]] skills that are {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Transform}}
 
=== [[Healing skill]]s that are {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Healing}}
 
=== [[Utility skill]]s that are {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Utility}}
 
=== [[Elite skill]]s that are {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Elite}}
 
=== [[Profession mechanic]] skills that are {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Profession mechanic}}
 
=== [[List of pet skills|Pet]] skills that are {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Pet}}
 
=== [[List of downed skills|Downed]] skills that are {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Downed}}
 
=== [[List of drowning skills|Drowning]] skills that are {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Drowning}}
 
=== [[List of trait skills|Trait]] skills that are {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Trait}}
 
=== [[Racial skill]]s that are {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Racial}}
 
=== Common skills that are {{subst:lc:{{subst:PAGENAME}}}} ===
 
{{Skill list|Common}}
 
</pre>
 
|<pre>
 
=== [[Weapon]] skills ===
 
{{Skill list|Weapon}}
 
=== [[Bundle]] skills ===
 
{{Skill list|Bundle}}
 
=== [[Transform]] skills ===
 
{{Skill list|Transform}}
 
=== [[Healing skill]]s ===
 
{{Skill list|Healing}}
 
=== [[Utility skill]]s ===
 
{{Skill list|Utility}}
 
=== [[Elite skill]]s ===
 
{{Skill list|Elite}}
 
=== [[Profession mechanic]] skills ===
 
{{Skill list|Profession mechanic}}
 
=== [[List of pet skills|Pet]] skills ===
 
{{Skill list|Pet}}
 
=== [[List of downed skills|Downed]] skills ===
 
{{Skill list|Downed}}
 
=== [[List of drowning skills|Drowning]] skills ===
 
{{Skill list|Drowning}}
 
=== [[List of trait skills|Trait]] skills ===
 
{{Skill list|Trait}}
 
=== [[Racial skill]]s ===
 
{{Skill list|Racial}}
 
=== Common skills ===
 
{{Skill list|Common}}
 
</pre>
 
|}
 
 
=== Parameters ===
 
=== Parameters ===
 
;1 ''(unnamed parameter)''
 
;1 ''(unnamed parameter)''
: Required. Skill context: "Weapon", "Bundle", "Transform", "Healing", "Utility", "Elite", "Profession mechanic", "Pet", "Downed", "Drowning", "Trait". Additional options: "Racial" and "Common" (non-profession skills).
+
: 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).
: Can be set to "Profession" to display all profession skills without specifing 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.
 
;type
 
;type
 
: Optional. Skill fact type. For boons, conditions and control effect this is set automatically. See also [[Guild Wars 2 Wiki:Semantic MediaWiki/Skill facts#Overview|here]].
 
: Optional. Skill fact type. For boons, conditions and control effect this is set automatically. See also [[Guild Wars 2 Wiki:Semantic MediaWiki/Skill facts#Overview|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
 
;suffix
: Optional. Either "type" (default, weapon or skill type), "none", "description" or "notes" (stacks and duration).
+
: 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.
 
;include effects
 
;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".
 
: 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 {{tl|related skills filter}}.
 +
;heading level
 +
: Optional. Intro heading level, defaults to h3.
 +
;default
 +
: Optional. Default text.
 
;query
 
;query
 
: Optional. Additional query.
 
: Optional. Additional query.
;missing
 
: Optional. Missing skills (separated by ";"), use rarely and sparsely.
 
  
 
=== Examples ===
 
=== Examples ===
 
<pre>{{Skill list|Utility|Might}}</pre>
 
<pre>{{Skill list|Utility|Might}}</pre>
 
{{Skill list|Utility|Might}}
 
{{Skill list|Utility|Might}}
 
<pre>{{Skill list|Weapon|Burning}}</pre>
 
{{Skill list|Weapon|Burning}}
 
  
 
<pre>{{Skill list|Racial|Burning}}</pre>
 
<pre>{{Skill list|Racial|Burning}}</pre>
 
{{Skill list|Racial|Burning}}
 
{{Skill list|Racial|Burning}}
  
<pre>{{Skill list|Common|Aegis}}</pre>
+
<pre>{{Skill list|Bundle|Projectile finisher|number=20}}</pre>
{{Skill list|Common|Aegis}}
+
{{Skill list|Bundle|Projectile finisher|number=20}}
  
<pre>{{Skill list|Pet|Bleeding}}</pre>
+
=== Format comparison ===
{{Skill list|Pet|Bleeding}}
+
{| style="width:100%"
 
 
<pre>{{Skill list|Weapon|Projectile finisher|number=20}}</pre>
 
{{Skill list|Weapon|Projectile finisher|number=20}}
 
 
 
=== Format comparison (parameter "suffix") ===
 
{| style="width:100%"
 
 
! style="width:50%" | type (default)
 
! style="width:50%" | type (default)
 
! style="width:50%" | none
 
! style="width:50%" | none
Строка 325: Строка 280:
 
|-
 
|-
 
! style="width:50%" | notes
 
! style="width:50%" | notes
! style="width:50%" | description
+
! style="width:50%" | type and notes
 
|-
 
|-
 
| style="vertical-align:top" | <pre>{{Skill list|Utility|Might|suffix=notes}}</pre>
 
| style="vertical-align:top" | <pre>{{Skill list|Utility|Might|suffix=notes}}</pre>
 
{{Skill list|Utility|Might|suffix=notes}}
 
{{Skill list|Utility|Might|suffix=notes}}
 +
| style="vertical-align:top" | <pre>{{Skill list|Utility|Might|suffix=type and notes}}</pre>
 +
{{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
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}}
{{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}}