Template:Coins
Appearance
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.