ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

Template:Lang/doc: Difference between revisions

From ModEnc
Jump to navigation Jump to search
Doc to introduce this template.
 
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
This Template use for modifing the font of non-English languages.
This Template use for modifing the font of non-English languages.
==Usage==
==Usage==
{{code|<nowiki>{{lang|Language Code|Contents}}</nowiki>}}
<code><nowiki>{{lang|Language Code|Contents}}</nowiki></code>


* You can go to [[wikipedia:ISO 639|Wikipedia]] or [https://iso639-3.sil.org/code_tables/639/data SIL International] to search for the code of the language if you don't know it.
* You can go to [[wikipedia:ISO 639|Wikipedia]] or [https://iso639-3.sil.org/code_tables/639/data SIL International] to search for the code of the language if you don't know it.
Line 8: Line 8:
{| class="wikitable" style="text-align:center"
{| class="wikitable" style="text-align:center"
!width="20%"| Language (or sub-language)
!width="20%"| Language (or sub-language)
!width="20%"| Chinese Simplify
!width="20%"| Simplified Chinese
!width="20%"| Chinese Traditional
!width="20%"| Traditional Chinese
!width="20%"| Japanese
!width="20%"| Japanese
!width="20%"| Korean
!width="20%"| Korean
|-
|-
! Code
! Code
| {{code|<nowiki>{{lang|zh-Hans|骨}}</nowiki>}} || {{code|<nowiki>{{lang|zh-Hant|骨}}</nowiki>}} || {{code|<nowiki>{{lang|ja|骨}}</nowiki>}} || {{code|<nowiki>{{lang|ko|骨}}</nowiki>}}
| <code><nowiki>{{lang|zh-Hans|骨}}</nowiki></code> || <code><nowiki>{{lang|zh-Hant|骨}}</nowiki></code> || <code><nowiki>{{lang|ja|骨}}</nowiki></code> || <code><nowiki>{{lang|ko|骨}}</nowiki></code>
|-
|-
! Result
! Result
Line 22: Line 22:
==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. Or the default font compatibility of the website is poor.
{| 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
!width="20%"| Chinese Simplify (Mainland China)
!width="20%"| Simplified Chinese (Mainland China)
!width="20%"| Chinese Traditional (Taiwan)
!width="20%"| Traditional Chinese (Taiwan)
!width="20%"| Japanese
!width="20%"| Japanese
!width="20%"| Korean
!width="20%"| Korean
Line 35: Line 36:
| [https://hanziyuan.net/#耀 shine] ||{{Lang|zh-CN|耀}} || {{Lang|zh-TW|耀}} || {{Lang|ja|耀}} || {{Lang|ko|耀}}
| [https://hanziyuan.net/#耀 shine] ||{{Lang|zh-CN|耀}} || {{Lang|zh-TW|耀}} || {{Lang|ja|耀}} || {{Lang|ko|耀}}
|}
|}
==Common language code list==
*<span style="color: #C00000;">'''ATTENTION''': ISO 639-3 is incompatible with some fonts, please use it with caution.</span>
<div style="display:flex;">
{| class="wikitable" style="text-align: center;"
!width="50%" rowspan="2"| Names of languages and their variants
!width="50%" colspan="2"| Language code
|-
! ISO 639-1 !! ISO 639-3
|-
| 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
|-
| Greek || el || ell
|-
| Ancient Greek (to 1453) || - || grc
|-
| Latin || la || lat
|-
| Sanskrit || sa || san
|}
{| class="wikitable" style="text-align: center;"
!width="50%" rowspan="2"| Names of languages and their variants
!width="50%" colspan="2"| Language code
|-
! ISO 639-1 !! ISO 639-3
|-
| Chinese || zh || zho
|-
| Simplified Chinese || zh-Hans || zho-Hans
|-
| Traditional Chinese || zh-Hant || zho-Hant
|-
| 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
|-
| Indonesian || id || ind
|}
</div>

Latest revision as of 10:22, 11 September 2021

This Template use for modifing the font of non-English languages.

Usage

{{lang|Language Code|Contents}}

Example

Language (or sub-language) Simplified Chinese Traditional Chinese Japanese Korean
Code {{lang|zh-Hans|骨}} {{lang|zh-Hant|骨}} {{lang|ja|骨}} {{lang|ko|骨}}
Result

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 Simplified Chinese (Mainland China) Traditional Chinese (Taiwan) Japanese Korean
bone
send
shine 耀 耀 耀 耀

Common language code list

  • ATTENTION: 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
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
Greek el ell
Ancient Greek (to 1453) - grc
Latin la lat
Sanskrit sa san
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
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
Indonesian id ind