FANDOM


0
Documentation icon Template documentation[edit] [purge]
This documentation is transcluded from Template:Coins/doc.
Template:Coins invokes Module:Currency using Lua.

The Coins template shows an amount of coins with a preview image. As the icon interferes with line-height, it should only be used in wikitables – for a template that colours text without an icon, see {{NoCoins}}. The amount is formatted with a comma (if the value is greater than 1,000), and with the following colours:

  • Blue - positive numbers
  • Green - if the number is zero
  • Red - negative numbers

Usage

{{Coins|number of coins}}

Examples

The following are some examples:

{{Coins|245.50}} produces the following result: 245.5

{{Coins|0}} produces the following result: 0

{{Coins|-3000}} produces the following result: -3,000
Community content is available under CC-BY-SA unless otherwise noted.