Difference between revisions of "Template:CNY/doc"

From blackwiki
Jump to navigation Jump to search
imported>Stepho-wrs
(Change from '5 CN元' to RMB 5'.)
imported>Vanisaac
m (→‎See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(14 intermediate revisions by 6 users not shown)
Line 3: Line 3:
  
 
=== Usage ===
 
=== Usage ===
This template represent the Chinese Yuan currency as 'RMB' (linked to the [[Renminbi]] article) followed by the value. {{tlx|RMB}} redirects to {{tlx|CNY}}.
+
This template represent the Chinese Yuan currency as 'CN¥' (linked to the [[Renminbi]] article) followed by the value.
  
 +
<nowiki>{{CNY|123.45}}</nowiki> produces {{CNY|123.45}}
  
{{tld|CNY|123.45}} produces {{CNY|123.45}}
+
<nowiki>{{CNY|link=yes|123.45}}</nowiki> produces {{CNY|link=yes|123.45}}
  
{{tld|CNY}} by itself produces {{CNY}} (simple currency article link)
+
<nowiki>{{CNY|link=no|123.45}}</nowiki> produces {{CNY|link=no|123.45}}
  
{{tld|RMB|123.45}} produces {{RMB|123.45}}
+
<nowiki>{{CNY}}</nowiki> by itself produces {{CNY}} (simple currency article link)
  
{{tld|RMB}} by itself produces {{RMB}} (simple currency article link)
+
Note: The template {{tlx|RMB}} is unrelated to Chinese currency.
  
 
=== See also ===
 
=== See also ===
Line 20: Line 21:
 
* [[Template:CAD]]
 
* [[Template:CAD]]
 
* [[Template:HKD]]
 
* [[Template:HKD]]
 +
* [[Template:JPY]]
 
* [[Template:USD]]
 
* [[Template:USD]]
 +
* [[Template:Currency]]
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Currency templates|{{PAGENAME}}]]
+
{{DEFAULTSORT:Cny}}
[[Category:Finance templates|{{PAGENAME}}]]
+
[[Category:People's Republic of China economic templates]]
 
+
[[Category:Currency templates]]
</includeonly>
+
[[Category:Unit indicator templates]]
 +
}}</includeonly>

Latest revision as of 15:30, 24 April 2020

Usage

This template represent the Chinese Yuan currency as 'CN¥' (linked to the Renminbi article) followed by the value.

{{CNY|123.45}} produces CN¥123.45

{{CNY|link=yes|123.45}} produces CN¥123.45

{{CNY|link=no|123.45}} produces CN¥123.45

{{CNY}} by itself produces CN¥ (simple currency article link)

Note: The template {{RMB}} is unrelated to Chinese currency.

See also