模組:Pinyin/doc

维基百科,自由的百科全书

这是Module:Pinyin的文档页面

本模块可以通过数字代替音调(例如Han4yu3 pin1yin1)来生成音调文字汉语拼音文本。

Additionally, the module converts the convenient shorthand v to ü as in most Chinese pinyin IMEs, and catches the incorrect nue and lue to nüe and lüe respectively. Otherwise, the module does not check whether the input pinyin is entered correctly or not.

Also supports putting the accent on esoteric pinyin like on m, ng, and ê. (eg. ng3 gives ňg)

用法[编辑]

{{#invoke:Pinyin|pinyin|内容}}
  • 内容 - The values to convert to proper pinyin form. As input, the pinyin for individual characters has to be in the form untoned pinyin + tone number with no spaces between them (eg. ma1), though there is no limitation on how many words to take as input and whether there are spaces between individual characters.