Difference between revisions of "Template:HKD"
imported>Stepho-wrs m (Removed non-breaking space.) |
imported>Robertsky (update template to match options on Template:SGD) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
| − | {{dollarsign|HKD}}{{#if:{{{1|}}}|{{{1}}}}}<noinclude> | + | {{#ifeq:{{{link|off}}}|on |
| + | |{{dollarsign|HKD|lk=on}} | ||
| + | |{{#if:{{{1|}}}|{{dollarsign|HKD}}|{{dollarsign|HKD|lk=on}}}} | ||
| + | }}{{#if:{{#ifexpr:{{{1}}}}}|{{#if:{{{1|}}}|{{{1}}}}}|{{Format price|{{{1}}}}}}}<noinclude> | ||
{{documentation}}<!-- | {{documentation}}<!-- | ||
Latest revision as of 12:00, 8 September 2019
Contents
Usage
This template renders a Hong Kong currency value (HKD) with an ISO 4217 identifier linked to the Hong Kong dollar article.
{{HKD|123.45}} produces HK$123.45
{{HKD}} by itself produces HK$ (simple currency article link)
Usage
This template renders a Hong Kong currency value (HKD) with an ISO 4217 identifier linked to the Hong Kong dollar article. The numeric value is be formatted via {{Format price}}.
Examples
{{HKD|123.45}} produces HK$123.45 (without a space between the abbreviation and the value)
{{HKD|123.45|link=on}} produces HK$123.45 (with the currency symbol linked to Hong Kong dollar article)
{{HKD|1200000}} produces HK$1.2 million (value formatted to the text qualifier)
{{HKD|1.2 million}} produces HK$1.2 million (to allow for arbitrary text qualifiers as needed)
{{HKD}} by itself produces HK$ (simple currency article link)
TemplateData
TemplateData for HKD
This template renders a Hong Kong currency value (HKD) with an ISO-4217 identifier linked to the ''Hong Kong dollar'' article. The value will be formatted via {{Format price}}.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Amount | 1 | The monetary value. Preferably in numeric value.
| Number | optional |
| Display currency article | link | To display ''Hong Kong dollar'' article. 'on' will display the link.
| String | optional |
See also
- Wikipedia:Manual of Style (dates and numbers)#Currencies
- Wikipedia:WikiProject Hong Kong
- Template:AUD
- Template:CAD
- Template:USD
| The above documentation is transcluded from Template:HKD/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. |