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


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


 * 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


 * 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