Difference between revisions of "Template:Currency/LongType/doc"

From blackwiki
Jump to navigation Jump to search
imported>Ohms law
(+ axample)
imported>Ohms law
(No difference)

Revision as of 03:26, 10 February 2010

This is the type sub-template to User:Ohms law/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

User:Ohms law/Currency/LongType

See also