(Translated by https://www.hiragana.jp/)
Template:CJKV/doc - Wikipedia Jump to content

Template:CJKV/doc

From Wikipedia, the free encyclopedia

Usage[edit]

To use the template, start with {{CJKV}} 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:

Parameters
Parameter Description Example
|t= traditional Chinese {{CJKV|t=よん}}
traditional Chinese: よん
|s= simplified Chinese {{CJKV|s=よん}}
simplified Chinese: よん
|c= Chinese {{CJKV|c=よん}}
Chinese: よん
|p= Hanyu Pinyin {{CJKV|p=Zhōnghuá Mínguó}}
Hanyu Pinyin: Zhōnghuá Mínguó
|tp= Tongyong Pinyin {{CJKV|tp=Jhonghuá Mínguó}}
Tongyong Pinyin: Jhonghuá Mínguó
|cy= Cantonese Yale {{CJKV|cy=lei5 sei3}}
Cantonese Yale: lei5 sei3
|cj= Cantonese Jyutping {{CJKV|cj=lei5 sei3}}
Cantonese Jyutping: lei5 sei3
|w= Wade–Giles {{CJKV|w=Chung-hua Min-kuo}}
Wade–Giles: Chung-hua Min-kuo
|j= Japanese {{CJKV|j=中華人民共和国ちゅうかじんみんきょうわこく}}
Japanese: 中華人民共和国ちゅうかじんみんきょうわこく
|r= Rōmaji {{CJKV|r=Chūka jinmin kyōwa-koku}}
Japanese pronunciation: Chūka jinmin kyōwa-koku
|k= Korean {{CJKV|k=중화 인민 공화국}}
Korean: 중화 인민 공화국
|rr= Romaja {{CJKV|rr=Junghwa inmin gonghwaguk}}
Korean pronunciation: Junghwa inmin gonghwaguk
|v= Vietnamese {{CJKV|v=Trung Quốc}}
Vietnamese: Trung Quốc
|l= "literally" {{CJKV|l=China}}
"China"

(Note: "Japanese pronunciation" or "Korean pronunciation" will appear, instead of "rōmaji" or "romaja", if their Japanese and Korean parameters are missing respectively. See examples 6 and 7.)

All parameters are optional.

Examples[edit]

Traditional Chinese always goes first.

  1. {{CJKV|t=ちょうさん|s=张三}}
    traditional Chinese: ちょうさん; simplified Chinese: 张三
  2. {{CJKV|s=张三|t=ちょうさん}}
    traditional Chinese: ちょうさん; simplified Chinese: 张三

This template compares traditional Chinese, simplified Chinese and Japanese Kanji automatically.

  1. {{CJKV|t=よん}}
    traditional Chinese: よん
  2. {{CJKV|s=よん}}
    simplified Chinese: よん
  3. {{CJKV|t=よん|s=よん}}
    Chinese: よん
  4. {{CJKV|t=よん|s=よん|j=よん}}
    Chinese and Japanese: よん
  5. {{CJKV|t=よん|s=よん|j=よん|k=이사}}
    Chinese and Japanese: よん; Korean: 이사
  6. {{CJKV|t=よん|s=よん|j=よん|k=이사|l=foobar}}
    Chinese and Japanese: よん; Korean: 이사; "foobar"

Simplified and traditional Chinese can be combined together.

  1. {{CJKV|t=皇居こうきょ|s=皇居こうきょ|j=皇居こうきょ|k=고쿄}}
    Chinese and Japanese: 皇居こうきょ; Korean: 고쿄
  2. {{CJKV|c=皇居こうきょ|j=皇居こうきょ|k=고쿄}}
    Chinese and Japanese: 皇居こうきょ; Korean: 고쿄
  3. {{CJKV|c=皇居こうきょ|j=皇居こうきょ|k=고쿄|l=Imperial Residence}}
    Chinese and Japanese: 皇居こうきょ; Korean: 고쿄; "Imperial Residence"

Note that the combined Chinese parameter will overwrite existing ones.

  1. {{CJKV|t=おおとり|s=飞鸿|c=飞鸿|j=おおとり|k=황비홍}}
    Chinese: 飞鸿; Japanese: おおとり; Korean: 황비홍
    is equivalent to
  2. {{CJKV|c=飞鸿|j=おおとり|k=황비홍}}
    Chinese: 飞鸿; Japanese: おおとり; Korean: 황비홍

More examples:

  1. {{CJKV|t=中國ちゅうごく|s=中国ちゅうごく|j=中國ちゅうごく|k=중국}}
    traditional Chinese and Japanese: 中國ちゅうごく; simplified Chinese: 中国ちゅうごく; Korean: 중국
  2. {{CJKV|t=中國ちゅうごく|s=中国ちゅうごく|j=中国ちゅうごく|k=중국}}
    traditional Chinese: 中國ちゅうごく; simplified Chinese and Japanese: 中国ちゅうごく; Korean: 중국
  3. {{CJKV|c=立春りっしゅん|j=立春りっしゅん|k=입춘|v=Lập xuân|l=establishment of spring}}
    Chinese and Japanese: 立春りっしゅん; Korean: 입춘; Vietnamese: Lập xuân; "establishment of spring"
  4. {{CJKV|t=かんぞく|s=汉族|p=hànzú|j=かん民族みんぞく|r=kan minzoku|k=한족}}
    traditional Chinese: かんぞく; simplified Chinese: 汉族; pinyin: hànzú; Japanese: かん民族みんぞく; rōmaji: kan minzoku; Korean: 한족
  5. {{CJKV|t=中華民國ちゅうかみんこく|s=ちゅう华民こく|p=Zhōnghuá Mínguó|tp=Jhonghuá Mínguó|w=Chung-hua Min-kuo}}
    traditional Chinese: 中華民國ちゅうかみんこく; simplified Chinese: ちゅう华民こく; pinyin: Zhōnghuá Mínguó; Tongyong Pinyin: Jhonghuá Mínguó; Wade–Giles: Chung-hua Min-kuo
  6. '''Emperor''' ({{CJKV|c=皇帝こうてい|p=Huángdì|r=Kōtei|rr=Hwangje|v=Hoàng đế}})
    Emperor (Chinese: 皇帝こうてい; pinyin: Huángdì; Japanese pronunciation: Kōtei; Korean pronunciation: Hwangje; Vietnamese: Hoàng đế)
  7. '''History of China''' ({{CJKV|t=中國ちゅうごく歷史れきし|s=中国ちゅうごく历史|p=Zhōngguó lìshǐ|j=中国ちゅうごく歴史れきし|r=Chūgoku no rekishi|k=중국의 역사|rr=Junggugui Yeoksa|v=Lịch sử Trung Quốc}})
    History of China (traditional Chinese: 中國ちゅうごく歷史れきし; simplified Chinese: 中国ちゅうごく历史; pinyin: Zhōngguó lìshǐ; Japanese: 中国ちゅうごく歴史れきし; rōmaji: Chūgoku no rekishi; Korean: 중국의 역사; romaja: Junggugui Yeoksa; Vietnamese: Lịch sử Trung Quốc)

See also[edit]

  • {{Infobox Chinese}} – infobox template supports traditional, simplified Chinese as well as other common romanizations.
  • {{zh}} – inline template supports traditional, simplified Chinese as well as other common romanizations.

TemplateData[edit]

TemplateData documentation used by VisualEditor and other tools
See a monthly parameter usage report for Template:CJKV in articles based on its TemplateData.

TemplateData for CJKV

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

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Chinesec

Chinese characters

Example
よん
Linesuggested
Simplified Chineses

Simplified Chinese characters

Example
中国ちゅうごく
Linesuggested
Traditional Chineset

Traditional Chinese characters

Example
中國ちゅうごく
Stringsuggested
Pinyinp

Hanyu Pinyin Romanization

Example
Zhōnghuá Mínguó
Stringsuggested
Tongyong Pinyintp

Tongyong Pinyin Romanization

Example
Jhonghuá Mínguó
Stringoptional
Cantonese Jyutpingcj

Cantonese Jyutping Romanization

Stringoptional
Cantonese Yalecy

Cantonese Yale Romanization

Lineoptional
Wade-Gilesw

Wade-Giles Romanization

Lineoptional
Japanesej

Japanese kana/kanji text

Example
中華民国ちゅうかみんこく
Lineoptional
Rōmajir

Japanese Rōmaji

Example
Chūka jinmin kyōwa-koku
Stringoptional
Koreank

Korean language text

Example
중화 인민 공화국
Stringoptional
Romajarr

Korean romanization (Revised Romanization)

Example
Junghwa inmin gonghwaguk
Stringoptional
Vietnamesev

Vietnamese language text

Example
Trung Quốc
Stringoptional
literallyl

literal [English] meaning

Example
Middle Country; China
Lineoptional