Template:Currency/Type/doc

From blackwiki
< Template:Currency‎ | Type
Revision as of 03:28, 10 February 2010 by imported>Ohms law (switch to template namespace)
Jump to navigation Jump to search

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.

See also