Template:CoinImage/doc

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 "{{Documentation}} This template fetches the appropriate coin icon (e.g., for a pile of one coin, it will fetch File:Coins_1.png; for 250 coins, it will fetch File:Coins_250.png, etc.). == Usage == Include the text <code><nowiki>{{CoinImage|value}}</nowiki></code>, replacing <code>value</code> with the number of coins required. If no value is passed (as in <code><nowiki>{{CoinImage}}</nowiki></code>) or the value is not a number, the 10000-coin image File:Coi..."). 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
This is a documentation subpage for Template:CoinImage.
It contains usage information, categories, and other content that is not part of the original template page.

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.