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

From blackwiki
Jump to navigation Jump to search
imported>Ohms law
(switch to template namespace)
imported>Hydrargyrum
m (update to reflect change to template (United States Dollar --> United States dollar))
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS 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: <nowiki>[[United States Dollar|US$]]</nowiki>).
+
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.'', <nowiki>[[United States dollar|US$]]</nowiki>.
  
 
=== Usage ===
 
=== Usage ===
Line 9: Line 9:
  
 
=== See also ===
 
=== See also ===
 
 
<includeonly>
 
<includeonly>
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
 
</includeonly>
 
</includeonly>

Revision as of 20:13, 3 September 2011

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.

See also