Template:Item/doc

Displays item name/icon/link.

By default, displays a link to the item and adds an item icon in front of it.

Usage
See examples below for more details.


 * unnamed parameter 1
 * Default item display name, link target, and image file name

Optional parameters:
 * unnamed parameter 2
 * Custom link text, which can include line breaks (&lt;br />) and other wikitext


 * file
 * Image filename, no brackets nor "File:" (file extension can be ommitted, defaults to png)


 * You can specify multiple images by separating filenames with slashes ( eg. Sandwich (left)/Sandwich (right) )


 * size
 * Custom image size. The value will be used for both width and height (eg. size=32px will display the image as 32x32px); defaults to 30x30px


 * You can specify multiple sizes, just separate with slashes (eg. 32px/24px)


 * When multiple images are specified:
 * If only one size specified, it will apply to all images
 * If size is less than image, extra images will have the same size as the first image
 * If size is more than image, extra sizes will simply be ignored


 * ext
 * Image file extension; default is png


 * nolink/nl
 * = y/yes – item name will display unlinked
 * = n/no – default; only useful when overriding a nolink options setting (see options below)


 * imagelink/il
 * = y/yes – image will link to image filename
 * = n/no – image will have no linkage
 * defaults to linking to item page

Change default options
You can use item/options to set and reset some options' default value.

Usage

 * Set: '''
 * reset: '''

'''NOTE: In order to avoid unwanted influences, it is very important to reset options as soon as possible. Especially in the template, you should reset options before the template ends.'''

All parameters:


 * ext
 * Set image filename extension; default is png


 * nolink/nl
 * = y/yes – item names will display unlinked
 * = n/no – default


 * imagelink/il
 * = y/yes – images will link to image filenames
 * = n/no – images will have no linkage
 * defaults to linking to item page


 * size
 * Set size of images