Template:Infobox Chinese/doc: Difference between revisions

From Ryukyusphere
m (Template has been renamed per TFD)
 
m (1 revision imported)
 
(No difference)

Latest revision as of 09:48, 8 December 2025

Usage

Use this template to show a Chinese name, word, term or phrase in various renderings. <syntaxhighlight lang="wikitext" style="overflow:auto;">

</syntaxhighlight>

Infobox Chinese/doc
File:Mediawiki-logo.png
In this sample, the template is using showflag=py with order=st. Simplified Chinese is shown first in order. Pinyin and Yale are displayed outside of the alphabetized hide area.
Simplified Chinese[Simplified text] Error: {{Lang}}: Latn text/non-Latn script subtag mismatch (help)
Traditional Chinese[Traditional text] Error: {{Lang}}: Latn text/non-Latn script subtag mismatch (help)
Hanyu Pinyinpinyin
Cantonese Yaleyale
Literal meaningLiteral text
Transcriptions
Standard Mandarin
Hanyu Pinyinpinyin
Gan
Romanizationgan text
Yue: Cantonese
Yale Romanizationyale
Jyutpingjyutping

Optional flags

  • child=yes: to embed this template inside another infobox (WP:IEmbed), usually in a module or embedded parameter of the parent infobox. If this flag is set, the title parameter should be omitted.
  • 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, Singapore, Malaysia, or Simplified Chinese. Articles that are not strictly regarding the given examples (such as ROC) or can apply to both Traditional Chinese and Simplified Chinese are strongly suggested to not use this.
  • hide=no: By default all romanizations and transcriptions are hidden. If this flag is called, all the transcriptions 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.

Mandarin

  • showflag=p: this will show pinyin outside of the hide area.
  • showflag=bpmf: this will show Bopomofo outside of the hide area.
  • showflag=xej: this will show Xiao'erjing outside of the hide area.
  • showflag=xejp: this will show Xiao'erjing, then pinyin outside of the hide area.
  • showflag=wp: this will show Wade–Giles, then pinyin outside of the hide area.

Hakka

  • showflag=h: this will show Hakka outside of the hide area.

Min

  • showflag=tl: this will show Tâi-Lô outside of the hide area.
  • showflag=poj: this will show Hokkien poj outside of the hide area.
  • showflag=teo: this will show Teochew Peng'im outside of the hide area.
  • showflag=buc: this will show Fuzhou buc outside of the hide area.
  • showflag=lizu: this will show Leizhou Min outside of the hide area.
  • showflag=hain: this will show Hainanese Romanised outside of the hide area.

Yue

  • showflag=y: this will show Yale outside of the hide area.
  • showflag=yj: this will show Yale, then Jyutping outside of the hide area.
  • showflag=jy: this will show Jyutping, then Yale outside of the hide area.
  • showflag=j: this will show Jyutping outside of the hide area.
  • showflag=py: this will show pinyin, then Yale outside of the hide area.
  • showflag=pj: this will show pinyin, then Jyutping outside of the hide area.
  • showflag=jyp: this will show Jyutping, Yale, then pinyin outside of the hide area.
  • showflag=jp: this will show Jyutping, then pinyin outside of the hide area.
  • showflag=gdp: this will show Guangdong Romanization, then pinyin outside of the hide area.
  • showflag=toip: this will show Taishanese, then pinyin outside of the hide area.

Wu

  • showflag=wuu: this will show Wu outside of the hide area.
  • showflag=pwuu: this will show pinyin, then Wu outside of the hide area.
  • showflag=wgn: this will show Shanghainese outside of the hide area.

Xiang

  • showflag=hsn: this will show Xiang outside of the hide area.
  • showflag=phsn: this will show pinyin, then Xiang outside of the hide area.

Gan

  • showflag=gan: this will show Gan outside of the hide area.

Sichuanese Mandarin

  • showflag=psic: this will show pinyin then Sichuanese pinyin outside of the hide area.

Usage inside other infoboxes

Alternatively, subtemplates for each language can be used inside other templates. In each subtemplate, |header=none can be used to hide the header reading "Language name".

<syntaxhighlight lang="wikitext"> {{Infobox ... | data =

Korean name Japanese name Russian name

... }} </syntaxhighlight>

which gives the following result:

Infobox
Korean name
Hangul
[{{{hangul}}}] Error: {{Lang}}: Latn text/non-Latn script subtag mismatch (help)
Hanja
[{{{hanja}}}] Error: {{Lang}}: Latn text/non-Latn script subtag mismatch (help)
Literal meaning{{{lk}}}
Revised Romanization{{{rr}}}
McCune–Reischauer{{{mr}}}
Japanese name
Kanji{{{kanji}}}
Shinjitai{{{shinjitai}}}
Kyūjitai{{{kyujitai}}}
Kana{{{kana}}}
Hiragana{{{hiragana}}}
Katakana{{{katakana}}}
Transcriptions
Romanization{{{romaji}}}
Revised Hepburn{{{hepburn}}}
Traditional Hepburn{{{tradhep}}}
Kunrei-shiki{{{kunrei}}}
Nihon-shiki{{{nihon}}}
Russian name
Russian{{{cyrillic}}}
Romanization{{{romanization}}}

Using the collapse parameter

Infobox Chinese/doc
File:Mediawiki-logo.png
Put caption here
File:Mediawiki-logo.png
Put caption here
Chinese name
Chinese[c] Error: {{Lang}}: Latn text/non-Latn script subtag mismatch (help)
Traditional Chinese[t] Error: {{Lang}}: Latn text/non-Latn script subtag mismatch (help)
Simplified Chinese[s] Error: {{Lang}}: Latn text/non-Latn script subtag mismatch (help)
Postalpsp
Literal meaningl
Transcriptions
Standard Mandarin
Hanyu Pinyinp
Bopomofo[bpmf] Error: {{Lang}}: Latn text/non-Latn script subtag mismatch (help)
Gwoyeu Romatzyhgr
Wade–Gilesw
Tongyong Pinyintp
MPS2mps
other Mandarin
Xiao'erjing[[xej] Error: {{Lang}}: Latn text/non-Latn script subtag mismatch (help)] Error: {{Lang}}: Latn text/non-Latn script subtag mismatch (help)
Dungan[zh-dungan] Error: {{Lang}}: Latn text/non-Latn script subtag mismatch (help)
Wu
Wugniuwgn
Romanizationwuu
Wenzhounese
Romanisation
ouji
Gan
Romanizationgan
Xiang
IPAhsn
Hakka
Romanizationh
Yue: Cantonese
Yale Romanizationy
Jyutpingj
IPAci
other Yue
Taishanesetoi
Southern Min
Hokkien POJpoj
Teochew Peng'imteo
Hainanese Romanizationhain
Leizhou Romanizationlizu
Eastern Min
Fuzhou BUCbuc
Pu-Xian Min
Hinghwa BUChhbuc
Northern Min
Jian'ou Romanizedmblmc
altname
Chinese[c2] Error: {{Lang}}: Latn text/non-Latn script subtag mismatch (help)
Traditional Chinese[t2] Error: {{Lang}}: Latn text/non-Latn script subtag mismatch (help)
Simplified Chinese[s2] Error: {{Lang}}: Latn text/non-Latn script subtag mismatch (help)
Postalpsp2
Literal meaningl2
Transcriptions
Standard Mandarin
Hanyu Pinyinp2
Bopomofo[bpmf2] Error: {{Lang}}: Latn text/non-Latn script subtag mismatch (help)
Gwoyeu Romatzyhgr2
Wade–Gilesw2
Tongyong Pinyintp2
MPS2mps2
other Mandarin
Xiao'erjing[[xej2] Error: {{Lang}}: Latn text/non-Latn script subtag mismatch (help)] Error: {{Lang}}: Latn text/non-Latn script subtag mismatch (help)
Dungan[zh-dungan2] Error: {{Lang}}: Latn text/non-Latn script subtag mismatch (help)
Wu
Wugniuwgn2
Romanizationwuu2
Wenzhounese
Romanisation
ouji2
Gan
Romanizationgan2
Xiang
IPAhsn2
Hakka
Romanizationh2
Yue: Cantonese
Yale Romanizationy2
Jyutpingj2
IPAci2
other Yue
Taishanesetoi2
Southern Min
Hokkien POJpoj2
Teochew Peng'imteo2
Eastern Min
Fuzhou BUCbuc2
Pu-Xian Min
Hinghwa BUChhbuc2
Northern Min
Jian'ou Romanizedmblmc2
Burmese name
Burmesemy
Tibetan name
Tibetantib
Transcriptions
Wyliewylie
THLtdhl
Tibetan Pinyinzwpy
Lhasa IPAlhasa
Dunganese name
Dungandungan
Xiao'erjingdungan-xej
Romanizationdungan-latin
Hanzidungan-han
Vietnamese name
Vietnamesevie
Vietnamese alphabetqn
Chữ Nôm[chunom] Error: {{Lang}}: Latn text/non-Latn script subtag mismatch (help)
Thai name
Thaitha
RTGSrtgs
Zhuang name
Zhuangzha
Korean name
Hangulhangul
Hanjahanja
Literal meaninglk
Transcriptions
Revised Romanizationrr
McCune–Reischauermr
Mongolian name
Mongolian Cyrillicmon
Mongolian scriptmong
Transcriptions
SASM/GNCmonr
Japanese name
Kanjikanji
Kanakana
Hiraganahiragana
Katakanakatakana
Kyūjitaikyujitai
Shinjitaishinjitai
Transcriptions
Romanizationromaji
Revised Hepburnrevhep
Traditional Hepburntradhep
Kunrei-shikikunrei
Nihon-shikinihon
Malay name
Malaymsa
Indonesian name
Indonesianind
Filipino name
Tagalogtgl
Uyghur name
Uyghuruig
Transcriptions
Latin Yëziqiuly
Yengi Yeziⱪuyy
Siril Yëziqi[usy] Error: {{Lang}}: Latn text/non-Latn script subtag mismatch (help)
Uyghur IPAuipa
Manchu name
Manchu scriptmnc
Tamil name
Tamiltam
Hindi name
Hindihin
Portuguese name
Portuguesepor
Russian name
Russianrus
Romanizationrusr
Lao name
Laolao
Khmer name
Khmerkhm
Tetum name
Tetumtet

The collapse parameter allows abbreviated, expandable versions of this template. At right is the same template as above, with collapse set to yes.

  • collapse=yes (collapsable template, initially in collapsed state)
  • collapse=no (collapsable template, initially in expanded state)
  • if the parameter is omitted, the standard (non-collapsable) version is used.

Subtemplates used by Infobox Chinese

Related templates

TemplateData