Difference between revisions of "Template:Lang/doc"
(Additions) |
m (→Meaning of the template: Additions) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 12: | Line 12: | ||
==Meaning of the template== | ==Meaning of the template== | ||
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. | 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. | ||
+ | * If you see that the glyphs of the same line of words in the following example are exactly the same, your browser version might be too old. <del>Or the default font compatibility of the website is poor.</del> | ||
{| class="wikitable" style="text-align:center" | {| class="wikitable" style="text-align:center" | ||
!width="20%"| General meaning of the character | !width="20%"| General meaning of the character | ||
Line 27: | Line 28: | ||
==Common language code list== | ==Common language code list== | ||
− | <div style="display:flex;"> | + | *<span style="color: #C00000;">'''ATTENTION''': Standard ISO 639-3 is incompatible with some fonts, please use it with caution.</span> |
+ | <div style="display:flex; column-gap: .5em;"> | ||
{| class="wikitable" style="text-align: center;" | {| class="wikitable" style="text-align: center;" | ||
!width="50%" rowspan="2"| Names of languages and their variants | !width="50%" rowspan="2"| Names of languages and their variants | ||
Line 109: | Line 111: | ||
|} | |} | ||
</div> | </div> | ||
+ | * For more language code, you can go to [[wikipedia:ISO 639|Wikipedia]] or [https://iso639-3.sil.org/code_tables/639/data SIL International] to search for. | ||
<includeonly>[[Category:Language templates]]</includeonly> | <includeonly>[[Category:Language templates]]</includeonly> |
Revision as of 12:45, 11 September 2021
The purpose of this template is to indicate that a span of text belongs to a particular language.
Usage
{{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|蓬莱山輝夜}}
→ 蓬莱山輝夜
Meaning of the template
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.
- If you see that the glyphs of the same line of words in the following example are exactly the same, your browser version might be too old.
Or the default font compatibility of the website is poor.
General meaning of the character | Chinese Simplify (Mainland China) | Chinese Traditional (Taiwan) | Japanese | Korean |
---|---|---|---|---|
bone | 骨 | 骨 | 骨 | 骨 |
send | 送 | 送 | 送 | 送 |
shine | 耀 | 耀 | 耀 | 耀 |
Common language code list
- ATTENTION: Standard ISO 639-3 is incompatible with some fonts, please use it with caution.
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
|
- For more language code, you can go to Wikipedia or SIL International to search for.