Template:SGD/doc

From MOASSpedia
< Template:SGD
Revision as of 19:01, 26 April 2020 by Wikipedia>Vanisaac (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Usage

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 be formatted via {{Format price}}.

Examples

{{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

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this 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