Template:Item stat lookup

From Guild Wars 2 Wiki
Jump to navigationJump to search

Description[edit]

With few exceptions, all item stats (weapon strength, armor defense, and attribute bonuses) in Guild Wars 2 are derived from an item's type, level, and rarity. This template provides an interface to a set of lookup tables that contain these stats for all type/level/rarity combinations that currently exist. The intent is to decrease the burden on editors to enter accurate data for every individual item.

The template can be called multiple times on the same page to generate stats for different items.

Subtemplates[edit]

Attributes Quad attributes Celestial attributes Defense Weapon strength
/major attribute
/onehand
/twohand
/boots
/chest
/headgear
/leggings
/accessory
/back item
/minor attribute
/onehand
/twohand
/boots
/chest
/headgear
/leggings
/accessory
/back item
/major quad attribute
/onehand
/twohand
/boots
/chest
/headgear
/leggings
/accessory
/back item
/minor quad attribute
/onehand
/twohand
/boots
/chest
/headgear
/leggings
/accessory
/back item
/celestial nbr
/celestial nbr
/defense
/light boots
/light chest
/light headgear
/light leggings
/medium boots
/medium chest
/medium headgear
/medium leggings
/heavy boots
/heavy chest
/heavy headgear
/heavy leggings
/shield
/max strength
/axe
/dagger
/focus
/greatsword
/hammer
/longbow
/mace
/pistol
/rifle
/shield
/sword
/torch
/warhorn
/min strength
/axe
/dagger
/focus
/greatsword
/hammer
/longbow
/mace
/pistol
/rifle
/shield
/sword
/torch
/warhorn

Usage[edit]

{{item stat lookup|type=<type>|level=<level>|rarity=<rarity>}}
{{item stat lookup|type=<type>|level=<level>|rarity=<rarity>|class=<armor class>}}

Parameters[edit]

type
The item's type, e.g. sword, helm, amulet, etc.
level
The item's required level.
rarity
The item's rarity.
class
Armor only The item's armor class: light, medium, or heavy.

Output[edit]

No direct output is produced. Instead, the following variables are populated for later access.

  • All items
    • #var:major attribute
    • #var:minor attribute
    • #var:major quad attribute
    • #var:minor quad attribute
    • #var:celestial nbr
    • #var:magic find
    • #var:type_ori
    • #var:type_std
    • #var:rarity_std
    • #var:attribute_lu
    • #var:defense_lu
    • #var:level_lu
    • #var:strength_lu
    • #var:supertype
  • Armor and shields
    • #var:defense
  • Weapons
    • #var:min strength
    • #var:max strength

Examples[edit]

{{item stat lookup|type=short bow|rarity=fine|level=80}}
Weapon strength of a fine level 80 short bow: {{#var:min strength}} – {{#var:max strength}}

Weapon strength of a fine level 80 short bow: 690 – 762

{{item stat lookup|type=headgear|rarity=rare|level=78|class=heavy}}
Defense of a rare level 78 heavy headgear: {{#var:defense}}
* Major attribute bonus: {{#var:major attribute}}
* Minor attribute bonus: {{#var:minor attribute}}

Defense of a rare level 78 heavy headgear: 103

  • Major attribute bonus: 51
  • Minor attribute bonus: 36