Difference between revisions of "Template:Currency/Type/doc"
< Template:Currency | Type
Jump to navigation
Jump to search
imported>Ohms law m (moved User:Ohms law/Currency/Type/doc to Template:Currency/Type/doc: move to template space) |
imported>Ohms law (switch to template namespace) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | ||
| − | This is the type sub-template to [[ | + | This is the type sub-template to [[Template:Currency]]. The Type sub-template converts the value it is given to the appropriate linked currency name (for example: <nowiki>[[United States Dollar|US$]]</nowiki>). |
=== Usage === | === Usage === | ||
Revision as of 03:28, 10 February 2010
| 40px | This is a documentation subpage for Template:Currency/Type. It contains usage information, categories and other content that is not part of the original template page. |
This is the type sub-template to Template:Currency. The Type sub-template converts the value it is given to the appropriate linked currency name (for example: [[United States Dollar|US$]]).
Usage
Note: This template should generally not be used alone.
There is only one unnamed parameter used in this template, which is matched against a switch\case structure to find the value to output. Note that any value given to it is converted to upper case before processing for matches, so this template does not distinguish between "United States" and "UNITED STATES", for example.