Template:Item stat lookup

From Guild Wars 2 Wiki
Jump to: navigation, search


Subtemplates[edit]

Usage[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.

Parameters[edit]

{{item stat lookup|type=<type>|level=<level>|rarity=<rarity>}}
{{item stat lookup|type=<type>|level=<level>|rarity=<rarity>|class=<armor class>}}
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=helm|rarity=rare|level=78|class=heavy}}
Defense of a rare level 78 heavy helm: {{#var:defense}}
* Major attribute bonus: {{#var:major attribute}}
* Minor attribute bonus: {{#var:minor attribute}}

Defense of a rare level 78 heavy helm: 103

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