Difference between revisions of "Template:Currency/Type"

From blackwiki
Jump to navigation Jump to search
imported>Stepho-wrs
(Added Icelandic króna as kr, matching Swedish, Danish and Norwegian kr.)
imported>Ceyockey
(added HYL and did a small bit of rearranging order)
Line 22: Line 22:
 
|BSD=[[Bahamian dollar|B$]]
 
|BSD=[[Bahamian dollar|B$]]
 
|BTN=[[Ngultrum|Nu.]]
 
|BTN=[[Ngultrum|Nu.]]
 +
<!-- "buck" intentionally avoided here, due to the ambiguity in use between Canadian/US dollar -->
 
|BWP=[[Botswana pula|P]]
 
|BWP=[[Botswana pula|P]]
 
|BYR=[[Belarusian ruble|Br]]
 
|BYR=[[Belarusian ruble|Br]]
Line 28: Line 29:
 
|CAN=[[Canadian dollar|CA$]]
 
|CAN=[[Canadian dollar|CA$]]
 
|CAD=[[Canadian dollar|CA$]]
 
|CAD=[[Canadian dollar|CA$]]
<!-- "buck" intentionally avoided here, due to the ambiguity in use between Canadian/US dollar -->
+
|CDF=[[Congolese franc|FC]]
 +
|CHF=[[Swiss franc|CHF]]
 +
|CNY=[[Renminbi|CN¥]]
 +
|COP=[[Colombian peso|COL$]]
 +
|HNL=[[Honduran lempira|L]]
 +
|HUARD=[[Canadian dollar|CA$]]
 
|LOONIE=[[Canadian dollar|CA$]]
 
|LOONIE=[[Canadian dollar|CA$]]
 
|PIASTRE=[[Canadian dollar|CA$]]
 
|PIASTRE=[[Canadian dollar|CA$]]
 
|PIASSE=[[Canadian dollar|CA$]]
 
|PIASSE=[[Canadian dollar|CA$]]
|HUARD=[[Canadian dollar|CA$]]
 
 
|CANADA=[[Canadian dollar|CA$]]
 
|CANADA=[[Canadian dollar|CA$]]
 
|CANADIAN=[[Canadian dollar|CA$]]
 
|CANADIAN=[[Canadian dollar|CA$]]
|CDF=[[Congolese franc|FC]]
 
|CHF=[[Swiss franc|CHF]]
 
|COP=[[Colombian peso|COL$]]
 
 
|STUTZ=[[Swiss franc|CHF]]
 
|STUTZ=[[Swiss franc|CHF]]
 
|STEI=[[Swiss franc|CHF]]
 
|STEI=[[Swiss franc|CHF]]
Line 43: Line 45:
 
|SCHNAGG=[[Swiss franc|CHF]]
 
|SCHNAGG=[[Swiss franc|CHF]]
 
|FRANC=[[Swiss franc|CHF]]
 
|FRANC=[[Swiss franc|CHF]]
|CNY=[[Renminbi|CN¥]]
 
 
|RMB=[[Renminbi|CN¥]]
 
|RMB=[[Renminbi|CN¥]]
 
|DKK=[[Danish krone|kr ]]
 
|DKK=[[Danish krone|kr ]]

Revision as of 01:22, 23 November 2014

US$

50px Template documentation[view] [edit] [history] [purge]

This is the type sub-template to Template:Currency. The Type sub-template converts the value it is given to the appropriate linked currency name, e.g., [[United States dollar|US$]].

Usage

Note: This template should generally not be used alone.

There is only one unnamed parameter used in this template, which finds the link from {{Currency/Link}} and the symbol from {{Currency/Symbol}}. Note that any value given to it is converted to upper case before processing for matches, so this template does not distinguish between "United States" and "UNITED STATES", for example. If the parameter is empty, the result is as for USD. If the parameter is unknown, behavior is undefined.

Examples

Parameter Result
{{Currency/Type|GBP}} GB£
{{Currency/Type|EUR}}
{{Currency/Type|USD}} US$
{{Currency/Type|CNY}} CN¥
{{Currency/Type|HUF}} Ft
{{Currency/Type|MYR}} RM
{{Currency/Type|XYZ}}
{{Currency/Type|}} US$
{{Currency/Type}} US$

See also