Difference between revisions of "Template:Currency/Position/doc"

From blackwiki
Jump to navigation Jump to search
imported>SimonTrew
(Save first draft)
 
imported>SimonTrew
(→‎Use: Link to use)
Line 16: Line 16:
 
| as || Symbol placed '''a'''fter amount, no-break '''s'''pace ( )between them
 
| as || Symbol placed '''a'''fter amount, no-break '''s'''pace ( )between them
 
|}
 
|}
 +
 +
This can be used as input to {{tlx|Currency/Format}} to format a currency symbol and amount.
  
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |

Revision as of 09:18, 30 November 2015

Use

For a given currency understood by {{Currency/Type}}, returns a short string indicating the desired position and spacing required around the currency unit, 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

This can be used as input to {{Currency/Format}} to format a currency symbol and amount.