Шаблон:Coin
Материал из Guild Wars 2 wiki
(перенаправлено с «Шаблон:Cost»)
Содержание
Usage[править]
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[править]
Parameters[править]
- Unnamed 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. (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
- Unnamed 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
See also[править]
- {{Currency}}