Template:SGD/doc
![]() | This is a documentation subpage for Template:SGD. It may contain usage information, categories and other content that is not part of the original template page. |
![]() | → Template talk:Currency#Suggestions for a standard set of options for each template |
Usage
[edit]This template renders the standard Singaporean currency abbreviation (S$) and an optional value. The abbreviation provides an informative link to the Singapore dollar article. The numeric value is formatted via {{Format price}}.
Examples
[edit]{{SGD|123.45}} produces S$123.45 (without a space between the abbreviation and the value)
{{SGD|123.45|link=on}} produces S$123.45 (with the currency symbol linked to Singapore dollar article)
{{SGD|1200000}} produces S$1.2 million (value formatted to the text qualifier)
{{SGD|1.2 million}} produces S$1.2 million (to allow for arbitrary text qualifiers as needed)
{{SGD}} by itself produces S$ (simple currency article link)
TemplateData
[edit]TemplateData for SGD
This template renders the standard Singaporean currency abbreviation (S$) and an optional value. The abbreviation provides an informative link to the currency 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 ''Singapore dollar'' article. 'on' will display the link.
| String | optional |
See also
[edit]- Wikipedia:Manual of Style (dates and numbers)#Currencies
- Template:AUD
- Template:CAD
- Template:MYR
- Template:USD