Jump to content

Template:Coins

From MirkLurk Wiki
Revision as of 22:04, 28 September 2026 by MirkLurkBot (talk | contribs) (repo-sync: e770fb01a4f6 text:49d734c631dc40c8b881b859937ccc0a)
(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.

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.