User:Anja Astor/Sandbox/Items

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. This template attempts to autotype and autocategorise items dependent on the parameters supplied (see Auto-Typing and Auto-Categorisation ).

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.


 * Rarity : Rarity as per Item rarity. Given as a level:
 * Common (white or blue colour)
 * Uncommon (purple colour)
 * Rare (yellow colour)
 * Unique (green colour)
 * 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 . 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:
 * Category:Quest items : Set if the type parameter is Quest item, or if the questitem parameter is non-blank.
 * Category:Alcohol : Set if the type parameter is Alcohol, or if the alclevel parameter is non-blank.
 * Category:Trophies : Set if the type parameter is Trophy, or if the collector parameter is non-blank.
 * Category:Kits : Set if the type parameter is Kit.
 * Category:Salvage items : Set if the type parameter is Salvage item.
 * Category:Bundles : Set if the type parameter is Bundle.
 * Category:Scrolls : Set if the type parameter is Scroll.
 * Category:Common crafting materials : Set if the type parameter is Common crafting material.
 * Category:Rare crafting materials : Set if the type parameter is Rare crafting material.
 * Category:Miniatures : Set if the type parameter is Miniature.
 * Category:Keys : Set if the type parameter is Key.

Common salvage categories:
 * Category:Contains iron : Set if the commonsalvage parameter is Iron Ingots.
 * Category:Contains cloth : Set if the commonsalvage parameter is Bolts of Cloth.
 * Category:Contains wood : Set if the commonsalvage parameter is Wood Planks.
 * Category:Contains dust : Set if the commonsalvage parameter is Piles of Glittering Dust.
 * Category:Contains hide : Set if the commonsalvage parameter is Tanned Hide Squares.
 * Category:Contains scale : Set if the commonsalvage parameter is Scales.
 * Category:Contains bone : Set if the commonsalvage parameter is Bones.
 * Category:Contains chitin : Set if the commonsalvage parameter is Chitin Fragments.
 * Category:Contains feather : Set if the commonsalvage parameter is Feathers.
 * Category:Contains granite : Set if the commonsalvage parameter is Granite Slabs.
 * Category:Contains fiber : Set if the commonsalvage parameter is Plant Fibers.

Rare salvage categories:
 * Category:Contains steel : Set if the raresalvage parameter is Steel Ingots.
 * Category:Contains leather : Set if the raresalvage parameter is Leather Squares.
 * Category:Contains linen : Set if the raresalvage parameter is Bolts of Linen.
 * Category:Contains silk : Set if the raresalvage parameter is Bolts of Silk.
 * Category:Contains fur : Set if the raresalvage parameter is Fur Squares.
 * Category:Contains parchment : Set if the raresalvage parameter is Rolls of Parchment.
 * Category:Contains amber : Set if the raresalvage parameter is Amber Chunks.
 * Category:Contains jadeite : Set if the raresalvage parameter is Jadeite Shards.
 * Category:Contains spiritwood : Set if the raresalvage parameter is Spiritwood Planks.
 * Category:Contains glass vial : Set if the raresalvage parameter is Tempered Glass Vials.
 * Category:Contains ink : Set if the raresalvage parameter is Vials of Ink.
 * Category:Contains charcoal : Set if the raresalvage parameter is Lumps of Charcoal.
 * Category:Contains monstrous fang : Set if the raresalvage parameter is Monstrous Fangs.
 * Category:Contains ruby : Set if the raresalvage parameter is Rubies.
 * Category:Contains sapphire : Set if the raresalvage parameter is Sapphires.
 * Category:Contains diamond : Set if the raresalvage parameter is Diamonds.