Template:Item infobox/doc

The Item infobox is used within Item pages to convey an item's function, cost, and place of purchase. The template will automatically hide any unused parameters.

Usage
To implement the infobox, you simply add  to the top of a page, and define the item's cost and recipe cost (if any) in   and   respectively. However, there are several attributes you should define, otherwise the infobox will have no useful information.

To set attributes, you simply add a few lines before closing the template call (before the closing squiggly brackets - ), and add each attribute and it's values with.

Below is the code you should add to each Item page. Remember to add additional attributes to the infobox depending on the item's properties.

Passive Bonus Items
Because unused attributes are hidden, if you do not specify a  parameter, the infobox will not display one. Use the following code for items with a bonus:

A list of bonuses can be separated by using the  tag. Here's an example:

| bonus = +10 Damage +10 Attack Speed

Will display:

 +10 Damage +10 Attack Speed

Active Items and Consumables
Because unused attributes are hidden, if you do not specify an  parameter, the infobox will not display one. Use the following code for consumable items:

The charges parameter will show the number of charges the item has underneath the active ability. Disregarding it will only show the active ability.

You can combine this with the above section for items that provide a bonus and have an active ability.

Recipes
If an item is used to craft another item, you can identify the recipes it's used in with the  parameter. | used in =

If an item is made of other items in a recipe, you can identify the other items that are used to make it with the   parameter.