Template:Currency/doc

This is the current revision of this page, as edited by Alex (talk | contribs) at 03:32, 7 November 2024. The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This is a documentation subpage for Template:Currency.
It contains usage information, categories, and other content that is not part of the original template page.
Template:Currency invokes function amount in Module:Currencies using Lua.

The Currency template shows the amount of a given currency with a preview image. The number is comma-formatted (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

{{Currency
|<currency name>
|<amount>
}}

Examples

The following are some examples:

{{Currency|Numulite|-3000}}

Produces the following result: File:Numulite 25.png −3,000

{{Currency|Coins|{{GEP|Banana}}-{{GEP|Banana}}}}

Produces the following result: 0

{{Currency|Trading sticks|{{ItemValue|Onyx}}}}

Produces the following result: File:Trading sticks 10000.png 510,000

List of supported currency types

To add support for more currencies, see the Currency Image module.

Currency Displays as
Abyssal pearls File:Abyssal pearls 5.png 1,000
Agility arena ticket 1,000
Anima-infused bark 1,000
Archaic emblem 1,000
Archery ticket 1,000
Barronite shards File:Barronite shards 25.png 1,000
Blood money 10,000
Brimhaven voucher 1,000
Castle wars ticket 1,000
Coins 10,000
Death runes 1,000
Ecto-tokens 3
Frog token 1,000
Golden nugget 1,000
Hallowed mark File:Hallowed mark 5.png 5
League Points File:League Points.png 1,000
Mark of grace 1,000
Mermaid's tear File:Mermaid's tear 5.png 5
Minnow File:Minnow 5.png 1,000
Molch pearl File:Molch pearl 5.png 5
Numulite File:Numulite 25.png 25
Pieces of eight File:Pieces of eight 3.png 3
Platinum tokens File:Platinum token 5.png 5
Shark 1,000
Speedrun Points 1,000
Stardust File:Stardust 175.png 1,000
Survival tokens File:Survival token 5.png 5
Termites File:Termites.png 1,000
Tokkul File:Tokkul 25.png 25
Trading sticks File:Trading sticks 10000.png 10,000
Twisted league points File:Twisted League icon.png 1,000
Unidentified minerals 1,000
Warrior guild tokens File:Warrior guild token 5.png 5
RuneRealm credits 10

See also

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