Template:CNY/doc

From the AARoads Wiki: Read about the road before you go
Jump to navigation Jump to search
Nuvola apps edu languages.svg Relevant discussion atTemplate talk:Currency#Suggestions for a standard set of options for each template

Usage

This template represent the Chinese renminbi yuan currency as '¥ RMB' (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}} by itself produces CN¥ (simple currency abbreviation)

Suppress "RMB"

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

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

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