Difference between revisions of "Template:Currency/Symbol/doc"
< Template:Currency | Symbol
Jump to navigation
Jump to search
imported>SimonTrew (first draft) |
imported>SimonTrew (e.g.s with default) |
||
| 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]]) --> | ||
| − | Returns the currency symbol for a given currency. If the symbol is not known, it returns the parameter unchanged. | + | Returns the currency symbol for a given currency. If the symbol is not known, it returns the parameter unchanged; if it is empty, <code>US$</code> is returned. |
== Examples == | == Examples == | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 12: | Line 12: | ||
| {{tlc|Currency/Symbol|EUR}} || {{Currency/Symbol|EUR}} | | {{tlc|Currency/Symbol|EUR}} || {{Currency/Symbol|EUR}} | ||
|- | |- | ||
| − | | {{tlc|Currency/Symbol| | + | | {{tlc|Currency/Symbol|altarian dollar}} || {{Currency/Symbol|altarian dollar}} |
| + | |- | ||
| + | | {{tlc|Currency/Symbol|}} || {{Currency/Symbol|}} | ||
|} | |} | ||
Revision as of 12:32, 30 November 2015
| This is a documentation subpage for Template:Currency/Symbol. It contains usage information, categories and other content that is not part of the original template page. |
Returns the currency symbol for a given currency. If the symbol is not known, it returns the parameter unchanged; if it is empty, US$ is returned.
Examples
| Parameter | Result |
|---|---|
{{Currency/Symbol|GBP}} |
GB£ |
{{Currency/Symbol|CAD}} |
CA$ |
{{Currency/Symbol|EUR}} |
€ |
{{Currency/Symbol|altarian dollar}} |
altarian dollar |
{{Currency/Symbol|}} |
US$ |