Template:Resource Display/doc

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

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.
 * Amount should resemble any of the following:
 * Singular amount, such as 5x [something].
 * Range-like amount, such as 5-12x [something]. This is usually used to indicate that a certain mob drop is usually dropped in different quantities (in this example, ranging from 5 to 12).
 * An "or" type amount, such as 0 or 4x [something]. This should be used to indicate that there are two options: in this example, either 0 or 4. This is usually used to indicate that a certain mob drop is not guaranteed. Should be paired with the "odds" component (see ).
 * Range-like and "or" type amounts can be combined, creating something like 0 or 18-28x [something] . If the value typed in is higher than 64, a hover text counting item stacks will be added (example: 160x will result in: )
 * 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/doc). 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/doc). 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.
 * - if on, even when there is value for odds, it will not be displayed. Default off.
 * - if on, an item name without a file will not be padded with a blank space in front. Default off.

Examples

 * Example 1
 * Plain and simple

produces


 * Example 2
 * With range-like amount

produces


 * Example 3
 * With "or" type amount and drop chance

produces


 * Example 4
 * With standard amount and enchant

produces


 * Example 5
 * With standard amount and rarity

produces


 * Example 6
 * With alternate text

produces


 * Example 7
 * With everything combined

produces