User:Indecision/Sandbox/ItemInfobox

From Guild Wars Wiki
Jump to navigationJump to search
Indecision/Sandbox/ItemInfobox
File:Indecision/Sandbox/ItemInfobox.png
Type Not specified
Campaign Core


Usage[edit]

This template can be used for all items in the game apart from weapons. A comprehensive list of supported items is provided below:

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 =
| runetype =
| bonus =
| profession = 
| uses =
| alclevel = 
| alcduration =
| questitem =
| commonsalvage =
| raresalvage =
| 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).
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.
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.
runetype
The level of the rune (i.e. Superior, Major or Minor). Omit if the item is not an armor rune.
bonus
The armor bonus the rune or insignia applies. Omit if the item is not an armor rune or insignia.
profession
The profession the rune or insignia is linked to. This parameter is automatically wiki-linked. Omit if the item is not an armor rune or insignia.
uses
The number of uses for the item. Omit if the item is not a temporary enhancement or kit.
alclevel
The intoxication level of the item. Omit if the item is not alcohol.
alcduration
The intoxication duration 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. Set as "Not Specified" if the materials are unknown.
raresalvage
The rare crafting materials this item can be salvaged into. Omit if the item cannot be salvaged. Set as "Not Specified" if the materials are unknown.
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]

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. For more detail about the auto-typing this infobox performs see Template:Item infobox/ItemType.

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. See Template:Item infobox/ItemCategorise for more details.

Salvage Item 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]]
}}

Armor Rune Example[edit]

{{Item infobox
| name = Dervish Rune of Major Scythe Mastery
| type = [[Rune]]
| value = 25 {{gold}}
| campaign = [[Nightfall]]
| runetype = [[Rune|Major]]
| bonus = [[Scythe Mastery]] +2 (non-stacking) <br> [[Health]] -35
| profession = Dervish
}}

Quest Item Example[edit]

{{Item infobox
| name = Devourer Egg
| type = [[Quest item]]
| value = Can't be sold
| campaign = [[Prophecies]]
}}