Difference between revisions of "Template:Currency/Type"
Jump to navigation
Jump to search
imported>Stepho-wrs (Added Icelandic króna as kr, matching Swedish, Danish and Norwegian kr.) |
imported>Elk Salmon (It's either RUB, руб., р. or ₽, but not РР.) |
||
| (17 intermediate revisions by 11 users not shown) | |||
| Line 16: | Line 16: | ||
|BHD=[[Bahraini dinar|BD]] | |BHD=[[Bahraini dinar|BD]] | ||
|BIF=[[Burundian franc|FBu]] | |BIF=[[Burundian franc|FBu]] | ||
| + | |BITCOIN=[[Bitcoin|BTC]] | ||
|BMD=[[Bermudian dollar|BD$]] | |BMD=[[Bermudian dollar|BD$]] | ||
|BND=[[Brunei dollar|B$]] | |BND=[[Brunei dollar|B$]] | ||
| Line 21: | Line 22: | ||
|BRL=[[Brazilian real|R$]] | |BRL=[[Brazilian real|R$]] | ||
|BSD=[[Bahamian dollar|B$]] | |BSD=[[Bahamian dollar|B$]] | ||
| + | |BTC=[[Bitcoin|BTC]] | ||
|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 31: | ||
|CAN=[[Canadian dollar|CA$]] | |CAN=[[Canadian dollar|CA$]] | ||
|CAD=[[Canadian dollar|CA$]] | |CAD=[[Canadian dollar|CA$]] | ||
| − | + | |CDF=[[Congolese franc|FC]] | |
| + | |CHF=[[Swiss franc|CHF]] | ||
| + | |CLP=[[Chilean peso|CL$]] | ||
| + | |CNY=[[Renminbi|CN¥]] | ||
| + | |COP=[[Colombian peso|COL$]] | ||
| + | |HNL=[[Honduran lempira|L]] | ||
| + | |HRK=[[Croatian kuna|HRK]] | ||
| + | |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$]] | ||
| − | |||
|CANADA=[[Canadian dollar|CA$]] | |CANADA=[[Canadian dollar|CA$]] | ||
|CANADIAN=[[Canadian dollar|CA$]] | |CANADIAN=[[Canadian dollar|CA$]] | ||
| − | |||
| − | |||
| − | |||
|STUTZ=[[Swiss franc|CHF]] | |STUTZ=[[Swiss franc|CHF]] | ||
|STEI=[[Swiss franc|CHF]] | |STEI=[[Swiss franc|CHF]] | ||
| Line 43: | Line 49: | ||
|SCHNAGG=[[Swiss franc|CHF]] | |SCHNAGG=[[Swiss franc|CHF]] | ||
|FRANC=[[Swiss franc|CHF]] | |FRANC=[[Swiss franc|CHF]] | ||
| − | |||
|RMB=[[Renminbi|CN¥]] | |RMB=[[Renminbi|CN¥]] | ||
|DKK=[[Danish krone|kr ]] | |DKK=[[Danish krone|kr ]] | ||
| Line 64: | Line 69: | ||
|LAK=[[Lao kip|₭]] | |LAK=[[Lao kip|₭]] | ||
|LKR=[[Sri Lankan rupee|Rs]] | |LKR=[[Sri Lankan rupee|Rs]] | ||
| + | |LTL=[[Lithuanian litas|Lt]] | ||
| + | |MMK=[[Burmese kyat|Ks]] | ||
|MNT=[[Mongolian tögrög|₮]] | |MNT=[[Mongolian tögrög|₮]] | ||
|MXN=[[Mexican peso|MXN]] | |MXN=[[Mexican peso|MXN]] | ||
| Line 75: | Line 82: | ||
|NZD=[[New Zealand dollar|NZ$]] | |NZD=[[New Zealand dollar|NZ$]] | ||
|PHP=[[Philippine peso|₱]] | |PHP=[[Philippine peso|₱]] | ||
| − | |RUB=[[Russian ruble| | + | |RUB=[[Russian ruble|₽]] <!-- after Aug 1998 redenomination --> |
|RUR=[[Russian ruble|руб.]] <!-- before Aug 1998 redenomination --> | |RUR=[[Russian ruble|руб.]] <!-- before Aug 1998 redenomination --> | ||
| + | |RWF=[[Rwandan franc|FRw]] | ||
| + | |FRW=[[Rwandan franc|FRw]] | ||
|SAR=[[Saudi riyal|SAR ]] | |SAR=[[Saudi riyal|SAR ]] | ||
|SEK=[[Swedish krona|kr ]] | |SEK=[[Swedish krona|kr ]] | ||
| Line 97: | Line 106: | ||
|EUMELN=[[Euro|€]] | |EUMELN=[[Euro|€]] | ||
|KNAAK=[[Euro|€]] | |KNAAK=[[Euro|€]] | ||
| − | |||
|TEURO=[[Euro|€]] | |TEURO=[[Euro|€]] | ||
| + | |TRL=[[Turkish lira#First Turkish lira (1923-2005)|TRL]] | ||
| + | |TRY=[[Turkish lira#Second Turkish lira (2005-present)|₺]] | ||
|TWD=[[New Taiwan dollar|NT$]] | |TWD=[[New Taiwan dollar|NT$]] | ||
|UK=[[Pound sterling|GB£]] | |UK=[[Pound sterling|GB£]] | ||
| Line 118: | Line 128: | ||
|USS=[[United States dollar|US$]] | |USS=[[United States dollar|US$]] | ||
|UNITED STATES=[[United States dollar|US$]] | |UNITED STATES=[[United States dollar|US$]] | ||
| + | |XBT=[[Bitcoin|BTC]] | ||
|ZAR=[[South African rand|R]] | |ZAR=[[South African rand|R]] | ||
|=[[United States dollar|US$]] | |=[[United States dollar|US$]] | ||
Latest revision as of 10:34, 16 March 2016
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
| The above documentation is transcluded from Template:Currency/Type/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |