Template:Currency/Position

From blackwiki
< Template:Currency
Revision as of 09:26, 30 November 2015 by imported>SimonTrew (→‎top: includeonly)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]

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 (&nbsp;) between them
a Symbol placed after amount, no-space between them
as Symbol placed after amount, no-break space (&nbsp;)between them

If the first parameter evaluates to the empty string, "b" is returned.