Template:Coins: Difference between revisions

From 2006Scape Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{{1}}} {{#switch: {{{1}}}
<includeonly>{{{1}}} {{#switch: 1
| 1 = [[File:Coins_1.png]]
| {{#expr: {{{1}}} > 10000}} = [[File:Coins_10000.png|25px]]
| 2 = [[File:Coins_2.png]]
| {{#expr: {{{1}}} > 1000}} = [[File:Coins_1000.png|25px]]
| 3 = [[File:Coins_3.png]]
| {{#expr: {{{1}}} > 250}} = [[File:Coins_250.png|25px]]
| 4 = [[File:Coins_4.png]]
| {{#expr: {{{1}}} > 100}} = [[File:Coins_100.png|25px]]
| {{#ifexpr: {{{1}}} > 4}} = [[File:Coins_5.png]]
| {{#expr: {{{1}}} > 25}} = [[File:Coins_25.png|25px]]
| {{#ifexpr: {{{1}}} > 25}} = [[File:Coins_25.png]]
| {{#expr: {{{1}}} > 4}} = [[File:Coins_5.png|25px]]
| {{#ifexpr: {{{1}}} > 100}} = [[File:Coins_100.png]]
| {{#expr: {{{1}}} = 4}} = [[File:Coins_4.png|25px]]
| {{#ifexpr: {{{1}}} > 250}} = [[File:Coins_250.png]]
| {{#expr: {{{1}}} = 3}} = [[File:Coins_3.png|25px]]
| {{#ifexpr: {{{1}}} > 1000}} = [[File:Coins_1000.png]]
| {{#expr: {{{1}}} = 2}} = [[File:Coins_2.png|25px]]
| {{#ifexpr: {{{1}}} > 10000}} = [[File:Coins_10000.png]]
| {{#expr: {{{1}}} = 1}} = [[File:Coins_1.png|25px]]
}}</includeonly>
| 1 = 0
}}</includeonly><noinclude>
<pre>{{Coins|<amount>}}</pre>
==Description==
Displays the correct gold coin icon for the amount of coins specified.
 
== Examples ==
* {{Coins|1}} is produced from <code><nowiki>{{Coins|1}}</nowiki></code>
* {{Coins|12}} is produced from <code><nowiki>{{Coins|12}}</nowiki></code>
* {{Coins|123}} is produced from <code><nowiki>{{Coins|123}}</nowiki></code>
* {{Coins|1234}} is produced from <code><nowiki>{{Coins|1234}}</nowiki></code>
* {{Coins|12345}} is produced from <code><nowiki>{{Coins|12345}}</nowiki></code></noinclude>

Latest revision as of 02:43, 6 February 2023

{{Coins|<amount>}}

Description

Displays the correct gold coin icon for the amount of coins specified.

Examples

  • 1 Coins 1.png is produced from {{Coins|1}}
  • 12 Coins 5.png is produced from {{Coins|12}}
  • 123 Coins 100.png is produced from {{Coins|123}}
  • 1234 Coins 1000.png is produced from {{Coins|1234}}
  • 12345 Coins 10000.png is produced from {{Coins|12345}}