Template:Currency/Type/doc
< Template:Currency | Type
Jump to navigation
Jump to search
Revision as of 20:13, 3 September 2011 by imported>Hydrargyrum (update to reflect change to template (United States Dollar --> United States dollar))
| 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, e.g., [[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.