Template:pinyin reading of: difference between revisions

Definition from Wiktionary, the free dictionary
Jump to: navigation, search
(fix previous)
(sigh)
Line 5: Line 5:
 
-->{{#ifeq:{{{tra|{{{trad|}}}}}}|{{{sim|{{{simp|}}}}}}|<span class="mention">{{Hani|[[{{{tra|{{{trad}}}}}}]]|lang={{{lang|cmn}}}}}</span> ([[Traditional Chinese|trad.]] & [[Simplified Chinese|simp.]])|{{#if:{{{tra|{{{trad|}}}}}}|<span class="mention">{{Hant|[[{{{tra|{{{trad}}}}}}]]|lang={{{lang|cmn}}}}}</span> ([[Traditional Chinese|trad.]]){{#if:{{{sim|{{{simp|}}}}}}|,&#32;}}}}{{#if:{{{sim|{{{simp|}}}}}}|<span class="mention">{{Hans|[[{{{sim|{{{simp}}}}}}]]|lang={{{lang|cmn}}}}}</span> ([[Simplified Chinese|simp.]])}}}}}}{{#if:{{{def|}}}|&#x3A; {{{def}}}}}</span><!--
 
-->{{#ifeq:{{{tra|{{{trad|}}}}}}|{{{sim|{{{simp|}}}}}}|<span class="mention">{{Hani|[[{{{tra|{{{trad}}}}}}]]|lang={{{lang|cmn}}}}}</span> ([[Traditional Chinese|trad.]] & [[Simplified Chinese|simp.]])|{{#if:{{{tra|{{{trad|}}}}}}|<span class="mention">{{Hant|[[{{{tra|{{{trad}}}}}}]]|lang={{{lang|cmn}}}}}</span> ([[Traditional Chinese|trad.]]){{#if:{{{sim|{{{simp|}}}}}}|,&#32;}}}}{{#if:{{{sim|{{{simp|}}}}}}|<span class="mention">{{Hans|[[{{{sim|{{{simp}}}}}}]]|lang={{{lang|cmn}}}}}</span> ([[Simplified Chinese|simp.]])}}}}}}{{#if:{{{def|}}}|&#x3A; {{{def}}}}}</span><!--
 
====Optional params====
 
====Optional params====
-->{{#if:{{NAMESPACE}}||{{#if:{{{sort|}}}|[[Category:{{langname|{{{lang|cmn}}}}} pinyin|{{{sort}}} {{PAGENAME}}]]|[[Category:{{langname|{{{lang|cmn}}}}} pinyin]]}}{{#if:{{{tra|{{{trad|}}}}}}||{{#if:{{{1|}}}||{{attention|{{{lang|cmn}}}|This template requires the parameter trad&#x3D; (the Traditional Chinese characters).}}}}}}{{#if:{{{sim|{{{simp|}}}}}}||{{#if:{{{1|}}}||{{attention|{{{lang|cmn}}}|This template requires the parameter simp&#x3D; (the Simplified Chinese characters).}}}}}}{{#ifexist:{{{tra|{{{trad|{{{1}}}}}}}}}||{{attention|{{{lang|cmn}}}|create/check Chinese characters}}}}}}<noinclude>{{documentation}}[[Category:Mandarin templates|pinyin reading of]]</noinclude>
+
-->{{#if:{{NAMESPACE}}||{{#if:{{{sort|}}}|[[Category:{{langname|{{{lang|cmn}}}}} pinyin|{{{sort}}} {{PAGENAME}}]]|[[Category:{{langname|{{{lang|cmn}}}}} pinyin]]}}{{#if:{{{tra|{{{trad|}}}}}}||{{#if:{{{1|}}}||{{attention|{{{lang|cmn}}}|This template requires the parameter trad&#x3D; (the Traditional Chinese characters).}}}}}}{{#if:{{{sim|{{{simp|}}}}}}||{{#if:{{{1|}}}||{{attention|{{{lang|cmn}}}|This template requires the parameter simp&#x3D; (the Simplified Chinese characters).}}}}}}{{#ifexist:{{{tra|{{{trad|{{{1}}}}}}}}}||[[Category:Mandarin pinyin entries without Hanzi]]}}}}<noinclude>{{documentation}}[[Category:Mandarin templates|pinyin reading of]]</noinclude>

Revision as of 19:34, 6 October 2011

Pinyin reading of Template:Hani (trad. & simp.)


Usage

The following example shows you how to use the parameters in this template using the entry jīròu.

This:

# {{pinyin reading of|肌肉}}
# {{pinyin reading of|雞肉|鸡肉}}

produces this:

  1. Pinyin transcription of 肌肉
  2. Pinyin transcription of 雞肉, 鸡肉

and categorizes the entry in Category:Mandarin pinyin. (A sort= parameter can optionally be provided to handle the collation within that category.)

Preferably, both Traditional Chinese and Simplified Chinese should be provided, but if you only know one, you can omit the other.

If neither the Traditional nor the Simplied exist, the entry is categorized in Category:Mandarin pinyin entries without Hanzi.