Template:Currency/doc
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.
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. |