Template:Currency/Position

From blackwiki
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 ( ) 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.