साँचा:भाषा-चीनी

(साँचा:Zh-s से अनुप्रेषित)
परिचय का प्रतीक साँचा परिचय[देखें] [संपादन] [इतिहास] [पर्ज]

This is a unified template for displaying various varieties of Chinese, in various orthographies. It can display (and link to): both simplified and traditional Chinese characters; literal translation; Zhuyin (Bopomofo); the Hanyu Pinyin, Tongyong Pinyin, and Wade–Giles romanizations of Mandarin; the Jyutping, Yale, and Sidney Lau romanizations of Cantonese; and the Pe̍h-ōe-jī and Tâi-lô romanizations of Hokkien. It supports ordering and formatting the output for different use cases.

To use the template, start with {{Lang-zh}} and add any parameters you like, along with what you want to be displayed. The template will display all, and only, the parameters that you give it. The following parameters are supported:

Parameter Description Example
|t= traditional Chinese[1] {{Lang-zh|t=中國}}
चीनी भाषा: 中國
|s= simplified Chinese[1] {{Lang-zh|s=中国}}
चीनी भाषा: 中国
|c=[2] Chinese (in simplified typeface) {{Lang-zh|c=中国}}
चीनी भाषा: 中国
|p= or |hp= pinyin[3] {{Lang-zh|p=Zhōngguó}}
पिनयिन: Zhōngguó
|tp= Tongyong Pinyin {{Lang-zh|tp=Jhongguó}}
तोंयॉंग पिनयीन: Jhongguó
|w= Wade–Giles[4] {{Lang-zh|w=Chung1kuo2}}
वेड-गिलेस: Chung1kuo2
|j= Jyutping {{Lang-zh|j=Gwong2zau1}}
ज्युतपिन: Gwong2zau1
|cy= Cantonese Yale {{Lang-zh|cy=Gwóngjāu}}
कैंटनी येल: Gwóngjāu
|sl= Sidney Lau[4] {{Lang-zh|sl=Gwong2jau1}}
सिडने लाउ: Gwong2jau1
|poj= Pe̍h-ōe-jī {{Lang-zh|poj=Tâi-tiong-koān}}
फेह-ओ-जेइ: Tâi-tiong-koān
|tl= Tâi-lô {{Lang-zh|tl=Tâi-tiong-kuān}}
ताय-लॉ: Tâi-tiong-kuān
|zhu= Zhuyin Fuhao {{Lang-zh|zhu=ㄊㄠˊ ㄩㄢˊ ㄒㄧㄢˋ}}
ज़्युइन फुहाओ: ㄊㄠˊ ㄩㄢˊ ㄒㄧㄢˋ
|l= literal meaning {{Lang-zh|l=Middle Kingdom}}
मूल 'Middle Kingdom'
|tr= translation {{Lang-zh|tr=China}}
अर्थ "China"
|labels= Display language labels See below
|links= Display language links See below
|first= Override default ordering See below
|scase= Use sentence case See below
|out= Choose a parameter to display outside of brackets See below
  1. If |s= and |t= are both given and are the same – if the simplified and traditional characters are identical – then they only appear once, in simplified Chinese typeface. E.g. {{Lang-zh|s=北京|t=北京}} gives चीनी भाषा: 北京
  2. If only one unnamed parameter is given, it will be treated as if it were passed to |c=
  3. This will display as "Hanyu Pinyin", instead of just "pinyin", if Tongyong Pinyin is also included in the template; this way the two types of pinyin contrast and neither is treated as a "default".
  4. Wade-Giles and SidneyLau romanizations use superscripted numbers for tones. The template automatically converts unsuperscripted tone numbers to superscripted ones.

Add |labels=no anywhere in the template to disable labels, so only the text supplied as parameters appears, separated by semicolons. This minimises the length of the template, and can be used when the template is used more than once to lessen its impact. Disabling labels also suppresses links.

{{Lang-zh| t=中國| s=中国| hp=Zhōngguó| tp=Jhongguó| labels=no}}
中国; 中國; Zhōngguó; Jhongguó

Add |links=no anywhere in the template to suppress label links. This is for preventing overlinking in an article or section where the template is used repeatedly.

{{Lang-zh| t=中國| s=中国| hp=Zhōngguó| tp=Jhongguó| links=no}}
सरलीकृत चीनी वर्ण: 中国; पारम्परिक चीनी वर्ण: 中國; Hanyu Pinyin: Zhōngguó; तोंयॉंग पिनयीन: Jhongguó

Add |scase=yes anywhere in the template to use sentence case, so the first label starts with a capital letter. This allows the template to be used at the start of a sentence for example.

{{Lang-zh| t=中國| s=中国| hp=Zhōngguó| tp=Jhongguó| scase=yes}}
सरलीकृत चीनी वर्ण: 中国; पारम्परिक चीनी वर्ण: 中國; Hanyu Pinyin: Zhōngguó; तोंयॉंग पिनयीन: Jhongguó

The template can be given more than one value (for example, on the article China, it has s, t, hp, tp, and w). By default, when multiple parameters are given they will be shown in the same order as the above table: first Chinese characters (simplified, then traditional), then romanizations (starting with Hanyu and Tongyong Pinyin).

This order can be overridden (for example for Hong Kong and Taiwan topics), using |first=. It accepts a comma delimited list of values, out of the following:

  • |first=t puts traditional characters before simplified characters
  • |first=j puts the Cantonese romanizations (Jyutping, Yale, and Sidney Lau) before Mandarin and Hokkien romanizations
  • |first=poj puts Hokkien romanizations (POJ and Tâi-lô) before Mandarin and Cantonese romanizations

They can be combined in any order, for example: |first=j,t or |first=t,j

Examples:

{{Lang-zh| t=臺北| s=台北| hp=Táiběi}}
सरलीकृत चीनी वर्ण: 台北; पारम्परिक चीनी वर्ण: 臺北; पिनयिन: Táiběi
{{Lang-zh| t=臺北| s=台北| hp=Táiběi|first=t}}
पारम्परिक चीनी वर्ण: 臺北; सरलीकृत चीनी वर्ण: 台北; पिनयिन: Táiběi
{{Lang-zh| t=九龍| s=九龙| p=Jiǔlóng|j=gau2lung4}}
सरलीकृत चीनी वर्ण: 九龙; पारम्परिक चीनी वर्ण: 九龍; पिनयिन: Jiǔlóng; ज्युतपिन: gau2lung4
{{Lang-zh| t=九龍| s=九龙| p=Jiǔlóng|j=gau2lung4|first=t, j}}
पारम्परिक चीनी वर्ण: 九龍; सरलीकृत चीनी वर्ण: 九龙; ज्युतपिन: gau2lung4; पिनयिन: Jiǔlóng

It is also possible to override the default ordering for an entire article, so all uses of the template default to |first=t (traditional characters before simplified characters). This is done by adding the article to the list t1st at the top of Module:Lang-zh, following the formatting of the articles already there. The module is edit-protected, so you may need to use {{edit template-protected}} on the module's talk page Module talk:Lang-zh to request an article is added, if you cannot add it yourself.

|out= can be used to place a supplied parameter outside brackets, with the remainder placed within them. This is useful when a particular aspect of the text is being read inline or emphasized. If both |s= and |t= are specified, and |out=c, both sets of characters will be placed outside the brackets.

Examples:

{{Lang-zh| t=馬來西亞| s=马来西亚| hp=Mǎláixīyà| tr=Malaysia| labels=no| out=tr}}
"Malaysia" (马来西亚; 馬來西亞; Mǎláixīyà)
{{Lang-zh| t=馬來西亞| s=马来西亚| hp=Mǎláixīyà| tr=Malaysia| labels=no| out=c}}
马来西亚; 馬來西亞 (Mǎláixīyà; "Malaysia")
{{Lang-zh| t=可口可樂| s=可口可乐| p=Kěkǒu Kělè| tr=[[Coca-Cola]]| labels=no| out=p}}
Kěkǒu Kělè (可口可乐; 可口可樂; "Coca-Cola")
TemplateData documentation used by VisualEditor and other tools
See the monthly parameter usage report for this template.

TemplateData for भाषा-चीनी

A template to facilitate consistent layout, proper formatting, categorisation and language labelling of Chinese text and its romanizations

साँचे के पैरामीटर्स[साँचा डेटा सम्पादित करें]

इस साँचे के लिए पैरामीटरों के इनलाइन प्रारूपण को प्राथमिकता दी जाती है।

पैरामीटरविवरणप्रकारस्थिति
Chinesec 1

Chinese characters

उदाहरण
大名
स्ट्रिंगसुझावित
Simplified Chineses

Simplified Chinese characters

उदाहरण
中国
स्ट्रिंगसुझावित
Traditional Chineset

Traditional Chinese characters

उदाहरण
中國
स्ट्रिंगसुझावित
Pinyinp hp

Hanyu Pinyin Romanization (Mandarin)

उदाहरण
Zhōngguó
स्ट्रिंगसुझावित
Tongyong Pinyintp

Tongyong Pinyin Romanization (Mandarin)

स्ट्रिंगवैकल्पिक
Wade-Gilesw

Wade-Giles Romanization (Mandarin)

स्ट्रिंगवैकल्पिक
Jyutpingj

[Cantonese] Jyutping Romanization

स्ट्रिंगवैकल्पिक
Cantonese Yalecy

Cantonese Yale Romanization

स्ट्रिंगवैकल्पिक
Sidney Lausl

Sidney Lau Cantonese Romanization

स्ट्रिंगवैकल्पिक
Pe̍h-ōe-jīpoj

Pe̍h-ōe-jī Romanization for Hokkien

स्ट्रिंगवैकल्पिक
Zhuyin Fuhaozhu

Zhuyin Fuhao/Bopomofo (typically for Mandarin)

स्ट्रिंगवैकल्पिक
Literal meaningl

Literal translation to English

उदाहरण
Middle Country
स्ट्रिंगवैकल्पिक
Show labels?labels

Whether or not to display labels. Use "no" to suppress them.

डिफ़ॉल्ट
yes
उदाहरण
no
स्वचालित वैल्यू
no
स्ट्रिंगवैकल्पिक
Linkslinks

Whether or not to link to the article of the specific article of the language/script/romanization. Use "no" to suppress them.

डिफ़ॉल्ट
yes
उदाहरण
no
स्ट्रिंगवैकल्पिक
Orderingfirst

't', 'j' or 't, j' to put traditional Chinese and/or Cantonese Romanizations first

उदाहरण
"t, j"
स्ट्रिंगवैकल्पिक
Sentence casescase

If this parameter is non-empty, the first label is capitalized, i.e. can start a sentence.

स्ट्रिंगवैकल्पिक
  • {{CJKV}}, a similar template, but with Japanese/Korean/Vietnamese functionality
  • {{Lang}}, a general purpose template used for single items: {{Lang|zh|中国}} produces similar output to {{Lang-zh|c=中国|labels=no}}
  • {{Infobox Chinese}}, an infobox that supports traditional and simplified Chinese as well as other common romanizations
  • {{Old Chinese}}, for reconstructed Old Chinese phonology
  • {{Rarely-used Chinese characters}}, to describe characters that may have trouble rendering properly

साँचा:Unicode templates