Relevant discussion at | → Template talk:Currency#Suggestions for a standard set of options for each template |
Usage
editThis 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
editTemplateData for Singapore dollar
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 |