Difference between revisions of "Template:CNY"

From blackwiki
Jump to navigation Jump to search
imported>Ryulong
(Reverted to revision 636117231 by Ryulong (talk): This is TO GIVE AN ALTERNATE OPTION. (TW))
(Removed superfluous RMB, simplified.)
Line 1: Line 1:
<includeonly>{{#ifeq:{{{link}}}|yes|[[Renminbi|{{#ifeq:{{{RMB}}}|yes|RMB|CN¥}}]]|{{#ifeq:{{{RMB}}}|yes|RMB|CN¥}}}}{{#if:{{{1|}}}|{{#ifeq:{{{RMB}}}|yes|&nbsp;|}}{{formatnum:{{{1|}}}}}|}}</includeonly><noinclude>{{documentation}}<!-- Add categories and interwikis to the /doc subpage, not here! --></noinclude>
+
<includeonly>{{#ifeq:{{{link}}}|yes|[[Renminbi|CN¥]]|CN¥}}{{#if:{{{1|}}}|&nbsp;{{formatnum:{{{1|}}}}}|}}</includeonly><noinclude>{{documentation}}<!-- Add categories and interwikis to the /doc subpage, not here! --></noinclude>

Revision as of 07:57, 29 January 2015

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

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