Template:Item Display/doc

Overview
The Item Display template is used to display item, alongside its image. This template is very similar to Resource Display, but ignores the amount.

Syntax
1
 * - the item string, structured as shown here: &#60;amount&#62;x &#60;item string&#62;. Note that the x character is not required. The item string should contain the name of the item. Can also contain the following:
 * Alternate text - separated from the item name by ! character, such as item name!alt text. If the ! character is not used, every feature below can be used freely.
 * Drop chance - contained inbetween two % characters, such as item name %drop chance%. Between the two % characters, anything can be typed - examples include:
 * %1 in 200% (result: (1 in 200))
 * %20%% (result: (20%))
 * %something% (result: (something))
 * %% (result: {{sup|({{Red|text}})}}).
 * Most templates can be used in there too, although some may break.
 * It doesn't matter if the drop chance string is placed before or after the ! character - it will still work properly. The result of this operation is always located at the very end of the output string.
 * Enchantment - contained inbetween two & characters, such as item name &enchantment&. Between the two & characters, any valid enchantment string can be typed (see Template:EnchantmentsLink documentation). It doesn't matter if the enchantment string is placed before or after the ! character - it will still work properly. The result of this operation is always located after the item name and before the drop chance.
 * Rarity - contained inbetween two $ characters, such as item name $rarity$. Between the two $ characters, any valid rarity string can be typed (see Template:Rarity documentation). It DOES matter if the enchantment string is placed before or after the ! character - it will only work when used after the ! (otherwise it is ignored). The location of this feature matters - the rarity will be placed in the exact same place where it is used in the input.
 * If the item name is set to something like Miner Armor piece, the link and image will be adjusted to work properly. The output would be: . The image will always be a helmet image.
 * or or  - whether or not images should be displayed. Default to true.
 * or - whether or not links should be used. Default to false.
 * or - whether or not text should be displayed despite errors occuring. Default to false. If set to true, the whole input is returned.

Examples

 * Example 1
 * Plain and simple

produces


 * Example 2
 * With drop chance

produces


 * Example 3
 * With enchant

produces


 * Example 4
 * With rarity

produces


 * Example 5
 * With alternate text

produces


 * Example 6
 * With everything combined

produces