User:Anja Astor/Sandbox/Items

From Guild Wars Wiki
Jump to navigationJump to search
Anja Astor/Sandbox/Items
File:Anja Astor/Sandbox/Items.png
Rarity Varies
Type Not specified
Stackable Yes
Campaign Core


Usage[edit]

This template can be used for many items such as Trophies, Common crafting materials, Rare crafting materials, Quest items, Salvage items, Kits, Scrolls, and Alcohol. This template attempts to autotype and autocategorise items dependent on the parameters supplied (see Auto-Typing and Auto-Categorisation ).

{{Item infobox
| name = 
| image =
| rarity = 
| type = 
| value = 
| campaign = 
| collector =
| uses =
| alclevel = 
| sweetness =
| festiveness =
| questitem =
| commonsalvage =
| raresalvage =
| skill =
| render = 
}}

Parameters[edit]

name
The name of the item. This may be omitted as it will default to the page name.
image
The inventory icon of the item. The image should be .png format. This may be omitted as it will default to ({{PAGENAME}}.png).
Rarity
Rarity as per Item rarity. Given as a level:
  1. Common (white or blue colour)
  2. Uncommon (purple colour)
  3. Rare (yellow colour)
  4. Unique (green colour)
  5. PvP reward (red colour)
type
The type of the item. This may be omitted in some cases as the field will attempt to auto-type (see Auto-Typing for details).
value
The Merchant value of the item. Specify as 'Can't be sold' in the case of quest items. Omit if the item is a Bundle.
stackable
Boolean. Determines if the item can be put in a stack of identical items.
campaign
The campaign this item is available in. Defaults to Core.
collector
The collectors that collect this item. Omit if the item is not a trophy.
uses
The number of uses for the item. This is for Kits, as opposed to single-use consumable items. Omit if the item is not a kit.
alclevel
The intoxication level of the item. Omit if the item is not alcohol.
sweetness
The number of points provided by consuming towards the Sweets title track. Omit if zero (0).
festiveness
The number of points provided by consuming towards the Festive items title track. Omit if zero (0).
questitem
The quests the item is involved in. Omit if the item is not a quest item.
commonsalvage
The common crafting materials this item can be salvaged into. Omit if the item cannot be salvaged, or the materials are not known.
raresalvage
The rare crafting materials this item can be salvaged into. Omit if the item cannot be salvaged, or the materials are not known.
skill
Optional. For consumables. Any skill activated by using the item.
render
The render image of the item. Setting render=default will set the image link to ([[Image:{{PAGENAME}} render.jpg|100px]]). Omit if the render is not available, or will not be used.

Auto-Typing[edit]

Currently the item info-box will attempt to auto-type in the following order:

  • Alcohol : If the alclevel parameter is non-blank.
  • Quest item : If the questitem parameter is non-blank.
  • Trophy : If the collector parameter is non-blank.
  • Salvage Item : If the commonsalvage or raresalvage parameters are non-blank.
  • Kit : If the uses parameter is non-blank.
  • Not Specified.

Auto-typing refers to setting the default value of the type parameter, and will not occur if the type parameter is manually set. Currently, auto-typing is exclusive, meaning that an item can not be typed as two values. If an item fulfills two sets of criteria, only the first fulfilled criteria will be used.

Auto-Categorisation[edit]

Currently the item info-box attempts a number of auto-categorisation measures, as detailed below. Auto-categorisation works for single-term parameters only, so categories need to be set manually for items with multiple types/salvages.

Type categories:

Common salvage categories:

Rare salvage categories:

Example[edit]

{{Item infobox
| name = Spider Web
| type = [[Salvage item]]
| value = 5 {{gold}}
| campaign = [[Nightfall]]
| commonsalvage = [[Pile of Glittering Dust|Piles of Glittering Dust]]
| raresalvage = [[Bolt of Silk|Bolts of Silk]]
}}