Difference between revisions of "Template:Currency/Position/doc"
Jump to navigation
Jump to search
imported>SimonTrew (hoist) |
imported>SimonTrew (tidy) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | ||
| − | For a given currency symbol as understood by {{tlx|Currency/Type}}, returns a short string indicating the desired position and spacing required around the currency unit | + | For a given currency symbol as understood by {{tlx|Currency/Type}}, returns a short string indicating the desired position and spacing required around the currency unit. This can be used as input to {{tlx|Currency/Format}} to format a currency symbol and amount. |
== Use == | == Use == | ||
| + | The set of results currently returned symbols is as follows: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
| Line 17: | Line 18: | ||
|} | |} | ||
| − | + | If the first parameter evaluates to the empty string, "b" is returned. | |
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | ||
Latest revision as of 09:29, 30 November 2015
| This is a documentation subpage for Template:Currency/Position. It contains usage information, categories and other content that is not part of the original template page. |
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.