m Translate info |
m To display the name of language by English while mouse hover on |
||
| Line 1: | Line 1: | ||
<span lang="{{lc:{{{1}}}}}" xml:lang="{{lc:{{{1}}}}}">{{#switch:{{lc:{{{1|}}}}} | <span lang="{{lc:{{{1}}}}}" xml:lang="{{lc:{{{1}}}}}" {{#if:{{{3|}}}||title="{{#switch:{{{1}}}<!-- | ||
-->|zh|zho=Chinese|zh-Hans|zho-Hans=Simplify Chinese|zh-Hant|zho-Hant=Traditional Chinese<!-- | |||
-->|zh-CN|zh-cn|zho-CN|zho-cn=Chinese (Mainland China)|zh-TW|zh-tw|zho-TW|zho-tw=Chinese (Taiwan)|zh-HK|zh-hk|zho-HK|zho-hk=Chinese (Hong Kong)<!-- | |||
-->|en|eng=English|ja|jpn=Japanese|ru|rus=Russian|es|spa=Spanish|pt|por=Portuguese|la|lat=Latin|grc=Ancient Greek (to 1453)|ar|ara=Arabic<!-- | |||
-->|ko|kor=Korean|za|zha=Chuang|bo|bod=Tibetan|mn|mon=Mongolian|ug|uig=Uyghur|yue=Yue Chinese (Cantonese)|th|tha=Thai|hi|hin=Hindi|id|ind=Indonesian<!-- | |||
-->|fr|fra=French|de|deu=German|it|ita=Italian|pl|pol=Polish|uk|ukr=Ukrainian|tr|tur=Turkish|el|ell=Greek|sr|srp=Serbian|da|dan=Danish|sa|san=Sanskrit<!-- | |||
-->|kr=Kanuri|#default={{#language:{{lc:{{{1}}}}}|en}}}}"}}>{{#switch:{{lc:{{{1|}}}}} | |||
|zh|gan|zh-yue = {{{2}}} | |zh|gan|zh-yue = {{{2}}} | ||
|jp|jap = -{{{{2}}}}-<span class="error" style="font-size:smaller;">Incorrect template argument: Use '''ja''' for Japanese</span> | |jp|jap = -{{{{2}}}}-<span class="error" style="font-size:smaller;">Incorrect template argument: Use '''ja''' for Japanese</span> | ||
|gr = -{{{{2}}}}-<span class="error" style="font-size:smaller;">Incorrect template argument: Use '''el''' or '''gre''' for Greek</span> | |gr = -{{{{2}}}}-<span class="error" style="font-size:smaller;">Incorrect template argument: Use '''el''' or '''gre''' for Greek</span> | ||
|kr = -{{{{2}}}}-< | |kr = -{{{{2}}}}-<sup>([[wikipedia:Kanuri|Kanuri]])</sup> | ||
|kp = -{{{{2}}}}-<span class="error" style="font-size:smaller;">Incorrect template argument: Use '''ko''' or '''kor''' for Korean</span> | |kp = -{{{{2}}}}-<span class="error" style="font-size:smaller;">Incorrect template argument: Use '''ko''' or '''kor''' for Korean</span> | ||
|po = -{{{{2}}}}-<span class="error" style="font-size:smaller;">Incorrect template argument: Use '''pl''' or '''pol''' for Polish</span> | |po = -{{{{2}}}}-<span class="error" style="font-size:smaller;">Incorrect template argument: Use '''pl''' or '''pol''' for Polish</span> | ||
{{{2}}}
The purpose of this template is to indicate that a span of text belongs to a particular language.
{{lang|language tag|text}}
The language tag should consist of an ISO 639 language code.
The ISO 639 language code is a two- or three-letter abbreviation, in lowercase, of the language's name. Japanese, for example, has the code ja:
{{lang|ja|蓬莱山輝夜}} → 蓬莱山輝夜The same word or character has different fonts in different countries and regions. Expecially in Chinese character culture circle of East Asia for the following example.
| General meaning of the character | Chinese Simplify (Mainland China) | Chinese Traditional (Taiwan) | Japanese | Korean |
|---|---|---|---|---|
| bone | 骨 | 骨 | 骨 | 骨 |
| send | 送 | 送 | 送 | 送 |
| shine | 耀 | 耀 | 耀 | 耀 |
| Names of languages and their variants | Language code | |
|---|---|---|
| ISO 639-1 | ISO 639-3 | |
| Chinese | zh |
zho
|
| Simplified Chinese | zh-Hans |
zho-Hans
|
| Traditional Chinese | zh-Hant |
zho-Hant
|
| Chinese (Mainland China) | zh-CN |
zho-CN
|
| Chinese (Taiwan) | zh-TW |
zho-TW
|
| Chinese (Hong Kong) | zh-HK |
zho-HK
|
| English | en |
eng
|
| Chuang (Zhuang) | za |
zha
|
| Tibetan | bo |
bod
|
| Mongolian | mn |
mon
|
| Uyghur | ug |
uig
|
| Yue Chinese (Cantonese) | - | yue
|
| Korean | ko |
kor
|
| Japanese | ja |
jpn
|
| Thai | th |
tha
|
| Arabic | ar |
ara
|
| Hindi | hi |
hin
|
| Names of languages and their variants | Language code | |
|---|---|---|
| ISO 639-1 | ISO 639-3 | |
| Indonesian | id |
ind
|
| Russian | ru |
rus
|
| Spanish | es |
spa
|
| Portuguese | pt |
por
|
| French | fr |
fra
|
| German | de |
deu
|
| Italian | it |
ita
|
| Polish | pl |
pol
|
| Ukrainian | uk |
ukr
|
| Turkish | tr |
tur
|
| Serbian | sr |
srp
|
| Danish | da |
dan
|
| Sanskrit | sa |
san
|
| Siddhaṃ script | sa-Sidd |
san-Sidd
|
| Greek | el |
ell
|
| Ancient Greek (to 1453) | - | grc
|
| Latin | la |
lat
|