FANDOM


Documentation icon Template documentation[edit] [purge]
This documentation is transcluded from Template:NoCoins/doc.

The NoCoins template colours a number that represents an amount of coins. It is designed for use in the body text of articles, as opposed to {{Coins}}, which displays an icon that disrupts line-height and should only be used in wikitables.

The amount is formatted with a comma (if the value is greater than 1,000), rounded to 2 decimals (if the value has three or more decimal places), and uses the following colours:

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

Usage

{{NoCoins|number of coins|optional}}

The second unnamed parameter is optional. When filled in, it appends the word "coins" in the same color.

Examples

The following are some examples:

{{NoCoins|245.58639}} produces the following result: 245.59

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

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