Template:Item Neversong/doc

Displays item name/icon/link.

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

This template requires Extension:Variables.

Usage
See examples below for more details.


 * unnamed parameter 1
 * Default item display name, link target, and image file name (usually the item page name)

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


 * sort
 * = y / yes : if an item in a sortable table isn't sorting correctly (sets sort-value as )
 * = n / no : if options have turned sort on (see options), will override that options setting (if is used elsewhere in the table where it doesn't need a sort-value)
 * = sortkey : set a different sort-value


 * 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 (default when )
 * = n / no : image will have no linkage
 * defaults to linking to item page


 * imageprefix
 * If the image naming convention requires a prefix be added to the image name (e.g. adding "UI" in front of the image name)
 * This is more helpful when set for a group of images (see options below)


 * imagesuffix
 * If the image naming convention requires a suffix be added to the image name (e.g. adding "icon" to the image name)
 * This is more helpful when set for a group of images (see options below)

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

Usage

 * set:  
 * reset all settings:  
 * reset some settings:  

'''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:
 * sort
 * = y / yes : set sort-value for all items as


 * 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 (default when )
 * = n / no : images will have no linkage
 * defaults to linking to item page


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


 * imageprefix
 * If the image naming convention requires a prefix be added to the image name (e.g. adding "UI" in front of the image name)


 * imagesuffix
 * If the image naming convention requires a suffix be added to the image name (e.g. adding "icon" to the image name)