Template:ItemInfo/doc

Usage
Template:ItemInfo is the infobox to be used on item pages. Its function replaces the old Template:WeaponInfoBox.

Parameters
The template can host the following arguments:

Explanation of parameters

 * name - this parameter is used to set the name in the top of the infobox. If not defined, the name in the top of the infobox will default to the page name.


 * imglist - a parameter for to add the image to the infobox using custom code. For example, instead of putting Tree Spirit.png, one would put Tree Spirit.png instead. Also supports slideshows if set to one.


 * image - this parameter is used to define the image inside the infobox, above the statistics line, and below the name at the top of the infobox. If this is not defined, defaults to using an image with the same name as the page name, with the .png file extension.
 * To set the parameter, one must put the file name with the extension, but without the "File:".
 * For example: |image=Lunar Bricks.png not |image=Lunar Bricks nor |image=[[File:Lunar Bricks.png]].
 * Image size is set to 150px by default, can be changed with the imgsize parameter.
 * Image file format is set to png by default, can be changed with the format parameter.


 * imgsize - the size of the image in the infobox, in pixels. To set this parameter, one must set it to a number with the px on the end. If this parameter is not set, defaults to 150px.


 * itemimage - when this parameter is set, an additional image will appear below the first image set by the image parameter. The image file format is png and cannot be changed. To set this parameter, one must put a word that makes up the part of a file name.
 * For example, for Halycon Milk, set the parameter to Halycon Milk.


 * armorimage - when this parameter is set, a second set of four images will appear below the image set by the image parameter. These images will have the suffix Helmet, Chestplate, Leggings, and Boots attached to the end of the image names, respectively, in that order. The image file format is png and cannot be changed. To set this parameter, one must put a word that makes up the part of a file name.
 * For example, for Alacrity Armor, set the parameter to Alacrity.


 * armorimageold - same as the armorimage parameter, except the words 1.7.10 are attached as a suffix to the image name. Information pertaining to the armorimage parameter also applies to the armorimageold parameter.


 * type - this parameter defines the value in the Type row of the infobox. If not set, the Type row will be absent.


 * damage - this parameter defines the value in the Damage row of the infobox. To set this parameter, one must only set it to a number. If not set, the Damage row will be absent. This parameter is intended to be used when an item or weapon applies only one kind of damage.


 * specialdamage - this parameter defines the value in the Damage row of the infobox. If not set, the Damage row will be absent. Unlike the damage parameter, this parameter can be set to things other than just numbers. This parameter is intended to be used when an item or weapon applies more than one kind of damage, or does special damage.


 * attackspeed - this parameter defines the value in the Attack speed row of the infobox. If not set, the Attack speed row will be absent. This parameter is intended to document the attack speed of a weapon.


 * knockback - this parameter defines the value in the Knockback row of the infobox. If not set, the Knockback row will be absent.


 * armor - this parameter defines the value in the Armor row of the infobox. If not set, the Armor row will be absent.


 * armortoughness - this parameter defines the value in the Armor toughness row of the infobox. If not set, the Armor toughness row will be absent.


 * durability - this parameter defines the value in the Durability row of the infobox. If not set, the Durability row will be absent.


 * ammo or ammunition - this parameter defines the value in the Ammunition row of the infobox. If not set, the Ammunition row will be absent. When set, creates a hyperlink to the page the parameter is set to, and shows an image with the same name as the parameter is set to.
 * The image in this case is 25px and defaults to .png file format; if a png doesn't exist it shows a .gif instead. The image filename and size cannot be changed in this case.


 * drawspeed - this parameter defines the value in the Draw speed row of the infobox. If not set, the Draw speed row will be absent.


 * firerate - this parameter defines the value in the Fire rate row of the infobox. If not set, the Fire rate row will be absent.


 * hunger - this parameter defines the value in the Hunger row of the infobox. If not set, the Hunger row will be absent.


 * saturation - this parameter defines the value in the Saturation row of the infobox. If not set, the Saturation row will be absent.


 * efficiency - this parameter defines the value in the Efficiency row of the infobox. If not set, the Efficiency row will be absent.


 * harvestlevel- this parameters defines the value in the Harvest level row of the infobox. If not set, the Harvest level row will be absent.


 * effect - this parameter defines the value in the Effect row of the infobox. If not set, the Effect row will be absent.


 * tooltip - this parameter defines the value in the Tooltip row of the infobox. If not set, the Tooltip row will be absent.


 * raritycolor - this parameter defines the value in the Rarity color row of the infobox. If not set, the Rarity color row will default to "Commmon".


 * renewable - this parameter defines the value in the Renewable row of the infobox. If not set, the Renewable row will be absent.
 * If this parameter is set to Yes, the page the template is on will automatically be added to Category:Renewable resources. If the parameter is set to no, it will be added to Category:Nonrenewable resources.


 * stackable - this parameter defines the value in the Stackable row of the infobox. If not set, the Stackable row will be absent.


 * id - this parameter defines the value in the ID row of the infobox. If not set, the ID row will be absent.

Example
The following setup produces the below template: