Template:Currency/Position
< Template:Currency
Jump to navigation
Jump to search
Revision as of 09:26, 30 November 2015 by imported>SimonTrew (→top: includeonly)
For a given currency symbol as understood by {{Currency/Type}}
, returns a short string indicating the desired position and spacing required around the currency unit. This can be used as input to {{Currency/Format}}
to format a currency symbol and amount.
Use
The set of results currently returned symbols is as follows:
Result | Intent |
---|---|
b | Symbol placed before amount, no space between them |
bs | Symbol placed before amount, no-break space ( ) between them |
a | Symbol placed after amount, no-space between them |
as | Symbol placed after amount, no-break space ( )between them |
If the first parameter evaluates to the empty string, "b" is returned.
The above documentation is transcluded from Template:Currency/Position/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |