Template:Gold: Difference between revisions
From Idle Clans wiki
(Created page with "<onlyinclude><includeonly>{{#if: {{{1|}}} | 20px|link=Gold {{#invoke:NumberFormatter|formatNumber|{{{1}}}}} | Error: No value specified in gold template. }}</includeonly></onlyinclude>{{/doc}}") |
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}}}}} | | [[File:gold.png|20px|link=Gold]] {{#invoke:NumberFormatter|formatNumber|{{{1}}}}}{{#if: {{{2|}}} | ||
| -{{#invoke:NumberFormatter|formatNumber|{{{2}}}}} | |||
| | |||
}} | |||
| Error: No value specified in gold template. | | Error: No value specified in gold template. | ||
}}</includeonly></onlyinclude>{{/doc}} | }}</includeonly></onlyinclude>{{/doc}} |
Revision as of 10:53, 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}}
|
64 |
{{Gold|200000}}
|
200,000 |
{{Gold|1500|10000}}
|
1,500-10,000 |