Template:HKD/doc
File:Edit-copy green.svg | This is a documentation subpage for Template:HKD. It may contain usage information, categories and other content that is not part of the original template page. |
Usage[change]
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[change]
{{HKD|123.45}} produces HK$123.45 (without a space between the abbreviation and the value)
{{HKD|123.45|link=yes}} produces HK$123.45 (with the currency symbol linked to Hong Kong dollar article)
{{HKD|1200000}} produces HK$1,200,000 (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[change]
TemplateData for HKD
<templatedata> { "params": { "1": { "label": "Amount", "description": "The monetary value. Preferably in numeric value.", "example": "10000.00", "type": "number" }, "link": { "label": "Display currency article", "description": "To display Hong Kong dollar article. 'on' will display the link.", "example": "yes", "type": "string" } }, "description": "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 NaN." } </templatedata>
See also[change]
- EN:Wikipedia:Manual of Style (dates and numbers)#Currencies
- Template:AUD
- Template:CAD
- Template:USD
- Template:CNY