Template:Chinese

From Wikipedia, the free encyclopedia

This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages.
Remember that you can conduct experiments, and should test all improvements, in either the general Template sandbox or your user space before changing anything here.
Chinese
[edit] Template documentation
Chinese

Put caption here

Put caption here
Chinese name
Chinese: c
Traditional Chinese: t
Simplified Chinese: s
Literal meaning: l
altname
Chinese: c2
Traditional Chinese: t2
Simplified Chinese: s2
Literal meaning: l2
Filipino name
Tagalog: tgl
Indian name
Hindi: hin
Indonesian name
Indonesian: ind
Japanese name
Kanji: kanji
Kana: kana
Hiragana: hiragana
Kyūjitai: kyujitai
Shinjitai: shinjitai
Korean name
Hangul: hangul
Hanja: hanja
Literal meaning: lk
Malay name
Malay: msa
Manchu name
Manchu: mnc
Mongolian name
Mongolian: mon
Portuguese name
Portuguese: por
Russian name
Russian: rus
Romanization: rusr
Tamil name
Tamil: tam
Thai name
Thai: tha
RTGS: rtgs
Tibetan name
Tibetan: tib
Uyghur name
Uyghur: uig
Vietnamese name
Vietnamese: vie
Quốc ngữ: qn
Chữ nôm: chunom
Hán tự: hantu
Zhuang name
Zhuang: zha
Dunganese name
Dungan: dungan
Xiao'erjing: dungan-xej
Romanization: dungan-latin
Hanzi: dungan-han
lang2 name
lang2: lang2_content
lang3 name
lang3: lang3_content

Contents

[edit] Usage

Use this template to show a Chinese name, word, term or phrase in various renderings.

{{Chinese
|title=Box title        (Default is the article title)
|float=left|right|none  (Default float position is right)
|pic=pic
|piccap=piccap
|picsize=200px          (Default is 260px)
|pic2=addition pic
|piccap2=additional pic caption
|picsize2=200px         (Default is 260px)
|c=Chinese              (Use when traditional = simplified)
|t=Traditional
|s=Simplified
|l=Literal Meaning
|p=Mandarin Hanyu Pinyin
|tp=Tongyong pinyin
|w=Wade Giles
|psp=Chinese postal map
|my=Mandarin Yale
|gr=Gwoyeu Romatzyh
|bpmf=Bopomofo
|xej=Xiao'erjing
|zh-dungan=Mandarin Cyrillic
|j=Cantonese Jyutping
|y=Cantonese Yale
|i=IPA
|toi=Taishanese
|gan=Gan romanization
|wuu=Wu romanization
|hsn=Xiang romanization
|h=Hakka
|poj=Min Nan POJ
|buc=Min Dong BUC
|lmz=Latin Phonetic Shanghainese
|teo=Teochew
|altname=Alternate name
|c2=Chinese2            
|t2=Traditional2
|s2=Simplified2
|l2=Literal Meaning2
|p2=Mandarin Hanyu Pinyin2
|tp2=Tongyong pinyin2
|w2=Wade Giles2
|psp2=Chinese postal map2
|my2=Mandarin Yale2
|gr2=Gwoyeu Romatzyh2
|bpmf2=Bopomofo2
|xej2=Xiao'erjing2
|zh-dungan2=Mandarin Cyrillic2
|j2=Cantonese Jyutping2
|i2=IPA2
|toi2=Taishanese2
|gan2=Gan romanization
|wuu2=Wu romanization
|hsn2=Xiang romanization
|y2=Cantonese Yale2
|h2=Hakka2
|poj2=Min Nan POJ 2
|buc=Min Dong BUC 2
|lmz2=Latin Phonetic Shanghainese2
|teo2=Teochew2
|hangul=Korean Hangul
|hanja=Korean Hanja
|rr=Revised Romanization of Korean
|mr=McCune-Reischauer Romanization of Korean
|northkorea=yes                (hangul becomes Chosŏn'gŭl)
|lk=Literal meaning in Korean
|kanji=Japanese Kanji
|kyujitai=Japanese Kanji in Kyujitai
|shinjitai=Japanese Kanji in Shinjitai
|kana=Japanese Kana
|hiragana=Japanese Hiragana
|romaji=Romaji
|revhep=Revised Hepburn romanization of Japanese
|tradhep=Traditional Hepburn romanization of Japanese
|kunrei=Kunrei-shiki romanization of Japanese
|nihon=Nihon-shiki romanization of Japanese
|tgl=Filipino Tagalog
|hin=Hindi language
|ind=Indonesian language
|msa=Malay language
|mnc=Manchu language
|mon=Mongolian language
|por=Portugese language
|rus=Russian language in Cyrillic alphabet
|rusr=Russian language in Latin alphabet
|tam=Tamil language
|tha=Thai language
|rtgs=Royal Thai General System of Transcription
|tib=Tibetan language
|wylie=Wylie transliteration of Tibetan
|thdl=THDL Simplified Phonetic Transcription of Tibetan
|zwpy=Zangwen Pinyin (PRC's official Tibetan translieration)
|lhasa=Lhasa dialect of Tibetan in IPA
|uig=Uyghur language
|vie=Vietnamese language (generic)
|qn=Vietnamese in Quoc Ngu script
|chunom=Vietnamese Chu Nom
|hantu=Vietnamese Han Tu
|zha=Zhung language
|dungan=Dungan language
|dungan-xej=Dungan Xiao'erjing
|dungan-han=Dungan Hanzi
|dungan-latin=Dungan Romanization
|bur=Burmese language
|Burmese_language_content=Contents of bur
|lang2=Additional language2
|lang2_content=Contents of lang2
|lang3=Additional language3 
|lang3_content=Contents of lang3 (you can go in order until lang11)
...
|lang11=Additional language11
|lang11_content=Contents of lang11
}}


Chinese

In this sample, the template is using showflag=jp with order=st. Simplified Chinese is shown first in order. Jyutping and pinyin is displayed outside of the alphabetized hide area.
Simplified Chinese: Simplified text
Traditional Chinese: Traditional text
Cantonese Jyutping: jyutping
Hanyu Pinyin: pinyin
Literal meaning: Literal text

Optional Flags

  • order=st - By default Traditional Chinese comes first on display. If this flag is called, Simplified Chinese will be displayed first. This is for articles having to do with PRC or Simplified Chinese.
  • hide=no - By default all romanizations and transliterations are hidden. If this flag is called, all the transliteration will be shown.

Optional Showflag By default no romanization will show outside of the hide area. You can call this flag when using the template to have certain romanizations appear permanently in favor of certain regions.

  • showflag=j - this will show jyutping outside of the hide area.
  • showflag=h - this will show hakka outside of the hide area.
  • showflag=p - this will show pinyin outside of the hide area.
  • showflag=poj - this will show Min poj outside of the hide area.
  • showflag=pj - this will show pinyin then jyutping outside of the hide area.
  • showflag=jp - this will show jyutping then pinyin outside of the hide area.
  • showflag=wu - this will show Wu outside of the hide area.
  • showflag=hsn - this will show Xiang outside of the hide area.
  • showflag=gan - this will show Gan outside of the hide area.
  • showflag=bpmf - this will show Bopomofo outside of the hide area

[edit] Related templates

[edit] Uniform templates

For use when traditional and simplified are the same.

pinyin: {{{1}}}

Hanyu Pinyin: {{{hp}}}; Tongyong Pinyin: {{{tp}}}

Hanyu Pinyin: {{{hp}}}; Tongyong Pinyin: {{{tp}}}; Wade-Giles: {{{w}}}

Chinese: {{{1}}}

Chinese: {{{1}}}; pinyin: {{{2}}}

Chinese: {{{c}}}; pinyin: {{{p}}}; Wade-Giles: {{{w}}}

Chinese: {{{c}}}; Hanyu Pinyin: {{{hp}}}; Tongyong Pinyin: {{{tp}}}

[edit] Simplified templates

simplified Chinese: {{{s}}}

simplified Chinese: {{{s}}}; pinyin: {{{p}}}

simplified Chinese: {{{s}}}; pinyin: {{{p}}}; Wade-Giles: {{{w}}}

simplified Chinese: {{{s}}} Hanyu Pinyin: {{{hp}}}; Tongyong Pinyin: {{{tp}}}

[edit] Traditional templates

traditional Chinese: {{{1}}}

traditional Chinese: {{{t}}}; pinyin: {{{p}}}

traditional Chinese: {{{t}}}; pinyin: {{{p}}}; Wade-Giles: {{{w}}}

traditional Chinese: {{{t}}}; Hanyu Pinyin: {{{hp}}}; Tongyong Pinyin: {{{tp}}}

traditional Chinese: {{{t}}}; Hanyu Pinyin: {{{hp}}}; Tongyong Pinyin: {{{tp}}}; Wade-Giles: {{{w}}}

[edit] Combination templates

simplified Chinese: {{{s}}}; traditional Chinese: {{{t}}}; pinyin: {{{p}}}; Wade-Giles: {{{w}}}

traditional Chinese: {{{t}}}; simplified Chinese: {{{s}}}; pinyin: {{{p}}}; Wade-Giles: {{{w}}}

traditional Chinese: {{{t}}}; simplified Chinese: {{{s}}}; Hanyu Pinyin: {{{hp}}}; Tongyong Pinyin: {{{tp}}}

traditional Chinese: {{{t}}}; simplified Chinese: {{{s}}}; Hanyu Pinyin: {{{hp}}}; Tongyong Pinyin: {{{tp}}}; Wade-Giles: {{{w}}}

simplified Chinese: {{{s}}}; traditional Chinese: {{{t}}}; pinyin: {{{p}}}

traditional Chinese: {{{t}}}; simplified Chinese: {{{s}}}; pinyin: {{{p}}}

simplified Chinese: {{{s}}}; pinyin: {{{p}}}; traditional Chinese: {{{t}}}

traditional Chinese: {{{t}}}; pinyin: {{{p}}}; simplified Chinese: {{{s}}}

simplified Chinese: {{{s}}}; traditional Chinese: {{{t}}}

traditional Chinese: {{{t}}}; simplified Chinese: {{{s}}}

[edit] Cantonese templates

traditional Chinese: {{{t}}}; Cantonese Yale: {{{cy}}}

traditional Chinese: {{{t}}}; simplified Chinese: {{{s}}}; pinyin: {{{p}}}; Cantonese Yale: {{{cy}}}

[edit] Min Nan templates

traditional Chinese: {{{t}}}; pinyin: {{{p}}}; Pe̍h-ōe-jī: {{{poj}}}

traditional Chinese: {{{t}}}; pinyin: {{{p}}}; Wade-Giles: {{{w}}}; Pe̍h-ōe-jī: {{{poj}}}

traditional Chinese: {{{t}}}; Hanyu Pinyin: {{{hp}}}; Tongyong Pinyin: {{{tp}}}; Wade-Giles: {{{w}}}; Pe̍h-ōe-jī: {{{poj}}}

traditional Chinese: {{{t}}}; simplified Chinese: {{{s}}}; pinyin: {{{p}}}; Wade-Giles: {{{w}}}; Pe̍h-ōe-jī: {{{poj}}}

[edit] Ruby templates

{{{1}}}({{{2}}})

{{{1}}}({{{2}}})


[edit] See also