Template:Language

From MozillaWiki
Jump to: navigation, search

an unspecified language

Documentation icon Template documentation[view] [edit] [history] [purge]

Usage

{{language}} will translate an ISO 639-1 (or, in a few cases, ISO 639-2) language code into the English proper name for the corresponding language, at the position where you place the template. For some languages there is also a possibility to use the <code>-<region> format (see the list below). Language names are shown as plain text, the default message is shown in italic.

The template is useful for inserting the name of a language in a text, if you only know the language code, or for use in templates where you want the template user to define the language, e.g. for automatic categorizing.

Important.png
Is your language not recognized?
The template uses an internal list of language codes and language names. Any language code not represented in the list will output the default phrase. If your language is missing, you'll have to edit the template code and insert the information manually. However, before you change the template, please test your contribution by using the template's sandbox (for the changed template code) and test cases page (for testing if the changed template works). Learn more at English Wikipedia: Template sandbox and test cases.

Parameter

There is only one parameter for entering the language code (1).

  • 1: ISO 639-1 (or, in a few cases, ISO 639-2) language code

This parameter is mandatory. No parameter name needs to be entered. If this parameter is left out, a default message will be displayed.

Usage
  • {{language|1}}

Examples

Correct use

Example case What you write What you see
ISO 639-1 code {{language|sv}} Swedish
ISO 639-1 code
no regional code
{{language|es}} Spanish
ISO 639-1 code
w. regional code
{{language|es-MX}} Spanish (Mexico)
ISO 639-2 code {{language|dsb}} Lower Sorbian

Incorrect use

Example case What you write What you see (default message)
Unknown parameter {{language|xx}} an unspecified language
No parameter {{language}} an unspecified language

List of available language codes

Language code
(input)
Language name
(output)
aa Afar
ab Abkhaz
ach Acholi
ae Avestan
af Afrikaans
ak Akan
am Amharic
an Aragonese
ar Arabic
as Assamese
ast Asturian
av Avaric
ay Aymara
az Azerbaijani
ba Bashkir
be Belarusian
bg Bulgarian
bh Bihari
bi Bislama
bm Bambara
bn Bengali
    bn-BD Bengali (Bangladesh)
    bn-IN Bengali (India)
bo Tibetan
br Breton
bs Bosnian
ca Catalan
ce Chechen
ch Chamorro
co Corsican
cr Cree
cs Czech
cu Old Church Slavonic
cv Chuvash
cy Welsh
da Danish
de German
dsb Lower Sorbian
dv Dhivehi
dz Dzongkha
ee Ewe
el Greek
en English
eo Esperanto
es Spanish
    es-AR Spanish (Argentina)
    es-CL Spanish (Chile)
    es-ES Spanish (Spain)
    es-MX Spanish (Mexico)
et Estonian
eu Basque
fa Persian
ff Fula
fi Finnish
fj Fijian
fo Faroese
fr French
fy Western Frisian
    fy-NL Frisian
ga Irish
gd Scottish Gaelic
gl Galician
gn Guaraní
gu Gujarati
gv Manx
ha Hausa
he Hebrew
hi Hindi
ho Hiri Motu
hr Croatian
hsb Upper Sorbian
ht Haitian Creole
hu Hungarian
hy Armenian
hz Herero
ia Interlingua
id Indonesian
ie Interlingue
ig Igbo
ii Nuosu
ik Inupiaq
io Ido
is Icelandic
it Italian
iu Inuktitut
ja Japanese
jv Javanese
ka Georgian
kg Kongo
ki Gikuyu
kj Kwanyama
kk Kazakh
kl Kalaallisut
km Khmer
kn Kannada
ko Korean
kr Kanuri
ks Kashmiri
ku Kurdish
kv Komi
kw Cornish
ky Kyrgyz
la Latin
lb Luxembourgish
lg Ganda
li Limburgish
lij Ligurian
ln Lingala
lo Lao
lt Lithuanian
lu Luba-Katanga
lv Latvian
mai Maithili
mg Malagasy
mh Marshallese
mi Māori
mk Macedonian
ml Malayalam
mn Mongolian
mr Marathi
ms Malay
mt Maltese
my Burmese
na Nauru
nb Norwegian Bokmål
nd Northern Ndebele
ne Nepali
ng Ndonga
nl Dutch
nn Norwegian Nynorsk
no Norwegian
nr Southern Ndebele
nv Navajo
ny Chewa
oc Occitan
oj Ojibwe
om Oromo
or Oriya
os Ossetian
pa Punjabi
pi Pāli
pl Polish
ps Pashto
pt Portuguese
    pt-BR Portuguese (Brazil)
    pt-PT Portuguese (Portugal)
qu Quechua
rm Romansh
rn Kirundi
ro Romanian
ru Russian
rw Kinyarwanda
sa Sanskrit
sc Sardinian
sd Sindhi
se Northern Sami
sg Sango
si Sinhala
sk Slovak
sl Slovene
sm Samoan
sn Shona
so Somali
son Songhay
sq Albanian
sr Serbian
ss Swati
st Southern Sotho
su Sundanese
sv Swedish
sw Swahili
ta Tamil
te Telugu
tg Tajik
th Thai
ti Tigrinya
tk Turkmen
tl Tagalog
tn Tswana
to Tonga
tr Turkish
ts Tsonga
tt Tatar
tw Twi
ty Tahitian
ug Uyghur
uk Ukrainian
ur Urdu
uz Uzbek
ve Venda
vi Vietnamese
vo Volapük
wa Walloon
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
za Zhuang
zh Chinese
    zh-CN Chinese (Simplified)
    zh-TW Chinese (Traditional)
zu Zulu