Template:Related traits

From Guild Wars 2 Wiki
Jump to navigationJump to search

Description[edit]

This template returns a list of all traits that grant or improves a certain effect. It displays the following sections:

Page context: Effect
  1. Traits granting the effect, using template trait list, based on the parameters from the template skill fact. The heading is omitted if the following two sections (related trait skills/traits that improve) are empty.
  2. Trait skills granting the effect, using template skill list, with the skill context Trait, based on the parameters from the template skill fact.
  3. Traits that improve the effect, using Trait list by property, based on the parameters improves skill/boon/condition/control effect/aura/effect/weapon/type from the template
Page context: Trait
  1. Traits that improve the trait, using Trait list by property, based on from other page's parameters improves trait/boon/condition/control effect/aura/effect from the template trait infobox.
  2. Traits that are improved by the trait, using Trait list by property, based on the this page's parameter improves trait/boon/condition/control effect/aura/effect from the template trait infobox.
Page context: Skill
  1. Traits that improve the skill, using Trait list by property, based on the parameters improves skill/boon/condition/control effect/aura/effect/weapon/type from the template trait infobox.
Page context: Weapon type
  1. Traits that improve the weapon type, using Trait list by property, based on the parameters improves weapon from the template trait infobox.
  2. Trait skills are related to the weapon type, using template skill list by property, with the skill context Trait, based on the skill type from the template trait infobox.
Page context: none (either skill type, e.g. Meditation or skill fact property, e.g. Barrier)
  1. Traits that grant the property, using template trait list, based on the parameters from the template skill fact.
  2. Trait skills that grant the property, using template skill list, with the skill context Trait, based on the parameters from the template skill fact.
  3. Trait skills that have the skill type, using template skill list by property, with the skill context Trait, based on the skill type from the template skill fact. The heading is omitted if the following section (traits that improve) are empty.
  4. Traits that improve the property, using Trait list by property, based on the parameters improves skill type/improves property from the template trait infobox.

Sorted by profession (alphabetically within heavy, medium, light), by elite specialization and trait line. It relies on the usage of the template {{skill fact}}, which sets the according skill fact properties, and on the usage of the improves parameters of the template {{trait infobox}}. An overview of the skill fact properties and their types can be found here.

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.

Format using {{Related traits filter}}.

Usage[edit]

{{Related traits}}
{{Related traits|<effect>}}
{{Related traits|<effect>|heading=<heading>|heading level=<h3, h4, ...>}}

Parameters[edit]

1 (unnamed parameter)
Required. Skill fact (boon, condition or control effect, e.g. Might, Burning), trait, skill, weapon type, skill type. Defaults to PAGENAME.
heading
Optional. Additional heading suffix, e.g. "that grant might".
heading improves
Optional. Additional heading suffix for traits that improve, e.g. "that improve might".
heading improved
Optional. Additional heading suffix for traits that are improved by, e.g. "that are improved by Might Makes Right".
heading level
Optional. Heading level, defaults to "h3".
mode
Optional. Either "plain" (default) or "heading" (displays trait line headings and omits the profession, primarily intended for trait pages only).
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=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 "none", "description" (default) or "notes" (stacks and duration).
suffix improves
Optional. Used on improving traits on effect/skill type/property pages to avoid mixing up with the trait list suffix. Either "description" or "none".
secondary.
Optional. Secondary effect, e.g. "converted from" attribute for type "Attribute Conversion". Overrides unnamed parameter 1.
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".
show filter
Optional. Set to "true" to show and "false" to hide filter options. The filter is available on effect pages, where this parameter defaults to "true" on Boon/Condition/Aura/Control effect pages, and on skill type, weapon or game mechanic pages, where this parameter always defaults to "false" (hidden on default).
query
Optional. Expert mode only. Custom query for trait (and trait skills) lists that can be used on overview pages only (no context).
query improves
Optional. Expert mode only. Custom query for improves trait lists that can be used on overview pages only (no context).

Example[edit]

Context: Effect[edit]

{{Related traits|Burning|heading=that apply burning|heading level=h5}}

Traits that apply burning
Trait skills that apply burning
Traits that improve burning

Context: Trait[edit]

{{Related traits|Burning Rage|heading level=h5}}

Traits that improve this trait
Fire Fire

Context: Weapon type[edit]

{{Related traits|Warhorn|heading level=h5}}

Proficiencies
Enhancements
Trait skills that are related to warhorn skills

Context: None[edit]

{{Related traits|Barrier|heading level=h5}}

Traits
Traits that improve Barrier
{{Related traits|Arcane|heading level=h5}}

Trait skills that have the type arcane
Traits that improve arcane skills
{{Related traits|Glyph}} <!-- omitted heading -->
{{Related traits|Rising Momentum (effect)}} <!-- omitted heading -->

Trivia[edit]