سانچو:Zh/دستاويز
| هي سانچي جي دستاويزڪاري جو ذيلي صفحو آهي، جيڪو سانچي جي دستاويزڪاري جي ذيلي صفحي سان ڳنڍيل آهي۔ (سانچو بابت وڌيڪ تفصيل لاءِ ان جو اصل صفحو ڏسو) جنهن ۾ استعمال جو طريقو، زمرا ، بين الوڪي تعلق ۽ ٻيو مواد شامل آهي جيڪو خود سانچو ۾ شامل ناهي۔ |
| هي سانچو لوا استعمال ڪري ٿو: |
| هي سانچو ھزارين صفحن تي استعمال ٿئي ٿو، تنهنڪري ان ۾ ڪيل تبديليون وڏي پيماني تي نظر اچي سگهن ٿيون۔ تبديليون لاڳو ڪرڻ کان اڳ، مهرباني ڪري انهن کي سانچي جي /ريتخاني يا /آزمائشي حالتون وارن ذيلي صفحن ۾ آزمائي ڏسو، يا پنهنجي يوزر ذيلي صفحي ۾ جانچ ڪريو۔ تبديليون لاڳو ڪرڻ کان اڳ ڳالهيون صفحي تي بحث ڪرڻ تي پڻ غور ڪيو۔ |
About
[سنواريو]There were once a large number of Chinese Romanization templates: {{zh-stp}} could display simplified and traditional characters and Hanyu Pinyin; {{zh-cpwl}} could display general Han characters, pinyin and Wade–Giles, and literal translations; {{zh-full}} and its sub-templates allowed more control over display order, etc..
This template was created to combine these into one template with all needed functionality. It can display (and link to) general, simplified, or traditional Han characters; literal translation; Zhuyin (Bopomofo); and the Hanyu Pinyin, Tongyong Pinyin, Wade–Giles, Jyutping, Cantonese Yale, and Pe̍h-ōe-jī romanizations. It supports reordering the output for the most commonly used orders (others orderings can easily be added).
Usage
[سنواريو]Parameters
[سنواريو]To use the template, start with {{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 |
|---|---|---|
|c= | چيني (Chinese) | {{zh|c=中国}}چيني: 中国 |
|s= | simplified Chinese[1] | {{zh|s=中国}}چيني: 中国 |
|t= | traditional Chinese[1] | {{zh|t=中國}}چيني: 中國 |
|p= or |hp= | pinyin[2] | {{zh|p=zhōngguó}}پينين: zhōngguó |
|tp= | Tongyong Pinyin | {{zh|tp=Jhongguó}}تونگ يانگ پينين: Jhongguó |
|w= | Wade–Giles | {{zh|w=Chung¹kuo²}}ويد–جائلز: Chung¹kuo² |
|j= | Jyutping | {{zh|j=Gwong²zau¹}}Jyutping: Gwong²zau¹ |
|cy= | Cantonese Yale | {{zh|cy=Gwóngjàu}}Cantonese Yale: Gwóngjàu |
|poj= | Pe̍h-ōe-jī | {{zh|poj=Tâi-tiong-kōan}}Pe̍h-ōe-jī: Tâi-tiong-kōan |
|zhu= | Zhuyin Fuhao | {{zh|zhu=ㄊㄠˊ ㄩㄢˊ ㄒㄧㄢˋ}}Zhuyin Fuhao: ㄊㄠˊ ㄩㄢˊ ㄒㄧㄢˋ |
|l= | literal meaning | {{zh|l=Middle Kingdom}}literally: "Middle Kingdom" |
|labels= | Display language labels | See below |
|links= | Display language links | See below |
|first= | Override default ordering | See below |
|scase= | use sentence case | See below |
- 1 2 If
|s=and|t=are both given and are the same (i.e., if the simplified and traditional characters are the same), instead of showing both the template will just show "چيني (Chinese):{{{s}}}" - ↑ 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".
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.
{{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.
{{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.
{{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 using |first=. It accepts a comma delimited list of values, though currently only two are supported (more can be added if needed)
|first=tputs traditional Chinese before simplified Chinese, for example for Taiwan and Hong Kong topics|first=jputs the Cantonese Romanisations, Jyutping and Yale, before pinyin Romanisations, for Hong Kong topics- They can be combined: either
|first=j,tor|first=t,jcan be used
Examples:
{{zh|t=臺北|s=台北|hp=Táiběi}}- چيني حرف: 台北; روايتي چيني: 臺北; پينين: Táiběi
{{zh|t=臺北|s=台北|hp=Táiběi|first=t}}- روايتي چيني: 臺北; چيني حرف: 台北; پينين: Táiběi
{{zh|t=九龍|s=九龙|p=Jiǔlóng|j=gau2lung4}}- چيني حرف: 九龙; روايتي چيني: 九龍; پينين: Jiǔlóng; Jyutping: gau2lung4
{{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 article, so traditional Chinese appears before simplified Chinese, i.e. so all uses of the template default to |first=t.
This is done by adding the article to the list t1st at the top of Module: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:Zh to request an article is added, if you cannot add it yourself.
TemplateData
[سنواريو]سانچي ڊيٽا ھيڊر لاءِ سانچائي ڊيٽا
A template to facilitiate consistent layout, proper formatting, categorisation and language labelling of Chinese text
| پيراميٽر | تشريح | قِسم | اسٽيٽس | |
|---|---|---|---|---|
| Chinese | c | Chinese characters | اسٽرنگ | تجويز ڪيل |
| Simplified Chinese | s | Simplified Chinese characters | اسٽرنگ | تجويز ڪيل |
| Traditional Chinese | t | Traditional Chinese characters | اسٽرنگ | تجويز ڪيل |
| pinyin | p | Hanyu Pinyin Romanisation | اسٽرنگ | اختياري |
| Tongyong Pinyin | tp | Tongyong Pinyin Romanisation | اسٽرنگ | اختياري |
| Wade-Giles | w | Wade-Giles Romanisation | اسٽرنگ | اختياري |
| Jyutping | j | [Cantonese] Jyutping Romanisation | اسٽرنگ | اختياري |
| Cantonese Yale | cy | Cantonese Yale Romanisation | اسٽرنگ | اختياري |
| Pe̍h-ōe-jī | poj | Pe̍h-ōe-jī Romanisation | اسٽرنگ | اختياري |
| Zhuyin Fuhao | zhu | Zhuyin Fuhao/Bopomofo | اسٽرنگ | اختياري |
| literally | l | literal [English] meaning | اسٽرنگ | اختياري |
| Labels | labels | Whether or not to display labels
| اسٽرنگ | اختياري |
| Links | links | Whether or not to link to the article of the specific article of the language/script/romanization
| اسٽرنگ | اختياري |
| ordering | first | 't', 'j' or 't, j' to put traditional Chinese and/or Cantonese Romanisations first | اسٽرنگ | اختياري |
| sentence case | scase | Capitalises the first label | اسٽرنگ | اختياري |
See also
[سنواريو]{{CJKV}}, a similar template, but with Japanese/Korean/Vietnamese functionality{{lang}}, a general purpose template used for single items. E.g.{{lang|zh|中国}}produces similar output to{{zh|c=中国|labels=no}}.{{Infobox Chinese}}, an infobox that supports traditional and simplified Chinese as well as other common romanizations.