Difference between revisions of "Template:Lang"
m (Blanked the page) |
|||
Line 1: | Line 1: | ||
− | + | <span lang="{{lc:{{{1}}}}}" xml:lang="{{lc:{{{1}}}}}">{{#switch:{{lc:{{{1|}}}}} | |
+ | |zh|gan|zh-yue = {{{2}}} | ||
+ | |jp|jap = -{{{{2}}}}-<span class="error" style="font-size:smaller;">模板參數錯誤:[[日語]]請使用'''ja'''</span> | ||
+ | |gr = -{{{{2}}}}-<span class="error" style="font-size:smaller;">模板參數錯誤:[[希臘語]]請使用'''el'''或'''gre'''</span> | ||
+ | |kr = -{{{{2}}}}-<span class="error" style="font-size:smaller;">模板參數錯誤:[[朝鮮語]]請使用'''ko'''或'''kor'''。kr為[[卡努里語]],如該語言條目已建立,請至[[Template talk:Lang]]回報取消此警告。</span> | ||
+ | |kp = -{{{{2}}}}-<span class="error" style="font-size:smaller;">模板參數錯誤:[[朝鮮語]]請使用'''ko'''或'''kor'''</span> | ||
+ | |po = -{{{{2}}}}-<span class="error" style="font-size:smaller;">模板參數錯誤:[[波蘭語]]請使用'''pl'''或'''pol'''</span> | ||
+ | |sp = -{{{{2}}}}-<span class="error" style="font-size:smaller;">模板參數錯誤:[[西班牙語]]請使用'''es'''或'''spa'''</span> | ||
+ | |cz = -{{{{2}}}}-<span class="error" style="font-size:smaller;">模板參數錯誤:[[捷克語]]請使用'''cs'''或'''cze'''</span> | ||
+ | |kz = -{{{{2}}}}-<span class="error" style="font-size:smaller;">模板參數錯誤:[[哈薩克語]]請使用'''kk'''或'''kaz'''</span> | ||
+ | |dk = -{{{{2}}}}-<span class="error" style="font-size:smaller;">模板參數錯誤:[[丹麥語]]請使用'''da'''</span> | ||
+ | |unicode|ipa = -{{{{2}}}}-<span class="error" style="font-size:smaller;">模板參數錯誤:請檢查更正引用語言代碼</span> | ||
+ | |#default = -{{{{2}}}}-}}</span>{{#switch:{{{1|}}} | ||
+ | |ar|fa|he|ps|ur = ‎ | ||
+ | |#default = }}{{#if:{{NAMESPACE}}| | ||
+ | <!-- |[[Category:含有{{#switch:{{lc:{{{1|}}}}} | ||
+ | |ar = 阿拉伯語 | ||
+ | |en|eng = English | ||
+ | |es = 西班牙語 | ||
+ | |de = German | ||
+ | |fr = French | ||
+ | |ja|jp|jap= Japanese | ||
+ | |bg = 保加利亞語 | ||
+ | |cs = 捷克語 | ||
+ | |da = 丹麥語 | ||
+ | |nl = 荷蘭語 | ||
+ | |et = 愛沙尼亞語 | ||
+ | |fi = 芬蘭語 | ||
+ | |el|gre = 希臘語 | ||
+ | |hu = 匈牙利語 | ||
+ | |ga = 愛爾蘭語 | ||
+ | |grc = 古希臘語 | ||
+ | |la|lat = Latin | ||
+ | |cy = 威爾斯語 | ||
+ | |sl|slv = 斯洛維尼亞語 | ||
+ | |zh-yue|yue|zh-hk = 粵語 | ||
+ | |zh|zh-hans|zh-hant|zh-cn|zh-tw|zh-sg = Chinese | ||
+ | |#default = {{#ifexist:Category:含有{{ISO 639 name {{lc:{{{1|}}}}}}}的條目 | ||
+ | |{{ISO 639 name {{lc:{{{1|}}}}}}} | ||
+ | |非中文內容 | ||
+ | }} | ||
+ | }}的條目]] --> | ||
+ | }}<noinclude>{{documentation}}</noinclude> |
Revision as of 14:53, 10 December 2016
-{{{{2}}}}-
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.