Difference between revisions of "Template:Currency/Type"
Jump to navigation
Jump to search
imported>Ignatzmice (add Chilean peso) |
imported>SimonTrew (no need for whitespace, that is handled by Currency/Format and Currency/Position now) |
||
| Line 50: | Line 50: | ||
|FRANC=[[Swiss franc|CHF]] | |FRANC=[[Swiss franc|CHF]] | ||
|RMB=[[Renminbi|CN¥]] | |RMB=[[Renminbi|CN¥]] | ||
| − | |DKK=[[Danish krone|kr ]] | + | |DKK=[[Danish krone|kr]] |
| − | |DKK2=[[Danish krone|DKK ]] <!--alternative--> | + | |DKK2=[[Danish krone|DKK]] <!--alternative--> |
| − | |EGP=[[Egyptian pound|LE ]] | + | |EGP=[[Egyptian pound|LE]] |
|GRD=[[Greek drachma|₯]] | |GRD=[[Greek drachma|₯]] | ||
|HKD=[[Hong Kong dollar|HK$]] | |HKD=[[Hong Kong dollar|HK$]] | ||
|HUF=[[Hungarian forint|Ft]] | |HUF=[[Hungarian forint|Ft]] | ||
| − | |IDR=[[Indonesian rupiah|Rp ]] | + | |IDR=[[Indonesian rupiah|Rp]] |
<!-- The Unicode glyph for the Indian rupee symbol '₹' was introduced 15 July 2010 but may not be in all fonts yet. May consider returning to the more widely implemented '₨ ' --> | <!-- The Unicode glyph for the Indian rupee symbol '₹' was introduced 15 July 2010 but may not be in all fonts yet. May consider returning to the more widely implemented '₨ ' --> | ||
|INR=[[Indian rupee|₹]] | |INR=[[Indian rupee|₹]] | ||
|ILS=[[Israeli new shekel|₪]] | |ILS=[[Israeli new shekel|₪]] | ||
|IRR=[[Iranian rial|﷼]] | |IRR=[[Iranian rial|﷼]] | ||
| − | |ISK=[[Icelandic króna|kr ]] | + | |ISK=[[Icelandic króna|kr]] |
|KHR=[[Cambodian riel|៛]] | |KHR=[[Cambodian riel|៛]] | ||
|KPW=[[North Korean won|₩]] | |KPW=[[North Korean won|₩]] | ||
|KRW=[[South Korean won|₩]] | |KRW=[[South Korean won|₩]] | ||
| − | |KSH=[[Kenyan shilling|KSh.]] | + | |KSH=[[Kenyan shilling|KSh.]] |
| − | |KES=[[Kenyan shilling|KSh.]] | + | |KES=[[Kenyan shilling|KSh.]] |
|LAK=[[Lao kip|₭]] | |LAK=[[Lao kip|₭]] | ||
| − | |LKR=[[Sri Lankan rupee|Rs]] | + | |LKR=[[Sri Lankan rupee|Rs]] |
| − | |LTL=[[Lithuanian litas|Lt]] | + | |LTL=[[Lithuanian litas|Lt]] |
|MNT=[[Mongolian tögrög|₮]] | |MNT=[[Mongolian tögrög|₮]] | ||
| − | |MXN=[[Mexican peso|MXN]] | + | |MXN=[[Mexican peso|MXN]] |
|MYR=[[Malaysian ringgit|RM]] | |MYR=[[Malaysian ringgit|RM]] | ||
|NPR=[[Nepalese Rupee|Rs]] | |NPR=[[Nepalese Rupee|Rs]] | ||
|NEP=[[Nepalese Rupee|Rs]] | |NEP=[[Nepalese Rupee|Rs]] | ||
| − | |NOK=[[Norwegian krone|kr ]] | + | |NOK=[[Norwegian krone|kr]] |
| − | |NOK2=[[Norwegian krone|NOK ]] <!--alternative--> | + | |NOK2=[[Norwegian krone|NOK]] <!--alternative--> |
|NGN=[[Nigerian naira|₦]] | |NGN=[[Nigerian naira|₦]] | ||
|NLG=[[Dutch guilder|ƒ]] | |NLG=[[Dutch guilder|ƒ]] | ||
|NZD=[[New Zealand dollar|NZ$]] | |NZD=[[New Zealand dollar|NZ$]] | ||
|PHP=[[Philippine peso|₱]] | |PHP=[[Philippine peso|₱]] | ||
| − | |RUB=[[Russian ruble|PP]] | + | |RUB=[[Russian ruble|PP]] <!-- after Aug 1998 redenomination --> |
| − | |RUR=[[Russian ruble|руб.]] | + | |RUR=[[Russian ruble|руб.]] <!-- before Aug 1998 redenomination --> |
| − | |RWF=[[Rwandan franc|FRw]] | + | |RWF=[[Rwandan franc|FRw]] |
| − | |FRW=[[Rwandan franc|FRw]] | + | |FRW=[[Rwandan franc|FRw]] |
| − | |SAR=[[Saudi riyal|SAR ]] | + | |SAR=[[Saudi riyal|SAR]] |
| − | |SEK=[[Swedish krona|kr ]] | + | |SEK=[[Swedish krona|kr]] |
| − | |SEK2=[[Swedish krona|SEK ]] <!--alternative--> | + | |SEK2=[[Swedish krona|SEK]] <!--alternative--> |
|SGD=[[Singapore dollar|S$]] | |SGD=[[Singapore dollar|S$]] | ||
|SYP=[[Syrian pound|£S]] | |SYP=[[Syrian pound|£S]] | ||
| − | |TSH=[[Tanzanian shilling|TSh.]] | + | |TSH=[[Tanzanian shilling|TSh.]] |
| − | |TZS=[[Tanzanian shilling|TSh.]] | + | |TZS=[[Tanzanian shilling|TSh.]] |
|THB=[[Thai baht|฿]] | |THB=[[Thai baht|฿]] | ||
| − | |USH=[[Ugandan shilling|USh.]] | + | |USH=[[Ugandan shilling|USh.]] |
| − | |UGS=[[Ugandan shilling|USh.]] | + | |UGS=[[Ugandan shilling|USh.]] |
| − | |UGX=[[Ugandan shilling|USh.]] | + | |UGX=[[Ugandan shilling|USh.]] |
|VND=[[Vietnamese đồng|₫]] | |VND=[[Vietnamese đồng|₫]] | ||
|JPY=[[Japanese yen|¥]] | |JPY=[[Japanese yen|¥]] | ||
Revision as of 11:02, 30 November 2015
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. |