Difference between revisions of "Template:Currency/Type"

From blackwiki
Jump to navigation Jump to search
imported>Dr Lotus Black
imported>Elk Salmon
(It's either RUB, руб., р. or ₽, but not РР.)
 
(One intermediate revision by one other user not shown)
Line 70: Line 70:
 
|LKR=[[Sri Lankan rupee|Rs]] 
 
|LKR=[[Sri Lankan rupee|Rs]] 
 
|LTL=[[Lithuanian litas|Lt]] 
 
|LTL=[[Lithuanian litas|Lt]] 
 +
|MMK=[[Burmese kyat|Ks]]
 
|MNT=[[Mongolian tögrög|₮]]
 
|MNT=[[Mongolian tögrög|₮]]
 
|MXN=[[Mexican peso|MXN]] 
 
|MXN=[[Mexican peso|MXN]] 
 
|MYR=[[Malaysian ringgit|RM]]
 
|MYR=[[Malaysian ringgit|RM]]
|MMK=[[Burmese kyat|Ks]]
 
 
|NPR=[[Nepalese Rupee|Rs]]
 
|NPR=[[Nepalese Rupee|Rs]]
 
|NEP=[[Nepalese Rupee|Rs]]
 
|NEP=[[Nepalese Rupee|Rs]]
Line 82: Line 82:
 
|NZD=[[New Zealand dollar|NZ$]]
 
|NZD=[[New Zealand dollar|NZ$]]
 
|PHP=[[Philippine peso|₱]]
 
|PHP=[[Philippine peso|₱]]
|RUB=[[Russian ruble|PP]]&nbsp;  <!-- after  Aug 1998 redenomination -->
+
|RUB=[[Russian ruble|]]&nbsp;  <!-- after  Aug 1998 redenomination -->
 
|RUR=[[Russian ruble|руб.]]&nbsp; <!-- before Aug 1998 redenomination -->
 
|RUR=[[Russian ruble|руб.]]&nbsp; <!-- before Aug 1998 redenomination -->
 
|RWF=[[Rwandan franc|FRw]]&nbsp;  
 
|RWF=[[Rwandan franc|FRw]]&nbsp;  

Latest revision as of 10:34, 16 March 2016

US$

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