Template:Item infobox

From Guild Wars Wiki
Revision as of 06:57, 29 May 2008 by Anja Astor (Talk | contribs)

Jump to: navigation, search
Item infobox
File:Item infobox.png
Type Not specified
Stackable Yes
Campaign Core


Usage

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. The template can also be used for Bundle items. This template attempts to auto-type and auto-categorise items dependent on the parameters supplied (see Auto-Typing and Auto-Categorisation ).

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

Parameters

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).
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.
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.
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

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

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

{{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]]
}}