Difference between revisions of "Template:Currency/Format"
Jump to navigation
Jump to search
imported>SimonTrew (nowrap) |
imported>SimonTrew (doc) |
||
Line 1: | Line 1: | ||
− | {{nowrap|{{#switch:{{{1}}} | + | <includeonly>{{nowrap|{{#switch:{{{1}}} |
|b={{{2|}}}{{amount|{{{3|}}}}} | |b={{{2|}}}{{amount|{{{3|}}}}} | ||
|bs={{{2|}}} {{amount|{{{3|}}}}} | |bs={{{2|}}} {{amount|{{{3|}}}}} | ||
Line 6: | Line 6: | ||
|={{{2|}}}{{amount|{{{3|}}}}} | |={{{2|}}}{{amount|{{{3|}}}}} | ||
}}}} | }}}} | ||
+ | </includeonly><noinclude> | ||
+ | {{Documentation}} | ||
+ | </noinclude> |
Revision as of 09:26, 30 November 2015
For a given result of {{Currency/Position}}
, formats a currency symbol and amount. Pass the same value for the first parameter to {{Currency/Type}}
to create a link to documentation on a given currency.
Examples
Input | Result |
---|---|
{{Currency/Format|b|1234.56|€}} |
€Template:Amount |
{{Currency/Format|bs|1234.56|EUR}} |
EUR Template:Amount |
{{Currency/Format|a|€|1234.56}} |
Template:Amount€ |
{{Currency/Format|as|EUR|1234.56}} |
Template:Amount EUR |
{{Currency/Format||EUR|1234.56}} |
EURTemplate:Amount |
{{Currency/Format|||1234.56}} |
Template:Amount |
{{Currency/Format| |
€Template:Amount |
{{Currency/Format| |
Template:Amount Ft |
The above documentation is transcluded from Template:Currency/Format/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. |