Template:Currency/doc: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(Created page with "{{Documentation}} 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: * <span class="coins coins-neg">Red</span> - negative numbers * <span class="coins coins-pos">Blue</span> - positive numbers * <span class="coins">Green</span> - if the number is zero ==Usage== <pre> {{Currency |<currency name> |<amount> }} </pre> ==Examples== The foll...") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 94: | Line 94: | ||
|- |
|- |
||
|[[Warrior guild tokens]]||{{Currency|Warrior guild tokens|5}} |
|[[Warrior guild tokens]]||{{Currency|Warrior guild tokens|5}} |
||
|- |
|||
|[[RuneRealm credits]]||{{Currency|RuneRealm Credits|10}} |
|||
|} |
|} |
||
Latest revision as of 03:32, 7 November 2024
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. |