Template:Chinese yuan/doc: Difference between revisions - Wikipedia


Article Images

Content deleted Content added

m

(17 intermediate revisions by 8 users not shown)

Line 1:

{{Documentation subpage}}

{{relevant discussion|Template talk:Currency#Suggestions for a standard set of options for each template}}

{{tsh|CNY}}

<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->

=== Usage ===

This template represent the Chinese Yuanrenminbi yuan currency as '¥&nbsp;RMB' (linked to the [[Renminbi]] article) followed by the value.

<nowiki>{{CNY|123.45}}</nowiki> produces {{CNY|123.45}}

Line 9 ⟶ 11:

<nowiki>{{CNY|link=yes|123.45}}</nowiki> produces {{CNY|link=yes|123.45}}

<nowiki>{{CNY|link=no|123.45}}</nowiki> by itself produces {{CNY|link=no|123.45}} (simple currency abbreviation)

==== Suppress "RMB" ====

<nowiki>{{CNY}}</nowiki> by itself produces {{CNY}} (simple currency article link)

For situations where it is clear RMB is meant and not the Japanese yen, the abbreviation may be suppressed.

<nowiki>{{CNY|long=no|123.45}}</nowiki> produces {{CNY|long=no|123.45}}

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

=== TemplateData ===

<templatedata>

{

"params": {

"1": {

"label": "Amount",

"type": "number",

"required": true

},

"link": {

"label": "Link?",

"description": "Creates a link to the page for yuan",

"type": "boolean",

"default": "No",

"suggested": true

}

},

"paramOrder": [

"1",

"link"

]

}

</templatedata>

=== See also ===

Line 23 ⟶ 52:

* [[Template:JPY]]

* [[Template:USD]]

* [[Template:Currency]]

<includeonly>{{Sandbox other||

<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->

{{DEFAULTSORT:Cny}}

[[Category:People's Republic of China economic templates]]

[[Category:Currency templates]]

[[Category:Unit indicator templates]]

}}</includeonly>