Template:NoCoins

From Darkan
Jump to navigation Jump to search

[view] [edit] [purge] Template documentation

This documentation is transcluded from Template:NoCoins/doc.

The NoCoins template colors a number that represents the amount of coins, but does not show the image of coins. This is useful for designing compact tables without cluttering the page. The amount is formatted with a comma (if the value is greater than 1,000), and with the following (default) colors:

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

Usage

{{NoCoins|Amount=number of coins}}

or

{{NoCoins|number of coins}}

Examples

The following are some examples:

{{NoCoins|Amount=-3000}}

Produces the following result: −3,000

{{NoCoins|Amount=245.50}}

Produces the following result: 245.5

{{NoCoins|Amount=0}}

Produces the following result: 0