Wowpedia
Wowpedia
240,511
pages
m (-rmv sa for strand of the ancients mark of honor; use sota instead)
Line 2: Line 2:
   
 
### ACTUAL CURRENCY ###
 
### ACTUAL CURRENCY ###
Gold -->{{#if:{{{g|{{{1|}}}}}}|&#32;{{{g|{{{1}}}}}}<span>[[File:Gold.png|g|link=Money#Types of coins]]</span>}}<!--
+
Gold -->{{#if:{{{g|{{{1|}}}}}}|&#32;{{#replace:{{{g|{{{1}}}}}}|x|&#8199;}}<span {{#if:{{#replace:{{{g|{{{1|}}}}}}|x}}||style="visibility:hidden"}}>[[File:Gold.png|g|link=Money#Types of coins]]</span>}}<!--
Silver -->{{#if:{{{s|{{{2|}}}}}}|&#32;{{{s|{{{2}}}}}}<span>[[File:Silver.png|s|link=Money#Types of coins]]</span>}}<!--
+
Silver -->{{#if:{{{s|{{{2|}}}}}}|&#32;{{#replace:{{{s|{{{2}}}}}}|x|&#8199;}}<span {{#if:{{#replace:{{{s|{{{2|}}}}}}|x}}||style="visibility:hidden"}}>[[File:Silver.png|s|link=Money#Types of coins]]</span>}}<!--
Copper -->{{#if:{{{c|{{{3|}}}}}}|&#32;{{{c|{{{3}}}}}}<span>[[File:Copper.png|c|link=Money#Types of coins]]</span>}}<!--
+
Copper -->{{#if:{{{c|{{{3|}}}}}}|&#32;{{#replace:{{{c|{{{3}}}}}}|x|&#8199;}}<span>[[File:Copper.png|c|link=Money#Types of coins]]</span>}}<!--
   
 
### ACHIEVEMENT POINTS ###
 
### ACHIEVEMENT POINTS ###

Revision as of 04:18, 28 August 2021

Description
This template is designed to represent the most common forms of currency: the set of gold, silver, and copper, justice/valor/honor/conquest points, achievement points, and badge rewards tracked using the currency window.
All other items that are used as currency, tier loot tokens, and quest objectives should use {{costitem|<cost>|<actual item>|<display name/desired link>}} instead of this template.
Syntax
{{Cost|<gold>|<silver>|<copper>|<g=>|<s=>|<c=>|<ach=>|<cs=>|<ca=>|<dca=>|<djt=>|<dpt=>|<ijt=>|<it=>|<mwt=>|<tbc=>}}
Example
{{cost|1||30}}
{{cost|2|3}}
{{cost||4|5}}
{{cost|||6}}
{{cost|eob=2}}
{{cost|it=5}}
Result
1g 30c
2g 3s
4s 5c
6c
2 Echoes of Battle
5 Ironpaw Token

Table usage

For tables that have a column filled with money, the gold, silver, and copper can be manually aligned by using the letter "x". Each "x" is replaced with a space that has the same width as a single digit, acting as a mini indent.

If a coin type is filled entirely with x's, that type's icon will additionally be made invisible.

Example
{| class="darktable zebra"
! Cost
|-
| {{cost|123|45|67}}
|-
| {{cost|xx1|x2|x3}}
|-
| {{cost|xxx|12}}
|-
| {{cost|xxx|xx|12}}
|}
Cost
123g 45s 67c
  1g  2s  3c
   g 12s
   g   s 12c

See also

  • {{coppercost|<amount>}} — show an amount of money given as a number copper coins.
  • {{costcopper|<g>|<s>|<c>}} — {{cost}}-like syntax to display the copper value of the currency