Template:CoinImage

From RuneRealm Wiki

This is the current revision of this page, as edited by Alex (talk | contribs) at 00:21, 17 October 2024 (Created page with "<includeonly>{{#vardefine:value|{{#expr:abs({{{1}}})}}}}[[File:Coins_{{#ifeq:{{#expr:{{#var:value}}<=5}}|1|{{#var:value}}|{{#ifeq:{{#expr:{{#var:value}}<25}}|1|5|{{#ifeq:{{#expr:{{#var:value}}<100}}|1|25|{{#ifeq:{{#expr:{{#var:value}}<250}}|1|100|{{#ifeq:{{#expr:{{#var:value}}<1000}}|1|250|{{#ifeq:{{#expr:{{#var:value}}<10000}}|1|1000|10000}}}}}}}}}}}}.png]]</includeonly><noinclude>{{/doc}}</noinclude>"). The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template documentation
This documentation is transcluded from Template:CoinImage/doc. [edit] [history] [purge]

This template fetches the appropriate coin icon (e.g., for a pile of one coin, it will fetch ; for 250 coins, it will fetch , etc.).

Usage

Include the text {{CoinImage|value}}, replacing value with the number of coins required.

If no value is passed (as in {{CoinImage}}) or the value is not a number, the 10000-coin image will be used.

Negative numbers will be converted to positive values.

Examples

Expression Yields Notes
{{CoinImage|4}} Standard usage.
{{CoinImage|28}} Standard usage.
{{CoinImage|189}} Standard usage.
{{CoinImage|9999}} Standard usage.
{{CoinImage|10000}} Standard usage.
{{CoinImage|-20}} Negative values are converted to positive.
{{CoinImage}} When no parameters are passed, the 10000-coin image is used.
{{CoinImage|text}} When a non-number parameter is passed, the 10000-coin image is used.