Templat:Zh-full/doc

Dari Wikipedia bahasa Indonesia, ensiklopedia bebas

This is a version of {{zh}} with extra functionality. It gives the user increased control over the order in which elements display and how they are displayed; on the other hand, though, it requires more wikitext to use. Its main use is for displaying items that aren't included in that template (such as IPA pronunciations) or displaying things in nonstandard order (such as showing transliterations before Han characters). For almost all normal needs, though, {{zh}} is sufficient, and should be used instead of this template whenever possible.

Usage[sunting sumber]

General[sunting sumber]

{{zh-full
 |
 |
 |
....
 |
}}

You can add as many characters or transliterations as you want,[1] in whatever order you want.

Each character set you add requires a template within a template. Thus, for instance, to add simplified characters, pinyin, and a literal meaning, you would use

{{zh-full
 | {{zh-simp|你好}}
 | {{zh-pinyin|ni hao}}
 | {{zh-lit|you good}}
}}

which displays: Hanzi: simplified Chinese: 你好

You may add elements in whatever order you like—for instance, you may want to add traditional before simplified characters, or vice versa, depending on the article's topic. Of course, some orderings are possible but would be nonsensical, such as adding a "literal translation" before any of the Chinese.

Parameters supported[sunting sumber]

Here is a full list of the character sets and romanizations supported, and the templates necessary for each:

Creating more parameters for this template is very easy; if there is something you would like to see here, just make a request at Pembicaraan Pengguna:Rjanag.

Changing the display[sunting sumber]

You may also change the way a given parameter displays. For example, if you want to say "Hanyu Pinyin: nǐ hǎo" instead of "pinyin: nǐ hǎo", or if you want to say Bopomofo instead of Zhuyin, add a second parameter like in these examples:

The only one that differs in this is {{zh-IPA}}. For this one, supplying a second parameter will change the destination of the "help" link. By default, this links to Standard Mandarin#Phonology:

This can be changed, however, to point to another article (for instance, Canton dialect#Phonology) in instances where it would not make sense to give a Mandarin pronunciation. Please make sure to provide a direct section link, rather than just linking to an article, to make sure the reader can easily find an explanation for the IPA symbols:

See also[sunting sumber]

  • {{zh}}: a simpler template, with less functionality but able to cover the majority of needs and with much less wikitext

Notes[sunting sumber]

  1. ^ Technically, you may add up to 11, which is the number of different character sets and transliterations that are currently supported; i.e., 11 is the maximum number you would want to add anyway, unless you add more than one of something. In the future, other things (other romanizations such as DT, or even other languages such as Japanese and Vietnamese) may be added.