The {{ISO 639 name}} template is used to resolve ISO 639-1, ISO 639-2, ISO 639-3 and ISO 639-5 codes to language names. It will trim extraneous IETF language tags to just the ISO 639 code. E.g.: Sanskrit in Latin script, which IETF language tag is sa-Latn, renders as:

  • {{ISO 639 name|sa-Latn}} → Sanskrit error: sa-Latn is an IETF tag (help)

The error message can be suppressed with |hide-err=yes:

  • {{ISO 639 name|sa-Latn|hide-err=yes}} → Sanskrit

The rendered language name can be linked to the appropriate language article with |link=yes:

  • {{ISO 639 name|sa-Latn|hide-err=yes|link=yes}}Sanskrit

When linking, an alternate link label can be provided with |label=<label text>:

  • {{ISO 639 name|sa-Latn|hide-err=yes|link=yes|label=sa-Latn}}sa-Latn

The {{ISO 639 name link}} template is the same as {{ISO 639 name}} except that it presets |link=yes.

Both of these templates can be safely substituted.

This template can be used to execute any of the functions exported by Module:ISO 639 name. These function are:

  • iso_639_code_exists – returns true if <code> is found in any of the ISO 639 data tables
  • iso_639_code_to_name – (default) as described above
  • iso_639_code_1_to_name – same as iso_639_code_to_name except constrained to the ISO 639-1 data table
  • iso_639_code_2_to_name – same as iso_639_code_to_name except constrained to the ISO 639-2 data table
  • iso_639_code_2B_to_name – same as iso_639_code_to_name except constrained to the ISO 639-2B data table
  • iso_639_code_3_to_name – same as iso_639_code_to_name except constrained to the ISO 639-3 data table
  • iso_639_code_5_to_name – same as iso_639_code_to_name except constrained to the ISO 639-5 data table
  • iso_639_name_exists – returns true if <name> is found in any of the ISO 639 data tables
  • iso_639_name_to_code – returns language code associated with <name>; may be constrained to a particular ISO 639 data table
  • iso_639 – returns language name when given a valid language code; returns a language code when given a valid language name; may be constrained to a particular ISO 639 data table

To use these functions set |fn= to the appropriate function name.

ISO 639-1 codes and matching codes from ISO 639-2, -2B, and -3
ISO 639-1 ISO 639-2 ISO 639-2B[a] ISO 639-3 Name Article
aa Afar Afar language Category:Articles containing Afar language text
ab Abkhazian Abkhazian language Category:Articles containing Abkhazian language text
ae Avestan Avestan language Category:Articles containing Avestan language text
af Afrikaans Afrikaans language Category:Articles containing Afrikaans language text
ak Akan Akan language Category:Articles containing Akan language text
am Amharic Amharic language Category:Articles containing Amharic language text
an Aragonese Aragonese language Category:Articles containing Aragonese language text
ar Arabic Arabic language Category:Articles containing Arabic language text
as Assamese Assamese language Category:Articles containing Assamese language text
av Avaric Avaric language Category:Articles containing Avaric language text
ay Aymara Aymara language Category:Articles containing Aymara language text
az Azerbaijani Azerbaijani language Category:Articles containing Azerbaijani language text
ba Bashkir Bashkir language Category:Articles containing Bashkir language text
be Belarusian Belarusian language Category:Articles containing Belarusian language text
bg Bulgarian Bulgarian language Category:Articles containing Bulgarian language text
bh bih [b] Bihari languages Bihari languages language Category:Articles containing Bihari languages language text
bi Bislama Bislama language Category:Articles containing Bislama language text
bm Bambara Bambara language Category:Articles containing Bambara language text
bn Bengali Bengali language Category:Articles containing Bengali language text
bo Standard Tibetan Standard Tibetan language Category:Articles containing Standard Tibetan language text
br Breton Breton language Category:Articles containing Breton language text
bs Bosnian Bosnian language Category:Articles containing Bosnian language text
ca Catalan Catalan language Category:Articles containing Catalan language text
ce Chechen Chechen language Category:Articles containing Chechen language text
ch Chamorro Chamorro language Category:Articles containing Chamorro language text
co Corsican Corsican language Category:Articles containing Corsican language text
cr Cree Cree language Category:Articles containing Cree language text
cs Czech Czech language Category:Articles containing Czech language text
cu Church Slavic Church Slavic language Category:Articles containing Church Slavic language text
cv Chuvash Chuvash language Category:Articles containing Chuvash language text
cy Welsh Welsh language Category:Articles containing Welsh language text
da Danish Danish language Category:Articles containing Danish language text
de German German language Category:Articles containing German language text
dv Dhivehi Dhivehi language Category:Articles containing Dhivehi language text
dz Dzongkha Dzongkha language Category:Articles containing Dzongkha language text
ee Ewe Ewe language Category:Articles containing Ewe language text
el ell gre Greek Greek language Category:Articles containing Greek language text
en English English language Category:Articles containing English language text
eo Esperanto Esperanto language Category:Articles containing Esperanto language text
es Spanish Spanish language Category:Articles containing Spanish language text
et Estonian Estonian language Category:Articles containing Estonian language text
eu Basque Basque language Category:Articles containing Basque language text
fa Persian Persian language Category:Articles containing Persian language text
ff Fulah Fulah language Category:Articles containing Fulah language text
fi Finnish Finnish language Category:Articles containing Finnish language text
fj Fijian Fijian language Category:Articles containing Fijian language text
fo Faroese Faroese language Category:Articles containing Faroese language text
fr French French language Category:Articles containing French language text
fy Western Frisian Western Frisian language Category:Articles containing Western Frisian language text
ga Irish Irish language Category:Articles containing Irish language text
gd Scottish Gaelic Scottish Gaelic language Category:Articles containing Scottish Gaelic language text
gl Galician Galician language Category:Articles containing Galician language text
gn Guarani Guarani language Category:Articles containing Guarani language text
gu Gujarati Gujarati language Category:Articles containing Gujarati language text
gv Manx Manx language Category:Articles containing Manx language text
ha Hausa Hausa language Category:Articles containing Hausa language text
he Hebrew Hebrew language Category:Articles containing Hebrew language text
hi Hindi Hindi language Category:Articles containing Hindi language text
ho Hiri Motu Hiri Motu language Category:Articles containing Hiri Motu language text
hr Croatian Croatian language Category:Articles containing Croatian language text
ht Haitian Creole Haitian Creole language Category:Articles containing Haitian Creole language text
hu Hungarian Hungarian language Category:Articles containing Hungarian language text
hy Armenian Armenian language Category:Articles containing Armenian language text
hz Herero Herero language Category:Articles containing Herero language text
ia Interlingua Interlingua language Category:Articles containing Interlingua language text
id Indonesian Indonesian language Category:Articles containing Indonesian language text
ie Interlingue Interlingue language Category:Articles containing Interlingue language text
ig Igbo Igbo language Category:Articles containing Igbo language text
ii Sichuan Yi Sichuan Yi language Category:Articles containing Sichuan Yi language text
ik Inupiaq Inupiaq language Category:Articles containing Inupiaq language text
io Ido Ido language Category:Articles containing Ido language text
is Icelandic Icelandic language Category:Articles containing Icelandic language text
it Italian Italian language Category:Articles containing Italian language text
iu Inuktitut Inuktitut language Category:Articles containing Inuktitut language text
ja Japanese Japanese language Category:Articles containing Japanese language text
jv Javanese Javanese language Category:Articles containing Javanese language text
ka Georgian Georgian language Category:Articles containing Georgian language text
kg Kongo Kongo language Category:Articles containing Kongo language text
ki Kikuyu Kikuyu language Category:Articles containing Kikuyu language text
kj Kuanyama Kuanyama language Category:Articles containing Kuanyama language text
kk Kazakh Kazakh language Category:Articles containing Kazakh language text
kl Kalaallisut Kalaallisut language Category:Articles containing Kalaallisut language text
km khm Khmer Khmer language Category:Articles containing Khmer language text
kn Kannada Kannada language Category:Articles containing Kannada language text
ko Korean Korean language Category:Articles containing Korean language text
kr Kanuri Kanuri language Category:Articles containing Kanuri language text
ks Kashmiri Kashmiri language Category:Articles containing Kashmiri language text
ku Kurdish Kurdish language Category:Articles containing Kurdish language text
kv Komi Komi language Category:Articles containing Komi language text
kw Cornish Cornish language Category:Articles containing Cornish language text
ky Kirghiz Kirghiz language Category:Articles containing Kirghiz language text
la Latin Latin language Category:Articles containing Latin language text
lb Luxembourgish Luxembourgish language Category:Articles containing Luxembourgish language text
lg Ganda Ganda language Category:Articles containing Ganda language text
li Limburgan Limburgan language Category:Articles containing Limburgan language text
ln Lingala Lingala language Category:Articles containing Lingala language text
lo Lao Lao language Category:Articles containing Lao language text
lt Lithuanian Lithuanian language Category:Articles containing Lithuanian language text
lu Luba-Katanga Luba-Katanga language Category:Articles containing Luba-Katanga language text
lv Latvian Latvian language Category:Articles containing Latvian language text
mg Malagasy Malagasy language Category:Articles containing Malagasy language text
mh Marshallese Marshallese language Category:Articles containing Marshallese language text
mi Maori Maori language Category:Articles containing Maori language text
mk Macedonian Macedonian language Category:Articles containing Macedonian language text
ml Malayalam Malayalam language Category:Articles containing Malayalam language text
mn Mongolian Mongolian language Category:Articles containing Mongolian language text
mr Marathi Marathi language Category:Articles containing Marathi language text
ms msa may Malay Malay language Category:Articles containing Malay language text
mt Maltese Maltese language Category:Articles containing Maltese language text
my Burmese Burmese language Category:Articles containing Burmese language text
na Nauru Nauru language Category:Articles containing Nauru language text
nb Norwegian Bokmål Norwegian Bokmål language Category:Articles containing Norwegian Bokmål language text
nd North Ndebele North Ndebele language Category:Articles containing North Ndebele language text
ne nep Nepali Nepali language Category:Articles containing Nepali language text
ng Ndonga Ndonga language Category:Articles containing Ndonga language text
nl Dutch Dutch language Category:Articles containing Dutch language text
nn Norwegian Nynorsk Norwegian Nynorsk language Category:Articles containing Norwegian Nynorsk language text
no Norwegian Norwegian language Category:Articles containing Norwegian language text
nr South Ndebele South Ndebele language Category:Articles containing South Ndebele language text
nv Navajo Navajo language Category:Articles containing Navajo language text
ny Nyanja Nyanja language Category:Articles containing Nyanja language text
oc Occitan Occitan language Category:Articles containing Occitan language text
oj Ojibwa Ojibwa language Category:Articles containing Ojibwa language text
om Oromo Oromo language Category:Articles containing Oromo language text
or ori Oriya Oriya language Category:Articles containing Oriya language text
os Ossetian Ossetian language Category:Articles containing Ossetian language text
pa Panjabi Panjabi language Category:Articles containing Panjabi language text
pi Pali Pali language Category:Articles containing Pali language text
pl Polish Polish language Category:Articles containing Polish language text
ps Pushto Pushto language Category:Articles containing Pushto language text
pt Portuguese Portuguese language Category:Articles containing Portuguese language text
qu Quechua Quechua language Category:Articles containing Quechua language text
rm Romansh Romansh language Category:Articles containing Romansh language text
rn Rundi Rundi language Category:Articles containing Rundi language text
ro Romanian Romanian language Category:Articles containing Romanian language text
ru Russian Russian language Category:Articles containing Russian language text
rw Kinyarwanda Kinyarwanda language Category:Articles containing Kinyarwanda language text
sa Sanskrit Sanskrit language Category:Articles containing Sanskrit language text
sc Sardinian Sardinian language Category:Articles containing Sardinian language text
sd Sindhi Sindhi language Category:Articles containing Sindhi language text
se Northern Sami Northern Sami language Category:Articles containing Northern Sami language text
sg Sango Sango language Category:Articles containing Sango language text
sh [b] Serbo-Croatian Serbo-Croatian language Category:Articles containing Serbo-Croatian language text
si Sinhala Sinhala language Category:Articles containing Sinhala language text
sk Slovak Slovak language Category:Articles containing Slovak language text
sl Slovenian Slovenian language Category:Articles containing Slovenian language text
sm Samoan Samoan language Category:Articles containing Samoan language text
sn Shona Shona language Category:Articles containing Shona language text
so Somali Somali language Category:Articles containing Somali language text
sq Albanian Albanian language Category:Articles containing Albanian language text
sr Serbian Serbian language Category:Articles containing Serbian language text
ss Swati Swati language Category:Articles containing Swati language text
st sot Sotho Sotho language Category:Articles containing Sotho language text
su Sundanese Sundanese language Category:Articles containing Sundanese language text
sv Swedish Swedish language Category:Articles containing Swedish language text
sw swa Swahili Swahili language Category:Articles containing Swahili language text
ta Tamil Tamil language Category:Articles containing Tamil language text
te Telugu Telugu language Category:Articles containing Telugu language text
tg Tajik Tajik language Category:Articles containing Tajik language text
th Thai Thai language Category:Articles containing Thai language text
ti Tigrinya Tigrinya language Category:Articles containing Tigrinya language text
tk Turkmen Turkmen language Category:Articles containing Turkmen language text
tl Tagalog Tagalog language Category:Articles containing Tagalog language text
tn Tswana Tswana language Category:Articles containing Tswana language text
to Tongan Tongan language Category:Articles containing Tongan language text
tr Turkish Turkish language Category:Articles containing Turkish language text
ts Tsonga Tsonga language Category:Articles containing Tsonga language text
tt Tatar Tatar language Category:Articles containing Tatar language text
tw Twi Twi language Category:Articles containing Twi language text
ty Tahitian Tahitian language Category:Articles containing Tahitian language text
ug Uighur Uighur language Category:Articles containing Uighur language text
uk Ukrainian Ukrainian language Category:Articles containing Ukrainian language text
ur Urdu Urdu language Category:Articles containing Urdu language text
uz Uzbek Uzbek language Category:Articles containing Uzbek language text
ve Venda Venda language Category:Articles containing Venda language text
vi Vietnamese Vietnamese language Category:Articles containing Vietnamese language text
vo Volapük Volapük language Category:Articles containing Volapük language text
wa Walloon Walloon language Category:Articles containing Walloon language text
wo Wolof Wolof language Category:Articles containing Wolof language text
xh Xhosa Xhosa language Category:Articles containing Xhosa language text
yi Yiddish Yiddish language Category:Articles containing Yiddish language text
yo Yoruba Yoruba language Category:Articles containing Yoruba language text
za Zhuang Zhuang language Category:Articles containing Zhuang language text
zh Chinese Chinese language Category:Articles containing Chinese language text
zu Zulu Zulu language Category:Articles containing Zulu language text
  1. ^ There are only 20 ISO 639-2B codes.
  2. ^ a b Code not assigned.
  • {{ISO 639 name|en}} gives English
  • {{ISO 639 name|fr}} gives French

This template produces error messages. These messages are:

  • <code> is an IETF tagIETF language tags are not ISO 639 language codes. When these tags are encountered, the template attempts to render the correct language and also emits this error message
  • ISO 639-<part> code is required – where <part> is 1, 2, 3, 5; template was called without the required language code
  • <code> is not an ISO 639-<part> code – <code> fails simple length validation; 639 part 1, language codes are two characters, for 639 parts 2, 3, and 5, language codes are three characters
  • <code> not found in ISO 639-<part> list – <code> not found after searching ISO 639-<part> data

The module that does the work for this template has other functionality not supported by this template. See Module:ISO 639 name. Error messages related to that other functionality are:

  • language name required – module function iso_639_name_to_code() only – this message emitted when a language name is not provided in the {{#invoke:}}
  • <part> not an ISO 639 part – module functions iso_639_name_to_code() and iso_639() only – this message emitted when <part> is not one of 1, 2, 3, or 5
  • language code or name required – module function iso_639() only – this message emitted when a language name or a language code is not provided in the {{#invoke:}}

Tracking categories

සංස්කරණය


"https://si.wikipedia.org/w/index.php?title=සැකිල්ල:ISO_639_name/ලේඛය&oldid=573438" වෙතින් සම්ප්‍රවේශනය කෙරිණි