Template:Gold/doc: Difference between revisions

From Idle Clans wiki
(Created page with "==Usage== <code><nowiki>{{Gold|<number>}}</nowiki></code> The first parameter must be a number, if it isn't or is empty, then an error message will be displayed. ==Example== {| class="wikitable" style="text-align:center" ! Input ! Output |- |<code><nowiki>{{Gold|64}}</nowiki></code> |{{Gold|1000}} |- |<code><nowiki>{{Gold|200000}}</nowiki></code> |{{Gold|200000}} |}")
 
No edit summary
 
Line 1: Line 1:
==Usage==
==Usage==
<code><nowiki>{{Gold|<number>}}</nowiki></code>
<code><nowiki>{{Gold|<number>|[max]}}</nowiki></code>


The first parameter must be a number, if it isn't or is empty, then an error message will be displayed.
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==
==Example==
{| class="wikitable" style="text-align:center"
{| class="wikitable" style="text-align:center"
Line 9: Line 9:
|-
|-
|<code><nowiki>{{Gold|64}}</nowiki></code>
|<code><nowiki>{{Gold|64}}</nowiki></code>
|{{Gold|1000}}
|{{Gold|64}}
|-
|-
|<code><nowiki>{{Gold|200000}}</nowiki></code>
|<code><nowiki>{{Gold|200000}}</nowiki></code>
|{{Gold|200000}}
|{{Gold|200000}}
|-
|<code><nowiki>{{Gold|1500|10000}}</nowiki></code>
|{{Gold|1500|10000}}
|}
|}

Latest revision as of 11:07, 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