შინაარსზე გადასვლა

თარგი:Lang-zh

მასალა ვიკიპედიიდან — თავისუფალი ენციკლოპედია
დოკუმენტაცია დოკუმენტაცია
იყენებს ლუას:


სტატიის შესავალ სექციაში, საჭიროების შემთხვევაში, რეკომენდირებულია {{ახჩინური}}-ს გამოყენება.

ეს არის უნიფიცირებული თარგი ჩინური ენის სხვადასხვა ნაირსახეობის სხვადასხვა ორთოგრაფიით ასახვისთვის.


გამოყენება

საბაზისო გამოყენება

{{Lang-zh|c= |gt= }}
{{Lang-zh|c= იეროგლიფები|gt= ჩინური იეროგლიფების თანამედროვე გაქართულება}}

ძირითადი პარამეტრები

Parameter Description Example
|t=
ან |t_hk=
ან |t_tw=[1]
ტრადიციული იეროგლიფები[2]{{Lang-zh|t=中國}}
ჩინ.: 中國
|s= გამარტივებული იეროგლიფები[2]{{Lang-zh|s=中国}}
ჩინ.: 中国
|c=[3] ჩინური იეროგლიფები{{Lang-zh|c=中国}}
ჩინ.: 中国
|gt=
ჩინური იეროგლიფების თანამედროვე გაქართულება{{Lang-zh|gt=中国}}
ჩინ. თან. გაქ.: ჭუნგკუო, მკაცრად რეკომენდირებულია გამოყენება იეროგლიფებთან ერთად, მაგ. {{Lang-zh|c=中国|gt=ჭუნგკუო}} -> ჩინ.: 中国; ჩინ. თან. გაქ.: ჭუნგკუო.
|gt-old=
ისტორიულად დამკვიდრებული გაქართულება{{Lang-zh|gt-old=中国}}
ფინინი: ჩინეთი, მკაცრად რეკომენდირებულია გამოყენება იეროგლიფებთან ერთად, მაგ. {{Lang-zh|c=中国|gt-old=ჩინეთი}} -> ჩინ.: 中国; ჩინ. დამკვ. გაქ.: ჩინეთი.

ტექნიკური პარამეტრები

Parameter Description Example
|l= პირდაპირი მნიშვნელობა {{Lang-zh|l=შუა სამეფო}}
პირდ. მნიშვნ. 'შუა სამეფო'
|tr= თარგმანი {{Lang-zh|tr=ჩინეთი}}
თრგ. "ჩინეთი"
|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

იშვიათი პარამეტრები

Parameter Description Example
|p= or |hp=pinyin[4] Mandarin {{Lang-zh|p=Zhōngguó}}
ფინინი: Zhōngguó
|tp=Tongyong Pinyin{{Lang-zh|tp=Jhongguó}}
თუნგ. ფინინი: Jhongguó
|w=Wade–Giles[5]{{Lang-zh|w=Chung1kuo2}}
Wade–Giles: Chung1kuo2
|j=Jyutping[6] Cantonese {{Lang-zh|j=Gwong2zau1}}
Jyutping: Gwong2zau1
|cy=Cantonese Yale{{Lang-zh|cy=Gwóngjāu}}
Cantonese Yale: Gwóngjāu
|sl=Sidney Lau[5]{{Lang-zh|sl=Gwong2jau1}}
Sidney Lau: Gwong2jau1
|poj=Pe̍h-ōe-jī Hokkien {{Lang-zh|poj=Tâi-tiong-koān}}
Pe̍h-ōe-jī: Tâi-tiong-koān
|tl=Tâi-lô{{Lang-zh|tl=Tâi-tiong-kuān}}
|zhu= Zhuyin Fuhao {{Lang-zh|zhu=ㄊㄠˊ ㄩㄢˊ ㄒㄧㄢˋ}}
Zhuyin Fuhao: ㄊㄠˊ ㄩㄢˊ ㄒㄧㄢˋ
  1. ↑ Use |t_hk= ან |t_tw= to specify an orthographic variant if needed. See this image for an example.
  2. 1 2 If |s= and |t= are both given and are the same – i.e. the simplified and traditional characters are identical – then they only appear once: {{Lang-zh|s=北京|t=北京}} gives ჩინ.: 北京.
  3. ↑ If only one unnamed parameter is given, it will be treated as if it were passed to |c=.
  4. ↑ 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".
  5. 1 2 Wade-Giles and SidneyLau romanizations use superscripted numbers for tones. The template automatically converts unsuperscripted tone numbers to superscripted ones.
  6. ↑ Can be automatically generated: {{kCantonese|廣州}}

Label options

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ó

Ordering

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; Jyutping: gau2lung4
{{Lang-zh| t=九龍| s=九龙| p=Jiǔlóng|j=gau2lung4|first=t, j}}
ტრად. ჩინ.: 九龍; გამ. ჩინ.: 九龙; Jyutping: 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.

Bracketing

|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

Tracking categories

See also

Aliases

Similar templates

თარგი:CJKV/All inline language templates

თარგი:Unicode templates

თარგი:Sandbox other