Template:Currency/LongType/doc
< Template:Currency | LongType
Jump to navigation
Jump to search
Revision as of 20:53, 3 September 2011 by imported>Hydrargyrum (→Example: clarify example)
| This is a documentation subpage for Template:Currency/LongType. 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 LongType sub-template converts the values it is given to the appropriate currency plus the linked currency name (for example: [[United States dollar]]s).
Usage
Note: This template should generally not be used alone.
This template uses two unnamed parameters, the second of which is matched against a switch\case structure to find the linked currency name 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. The first parameter should be the amount of the currency.
Example
{{Template:Currency/LongType|1000}} → 1,000 United States dollars
See also