Template:Coin
From Guild Wars 2 Wiki
Jump to navigationJump to search
Usage[edit]
Mimics the display of coin in the game. An optional formatting parameter spaces the values equally to keep columns organized. Uses {{gold}}, {{silver}}, and {{copper}} when output is not formatted.
{{Coin|<value>}}
{{Coin|<value>|<format>}}
Examples[edit]
Parameters[edit]
- 1 (unnamed parameter)
- 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. (1 is equal to 100 and 1 is 100 , thus the number of gold pieces is per 10,000 copper: 100 × 100.)
- Negative values will return 0
- Invalid input will bring up 0
- 2 (unnamed parameter)
- Optional. 'pad' or any value
- When set to 'pad' will include leading zeros for numbers under 10
- 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
Notes[edit]
- In order to support localized numerical inputs from languages which use different separators, this template ignores commas, full stops and spaces.
See also[edit]
- {{Currency}}