Template:Prefix selection

From Guild Wars 2 Wiki
Jump to navigationJump to search

Description[edit]

This template is used to describe the stat selection mechanic on certain equipment such as legendary weapons. The attributes are generated with a call to the {{prefix attributes}} template. This requires a call to {{Item stat lookup}}, which generally happens in the infobox template. To use this template outside an infobox template, the call to {{Item stat lookup}} must been done explicitly. The prefixes are listed in order they are given. Uses {{prefix display}}, {{prefix requires}}, {{prefix attributes}} to format the output.

Usage[edit]

{{prefix selection|<prefix>,...<prefix>}}

Parameters[edit]

1 (unnamed parameter)
Comma-separated list of prefixes. To see the full list of possible prefixes, see Template:Prefix attributes#Full parameter list. Some commonly observed groups of prefixes can also be produced with the following short-hands, which allows the prefix group to be updated in the future without modifying all affected pages:
no requirements
Optional. Used to disable expansion requirements, automatically disabled for all legendary and all legendary trinket.
collapsed
Optional. Change the default loading state of the list to collapsed by setting this parameter equal to "y". Where more than 9 prefixes have been specified, the template defaults to the collapsed state.
id
Optional. Used for subobjects, sets the prefixes to the subobject associated with the "id".
subobject
Optional. Used for subobjects without "id". Set to the subobject name, i.e. the part behind the hash: <pagename>#<suboject name>.

Example[edit]

Fine Sword.png

Iron Sword

Type
Sword
Strength
905 – 1,000
Rarity
Exotic
Req. level
80
Gallery
Iron Sword.jpg

Click to enlarge.

{{Prefix selection|assassin, berserker, commander, dragon}}
Prefix Stats
Assassin's
+120 Precision.png Precision
+85 Power.png Power
+85 Ferocity.png Ferocity
Berserker's
+120 Power.png Power
+85 Precision.png Precision
+85 Ferocity.png Ferocity
Commander's
(Requires Heart of Thorns)
+102 Power.png Power
+102 Precision.png Precision
+56 Toughness.png Toughness
+56 Boon Duration.png Concentration
Dragon's
(Requires End of Dragons)
+102 Power.png Power
+102 Ferocity.png Ferocity
+56 Precision.png Precision
+56 Vitality.png Vitality