Jump to content

Template:Coins

From MirkLurk Wiki
Revision as of 01:24, 16 October 2026 by MirkLurkBot (talk | contribs) (repo-sync: c55e619ed136 text:7d4bc077d4ac6e8da9dcdd29c0a40921)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Display a nonnegative integer total in copper: {{Coins|1234}} gives 1 gold, 2 silver and 34 copper. One gold is 1000 copper; one silver is 100 copper. Zero displays 0 copper; other zero denominations are omitted. An optional unit shows the whole total in one denomination: {{Coins|1000|silver}} gives 10 silver and {{Coins|1000|copper}} gives 1000 copper.

Accepts 1 to 18 ASCII digits (0 through 999999999999999999), with optional surrounding whitespace. No signs, fractions, exponents or separators. Invalid input displays an error. This formats a value, not a shop-price calculation: items still own their price views and coin pages still own their summary tables.