Jump to content

Template:SGD/doc

From Wikipedia, the free encyclopedia

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]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:SGD in articles based on its TemplateData.

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}}.

Template parameters

ParameterDescriptionTypeStatus
Amount1

The monetary value. Preferably in numeric value.

Example
10000.00
Numberoptional
Display currency articlelink

To display ''Singapore dollar'' article. 'on' will display the link.

Example
on
Stringoptional

See also

[edit]