Template:CoinImage: Difference between revisions

From Illerai
Jump to navigation Jump to search
illerai>Habblet
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..."
 
m 1 revision imported
 
(No difference)

Latest revision as of 20:45, 2 November 2024

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.