Difference between revisions of "Template:Currency/Type"

From blackwiki
Jump to navigation Jump to search
imported>Powermelon
(+Lithuanian litas)
imported>PanchoS
(+ Turkish lira)
Line 102: Line 102:
 
|QUID=[[Euro|€]]
 
|QUID=[[Euro|€]]
 
|TEURO=[[Euro|€]]
 
|TEURO=[[Euro|€]]
 +
|TRL=[[Turkish lira#First Turkish lira (1923-2005)|TRL]]
 +
|TRY=[[Turkish lira#Second Turkish lira (2005-present)|₺]]
 
|TWD=[[New Taiwan dollar|NT$]]
 
|TWD=[[New Taiwan dollar|NT$]]
 
|UK=[[Pound sterling|GB£]]
 
|UK=[[Pound sterling|GB£]]

Revision as of 14:50, 28 October 2015

US$

50px Template documentation[view] [edit] [history] [purge]

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 finds the link from {{Currency/Link}} and the symbol from {{Currency/Symbol}}. 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. If the parameter is empty, the result is as for USD. If the parameter is unknown, behavior is undefined.

Examples

Parameter Result
{{Currency/Type|GBP}} GB£
{{Currency/Type|EUR}}
{{Currency/Type|USD}} US$
{{Currency/Type|CNY}} CN¥
{{Currency/Type|HUF}} Ft
{{Currency/Type|MYR}} RM
{{Currency/Type|XYZ}}
{{Currency/Type|}} US$
{{Currency/Type}} US$

See also