Difference between revisions of "Template:CNY"

From blackwiki
Jump to navigation Jump to search
imported>Ryulong
imported>Dpmuk
(Reverting to stable version. The discussion linked on the talk page shows there's no consensus for this change (there may be a consensus for a change but the consensus seems to be against changing it to this) so it should stay at the stable version.)
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 22:21, 2 December 2014

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