Template:Coins/doc

From Old School Near-Reality Wiki
< Template:Coins
Revision as of 12:03, 9 November 2022 by Jacmob (talk | contribs) (Created page with "{{Documentation}} {{invokes|Coins}} The '''Coins''' template shows the amount of coins with a preview image. It is designed for use in wikitables, as opposed to {{T|NoCoins}}, which is used in the body text of articles. The amount is formatted with a comma (if the value is greater than 1,000), and with the following colors: * <span style="color: red;">Red</span> - negative numbers * <span style="color: blue;">Blue</span> - positive numbers * <span style="color: green;...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Information icon-grey.png
This is a documentation subpage for Template:Coins.
It contains usage information, categories, and other content that is not part of the original template page.
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. It is designed for use in wikitables, as opposed to {{NoCoins}}, which is used in the body text of articles.

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 and examples

{{Coins|number of coins}}

The following are some examples:

{{Coins|-9000.50}}

Produces the following result: −9,000.50

{{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.50

See also

Template:Currency Identical to Template:Coins, but supports all currency types.
Template:GEP Grabs the current GE price of an item.
Template:ItemValue Grabs the base value of an item.
Template:NoCoins For use in body text of articles

Template data

Show/hide template's data

The following information is used by extensions and applications, such as VisualEditor, to help users implement this template onto pages. Please ensure that it is up-to-date.

This template shows the amount of coins with a preview image.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Amount of coins1

Amount of coins.

Numberrequired