Template:Coins

From Old School RuneScape Wiki
Jump to: navigation, search

0

Template documentation
This documentation is transcluded from Template:Coins/doc. [edit] [purge]
Template:Coins invokes function amount in Module:Coins using Lua.
Template:Coins invokes Module:Coins using Lua.

The Coins template shows the amount of coins with a preview image. The amount is formatted with a comma (if the value is greater than 1,000), and with the following colors:

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

Usage

{{Coins|number of coins}}

Examples

The following are some examples:

{{Coins|-9000.50}}

Produces the following result: -9,000.5

{{Coins|2013.0214}}

Produces the following result: 2,013.02

{{Coins|0}}

Produces the following result: 0

{{Coins|123.456 round 1}}

Produces the following result: 123.5

See also

Template:GEP Grabs the current GE price of an item.
Template:ItemValue Grabs the base value of an item.
Template:Currency Identical to Template:Coins, but supports all currency types.

Parameters

Template parameters

ParameterDescriptionTypeStatus
Amount of coins1

Amount of coins.

Default
empty
Example
empty
Auto value
empty
Numberrequired