Template:Gold: Difference between revisions

From Idle Clans wiki
No edit summary
No edit summary
 
Line 1: Line 1:
<onlyinclude><includeonly>{{#if: {{{1|}}}
<onlyinclude><includeonly>{{#if: {{{1|}}}
| [[File:gold.png|20px|link=Gold]] {{#invoke:NumberFormatter|formatNumber|{{{1}}}}}{{#if: {{{2|}}}
| [[File:gold.png|24px|link=Gold]] {{#invoke:NumberFormatter|formatNumber|{{{1}}}}}{{#if: {{{2|}}}
   | -{{#invoke:NumberFormatter|formatNumber|{{{2}}}}}
   | -{{#invoke:NumberFormatter|formatNumber|{{{2}}}}}
   |
   |

Latest revision as of 12:40, 24 May 2024

Usage

{{Gold|<number>|[max]}}

The first parameter must be a number, if it isn't or is empty, then an error message will be displayed, the second parameter is optional, and is only used when a range is wanted.

Example

Input Output
{{Gold|64}} Gold.png 64
{{Gold|200000}} Gold.png 200,000
{{Gold|1500|10000}} Gold.png 1,500-10,000