Template:Item infobox
Item infobox | |
---|---|
File:Item infobox.png | |
Rarity | Varies |
Type | Not specified |
Stackable | Yes |
Campaign | — |
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 = | stackable = | 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:
- 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
- Can be a campaign, expansion, special event, Beyond chapter or storyline. For a list of possible parameters, see Template:Infobox campaign row.
Note: this parameter is named campaign for backwards compatibility.
- 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 infobox 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 infobox 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. See Template:Material categorization regarding salvage categories.
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 Ingot]]s.
- Category:Contains cloth : Set if the commonsalvage parameter is [[Bolt of Cloth|Bolts of Cloth]].
- Category:Contains wood : Set if the commonsalvage parameter is [[Wood Plank]]s.
- Category:Contains dust : Set if the commonsalvage parameter is [[Pile of Glittering Dust|Piles of Glittering Dust]].
- Category:Contains hide : Set if the commonsalvage parameter is [[Tanned Hide Square]]s.
- Category:Contains scale : Set if the commonsalvage parameter is [[Scale]]s.
- Category:Contains bone : Set if the commonsalvage parameter is [[Bone]]s.
- Category:Contains chitin : Set if the commonsalvage parameter is [[Chitin Fragment]]s.
- Category:Contains feather : Set if the commonsalvage parameter is [[Feather]]s.
- Category:Contains granite : Set if the commonsalvage parameter is [[Granite Slab]]s.
- Category:Contains fiber : Set if the commonsalvage parameter is [[Plant Fiber]]s.
Rare salvage categories:
- Category:Contains steel : Set if the raresalvage parameter is [[Steel Ingot]]s.
- Category:Contains leather : Set if the raresalvage parameter is [[Leather Square]]s.
- Category:Contains linen : Set if the raresalvage parameter is [[Bolt of Linen|Bolts of Linen]].
- Category:Contains silk : Set if the raresalvage parameter is [[Bolt of Silk|Bolts of Silk]].
- Category:Contains fur : Set if the raresalvage parameter is [[Fur Square]]s.
- Category:Contains parchment : Set if the raresalvage parameter is [[Roll of Parchment|Rolls of Parchment]].
- Category:Contains amber : Set if the raresalvage parameter is [[Amber Chunk]]s.
- Category:Contains jadeite : Set if the raresalvage parameter is [[Jadeite Shard]]s.
- Category:Contains spiritwood : Set if the raresalvage parameter is [[Spiritwood Plank]]s.
- Category:Contains glass vial : Set if the raresalvage parameter is [[Tempered Glass Vial]]s.
- Category:Contains ink : Set if the raresalvage parameter is [[Vial of Ink|Vials of Ink]].
- Category:Contains charcoal : Set if the raresalvage parameter is [[Lump of Charcoal|Lumps of Charcoal]].
- Category:Contains monstrous fang : Set if the raresalvage parameter is [[Monstrous Fang]]s.
- Category:Contains ruby : Set if the raresalvage parameter is [[Ruby|Rubies]].
- Category:Contains sapphire : Set if the raresalvage parameter is [[Sapphire]]s.
- Category:Contains diamond : Set if the raresalvage parameter is [[Diamond]]s.
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]] }}