Difference between revisions of "Template:Currency/Type"
Jump to navigation
Jump to search
imported>PanchoS (+ Turkish lira) |
imported>Davykamanzi (Including arguments for Rwandan franc; moving the "QUID" argument to the British Pound sterling from the Euro (nobody calls Euros "quid"; that nickname is mostly associated with British pounds)) |
||
| Line 80: | Line 80: | ||
|RUB=[[Russian ruble|PP]] <!-- after Aug 1998 redenomination --> | |RUB=[[Russian ruble|PP]] <!-- 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 100: | Line 102: | ||
|EUMELN=[[Euro|€]] | |EUMELN=[[Euro|€]] | ||
|KNAAK=[[Euro|€]] | |KNAAK=[[Euro|€]] | ||
| − | |||
|TEURO=[[Euro|€]] | |TEURO=[[Euro|€]] | ||
|TRL=[[Turkish lira#First Turkish lira (1923-2005)|TRL]] | |TRL=[[Turkish lira#First Turkish lira (1923-2005)|TRL]] | ||
| Line 113: | Line 114: | ||
|UNITED KINGDOM=[[Pound sterling|GB£]] | |UNITED KINGDOM=[[Pound sterling|GB£]] | ||
|UNITED KINGDOM OF GREAT BRITAIN AND NORTHERN IRELAND=[[Pound sterling|GB£]] | |UNITED KINGDOM OF GREAT BRITAIN AND NORTHERN IRELAND=[[Pound sterling|GB£]] | ||
| + | |QUID=[[Pound sterling|GB£]] | ||
|GGP=[[Guernsey pound|GG£]] | |GGP=[[Guernsey pound|GG£]] | ||
|JEP=[[Jersey pound|JE£]] | |JEP=[[Jersey pound|JE£]] | ||
Revision as of 13:02, 31 October 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. |