Advertisement

Coin

Copper2.png

Usage

Mimics the display of coin in the game. An optional formatting parameter spaces the values equally to keep columns organized.

  • {{Coin|<value>}}
  • {{Coin|<value>|<format>}}

Examples

Code Result
{{Coin|0}} Copper2.png
{{Coin|1}} Copper2.png
{{Coin|12}} 12  Copper2.png
{{Coin|100}} Silver2.png
{{Coin|1234}} 12  Silver2.png  34  Copper2.png
{{Coin|10000}} Gold2.png
{{Coin|10001}} Gold2.png  1  Copper2.png
{{Coin|120034}} 12  Gold2.png  34  Copper2.png
{{Coin|12345600}} 1234  Gold2.png  56  Silver2.png
{{Coin|12345678}} 1234  Gold2.png  56  Silver2.png  78  Copper2.png
{{Coin|0|yes}} 0  Copper2.png
{{Coin|1|yes}} 1  Copper2.png
{{Coin|1200|yes}} 12  Silver2.png 0  Copper2.png
{{Coin|12345|yes}} 1  Gold2.png 23  Silver2.png 45  Copper2.png
{{Coin|12340000|yes}} 1234  Gold2.png 0  Silver2.png 0  Copper2.png
{{Coin|12345600|yes}} 1234  Gold2.png 56  Silver2.png 0  Copper2.png
{{Coin|12340001|yes}} 1234  Gold2.png 0  Silver2.png 1  Copper2.png
{{Coin|12340601|yes}} 1234  Gold2.png 6  Silver2.png 1  Copper2.png
{{Coin}} Copper2.png

Parameters

Parameter 1 (Required)
  • Number of copper
  • A quick rule of thumb is to think of it as a format of gsscc as applicable, where 'g' is any greater number of gold, 'ss' is up to 99 silver, and 'cc' is up to 99 copper.
  • Negative values will return 0
  • Invalid input will bring up Copper2.png
Parameter 2 (Optional)
  • Any value:
  • Include coins even if their value is 0
  • For use in tables such as merchants to keep organized and easily readable
  • Parameter is ignored if input is invalid

Attention: This template may be linked to from other templates (What Links Here) and editing it could have a cascading effect. Please be sure you know what you're doing before editing.

Community content is available under CC BY-NC-SA 3.0 unless otherwise noted.