Difference between revisions of "Template:Currency/Page"
Jump to navigation
Jump to search
imported>SimonTrew (error handling) |
imported>SimonTrew (no need for special handling for "e" really, only Drachma uses it) |
||
| Line 31: | Line 31: | ||
|DKK2=Danish krone,s | |DKK2=Danish krone,s | ||
|EGP=Egyptian pound,s | |EGP=Egyptian pound,s | ||
| − | |GRD=Greek drachma, | + | |GRD=Greek drachma,Greek drachmae |
|HRK=Croatian kuna,s | |HRK=Croatian kuna,s | ||
|HKD=Hong Kong dollar,s | |HKD=Hong Kong dollar,s | ||
Revision as of 13:58, 30 November 2015
Returns a comma-separated list of values for the Wikipedia article which can be linked to for a given currency and how to pluralise the currency for display in a piped link.
Usage
The first positional parameter is the name of the currency, which is coded in a lookup table. The template returns the name of the page having information on the currency, and also how to display a plural form. Use {{first word}} to extract the Wikipedia link; {{Currency/Link}} will format a piped link.
Examples
| Parameter | Result |
|---|---|
{{Currency/Page|GBP}} |
Pound sterling,pounds sterling |
{{Currency/Page|EUR}} |
Euro,s |
{{Currency/Page|USD}} |
United States dollar,s |
{{Currency/Page|GRD}} |
Greek drachma,Greek drachmae |
{{Currency/Page|SKR}} |
Swedish krona,Swedish kronor |
{{Currency/Page|CNY}} |
Renminbi |
{{Currency/Page|HUF}} |
Hungarian forint,s |
{{Currency/Page|HUF}} |
Malaysian ringgit |
{{Currency/Page|}} |
United States dollar,s |
{{Currency/Page}} |
United States dollar,s |
| The above documentation is transcluded from Template:Currency/Page/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. |