Template:CoinImage

From Illerai

This is an old revision of this page, as edited by illerai>Habblet at 22:32, 21 March 2013 (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:{{#ex..."). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

(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.