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

From blackwiki
Jump to navigation Jump to search
imported>SimonTrew
(→‎Examples: greek drachmae)
imported>SimonTrew
(Missing first parameter)
 
(5 intermediate revisions by the same user not shown)
Line 4: Line 4:
  
 
== Usage ==
 
== Usage ==
The first positional parameter is the name of the currency, which is coded in a lookup table. The template returns the name of the page having information on the currency, and also how to display a plural form.  Use {{tlx|first word}} to extract the Wikipedia link; {{tlx/Currency/Link}} will format a piped link.
+
The first positional parameter is the name of the currency, which is coded in a lookup table. The template returns the name of the page having information on the currency, and also how to display a plural form.  Use {{tlx|first word}} to extract the Wikipedia link; {{tlx|Currency/Link}} will format a piped link.
  
 
==Examples==
 
==Examples==
Line 16: Line 16:
 
| {{tlc|Currency/Page|USD}} || {{Currency/Page|USD}}
 
| {{tlc|Currency/Page|USD}} || {{Currency/Page|USD}}
 
|-
 
|-
| {{tlc|Currency/Page|GRD}} || {{Currency/Page|DRM}}
+
| {{tlc|Currency/Page|GRD}} || {{Currency/Page|GRD}}
 
|-
 
|-
 
| {{tlc|Currency/Page|SKR}} || {{Currency/Page|SEK}}
 
| {{tlc|Currency/Page|SKR}} || {{Currency/Page|SEK}}
 
|-
 
|-
| {{tlc|Currency/Page|1234.56|}} || {{Currency/Page|}}
+
| {{tlc|Currency/Page|CNY}} || {{Currency/Page|CNY}}
 +
|-
 +
| {{tlc|Currency/Page|HUF}} || {{Currency/Page|HUF}}
 +
|-
 +
| {{tlc|Currency/Page|HUF}} || {{Currency/Page|MYR}}
 +
|-
 +
| {{tlc|Currency/Page|}} || {{Currency/Page|}}
 +
|-
 +
| {{tlc|Currency/Page}} || {{Currency/Page}}
 
|}
 
|}
  

Latest revision as of 16:13, 30 November 2015

Returns a comma-separated list of values for the Wikipedia article which can be linked to for a given currency and how to pluralise the currency for display in a piped link.

Usage

The first positional parameter is the name of the currency, which is coded in a lookup table. The template returns the name of the page having information on the currency, and also how to display a plural form. Use {{first word}} to extract the Wikipedia link; {{Currency/Link}} will format a piped link.

Examples

Parameter Result
{{Currency/Page|GBP}} Pound sterling,pounds sterling
{{Currency/Page|EUR}} Euro,s
{{Currency/Page|USD}} United States dollar,s
{{Currency/Page|GRD}} Greek drachma,Greek drachmae
{{Currency/Page|SKR}} Swedish krona,Swedish kronor
{{Currency/Page|CNY}} Renminbi
{{Currency/Page|HUF}} Hungarian forint,s
{{Currency/Page|HUF}} Malaysian ringgit
{{Currency/Page|}} United States dollar,s
{{Currency/Page}} United States dollar,s