Template:Currency/Type/doc
< Template:Currency | Type
Jump to navigation
Jump to search
Revision as of 03:28, 10 February 2010 by imported>Ohms law (switch to template namespace)
| 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.