Jump to content

टेम्पलेट:ISO 639 name link

विकिपीडिया से

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}}

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

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

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}}

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}}

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[नोट 1] ISO 639-3 Name Article
aa language Category:Articles containing -language text
ab Abkhaz Abkhaz language Category:Articles containing Abkhaz-language text
ae language Category:Articles containing -language text
af अफ्रीकान्स अफ्रीकान्स language Category:Articles containing अफ्रीकान्स-language text
ak language Category:Articles containing -language text
am language Category:Articles containing -language text
an Aragonese Aragonese language Category:Articles containing Aragonese-language text
ar language Category:Articles containing -language text
as असमिया असमिया language Category:Articles containing असमिया-language text
av language Category:Articles containing -language text
ay Aymara Aymara language Category:Articles containing Aymara-language text
az Azerbaijani Azerbaijani language Category:Articles containing Azerbaijani-language text
ba language Category:Articles containing -language text
be Belarusian Belarusian language Category:Articles containing Belarusian-language text
bg Bulgarian Bulgarian language Category:Articles containing Bulgarian-language text
bh bih [नोट 2] बिहारी बिहारी language Category:Articles containing बिहारी-language text
bi language Category:Articles containing -language text
bm language Category:Articles containing -language text
bn language Category:Articles containing -language text
bo तिब्बती तिब्बती language Category:Articles containing तिब्बती-language text
br language Category:Articles containing -language text
bs language Category:Articles containing -language text
ca कातलान कातलान language Category:Articles containing कातलान-language text
ce language Category:Articles containing -language text
ch language Category:Articles containing -language text
co language Category:Articles containing -language text
cr language Category:Articles containing -language text
cs चेक चेक language Category:Articles containing चेक-language text
cu language Category:Articles containing -language text
cv language Category:Articles containing -language text
cy Welsh Welsh language Category:Articles containing Welsh-language text
da डैनिश डैनिश language Category:Articles containing डैनिश-language text
de language Category:Articles containing -language text
dv Dhivehi Dhivehi language Category:Articles containing Dhivehi-language text
dz Dzongkha Dzongkha language Category:Articles containing Dzongkha-language text
ee language Category:Articles containing -language text
el ell gre Greek Greek language Category:Articles containing Greek-language text
en अंग्रेजी अंग्रेजी language Category:Articles containing अंग्रेजी-language text
eo एस्पेरैंतो एस्पेरैंतो language Category:Articles containing एस्पेरैंतो-language text
es स्पेनिश स्पेनिश language Category:Articles containing स्पेनिश-language text
et ईस्टोनियाई ईस्टोनियाई language Category:Articles containing ईस्टोनियाई-language text
eu Basque Basque language Category:Articles containing Basque-language text
fa फारसी फारसी language Category:Articles containing फारसी-language text
ff language Category:Articles containing -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 फ्रेंच फ्रेंच language Category:Articles containing फ्रेंच-language text
fy पच्छिमी फ्रायसियन पच्छिमी फ्रायसियन language Category:Articles containing पच्छिमी फ्रायसियन-language text
ga आयरिश आयरिश language Category:Articles containing आयरिश-language text
gd Scottish Gaelic Scottish Gaelic language Category:Articles containing Scottish Gaelic-language text
gl language Category:Articles containing -language text
gn language Category:Articles containing -language text
gu गुजराती गुजराती language Category:Articles containing गुजराती-language text
gv Manx Manx language Category:Articles containing Manx-language text
ha language Category:Articles containing -language text
he Hebrew Hebrew language Category:Articles containing Hebrew-language text
hi हिंदी हिंदी language Category:Articles containing हिंदी-language text
ho language Category:Articles containing -language text
hr Croatian Croatian language Category:Articles containing Croatian-language text
ht language Category:Articles containing -language text
hu हंगेरियाई हंगेरियाई language Category:Articles containing हंगेरियाई-language text
hy Armenian Armenian language Category:Articles containing Armenian-language text
hz language Category:Articles containing -language text
ia इंटरलिंग्वा इंटरलिंग्वा language Category:Articles containing इंटरलिंग्वा-language text
id Indonesian Indonesian language Category:Articles containing Indonesian-language text
ie language Category:Articles containing -language text
ig language Category:Articles containing -language text
ii language Category:Articles containing -language text
ik language Category:Articles containing -language text
io language Category:Articles containing -language text
is Icelandic Icelandic language Category:Articles containing Icelandic-language text
it इटैलियन इटैलियन language Category:Articles containing इटैलियन-language text
iu language Category:Articles containing -language text
ja जापानी जापानी language Category:Articles containing जापानी-language text
jv language Category:Articles containing -language text
ka Georgian Georgian language Category:Articles containing Georgian-language text
kg Kongo Kongo language Category:Articles containing Kongo-language text
ki language Category:Articles containing -language text
kj language Category:Articles containing -language text
kk Kazakh Kazakh language Category:Articles containing Kazakh-language text
kl language Category:Articles containing -language text
km khm Khmer Khmer language Category:Articles containing Khmer-language text
kn कन्नड़ कन्नड़ language Category:Articles containing कन्नड़-language text
ko कोरियाई कोरियाई language Category:Articles containing कोरियाई-language text
kr language Category:Articles containing -language text
ks कश्मीरी कश्मीरी language Category:Articles containing कश्मीरी-language text
ku language Category:Articles containing -language text
kv language Category:Articles containing -language text
kw Cornish Cornish language Category:Articles containing Cornish-language text
ky Kyrgyz Kyrgyz language Category:Articles containing Kyrgyz-language text
la Latin Latin language Category:Articles containing Latin-language text
lb Luxembourgish Luxembourgish language Category:Articles containing Luxembourgish-language text
lg language Category:Articles containing -language text
li लिंबर्गिश लिंबर्गिश language Category:Articles containing लिंबर्गिश-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 language Category:Articles containing -language text
mh language Category:Articles containing -language text
mi Māori Māori language Category:Articles containing Māori-language text
mk Macedonian Macedonian language Category:Articles containing Macedonian-language text
ml मलयालम मलयालम language Category:Articles containing मलयालम-language text
mn मंगोलियाई मंगोलियाई language Category:Articles containing मंगोलियाई-language text
mr मराठी मराठी language Category:Articles containing मराठी-language text
ms msa may मलय मलय language Category:Articles containing मलय-language text
mt Maltese Maltese language Category:Articles containing Maltese-language text
my Burmese Burmese language Category:Articles containing Burmese-language text
na language Category:Articles containing -language text
nb नॉर्वेजियाई बोकमाल नॉर्वेजियाई बोकमाल language Category:Articles containing नॉर्वेजियाई बोकमाल-language text
nd language Category:Articles containing -language text
ne nep नेपाली नेपाली language Category:Articles containing नेपाली-language text
ng language Category:Articles containing -language text
nl डच डच language Category:Articles containing डच-language text
nn Norwegian Nynorsk Norwegian Nynorsk language Category:Articles containing Norwegian Nynorsk-language text
no नार्वेजियन नार्वेजियन language Category:Articles containing नार्वेजियन-language text
nr दक्खिनी न्देबेली दक्खिनी न्देबेली language Category:Articles containing दक्खिनी न्देबेली-language text
nv language Category:Articles containing -language text
ny language Category:Articles containing -language text
oc ओसितन ओसितन language Category:Articles containing ओसितन-language text
oj language Category:Articles containing -language text
om language Category:Articles containing -language text
or ori ओडिया ओडिया language Category:Articles containing ओडिया-language text
os Ossetic Ossetic language Category:Articles containing Ossetic-language text
pa पंजाबी पंजाबी language Category:Articles containing पंजाबी-language text
pi पाली पाली language Category:Articles containing पाली-language text
pl Polish Polish language Category:Articles containing Polish-language text
ps पश्तो पश्तो language Category:Articles containing पश्तो-language text
pt पुर्तगाली पुर्तगाली language Category:Articles containing पुर्तगाली-language text
qu Quechua Quechua language Category:Articles containing Quechua-language text
rm Romansh Romansh language Category:Articles containing Romansh-language text
rn language Category:Articles containing -language text
ro Romanian Romanian language Category:Articles containing Romanian-language text
ru रूसी रूसी language Category:Articles containing रूसी-language text
rw language Category:Articles containing -language text
sa संस्कृत संस्कृत language Category:Articles containing संस्कृत-language text
sc language Category:Articles containing -language text
sd Sindhi Sindhi language Category:Articles containing Sindhi-language text
se language Category:Articles containing -language text
sg language Category:Articles containing -language text
sh [नोट 2] language Category:Articles containing -language text
si सिंघली सिंघली language Category:Articles containing सिंघली-language text
sk Slovak Slovak language Category:Articles containing Slovak-language text
sl Slovene Slovene language Category:Articles containing Slovene-language text
sm language Category:Articles containing -language text
sn language Category:Articles containing -language text
so language Category:Articles containing -language text
sq Albanian Albanian language Category:Articles containing Albanian-language text
sr Serbian Serbian language Category:Articles containing Serbian-language text
ss स्वाती स्वाती language Category:Articles containing स्वाती-language text
st sot सोथो सोथो language Category:Articles containing सोथो-language text
su language Category:Articles containing -language text
sv Swedish Swedish language Category:Articles containing Swedish-language text
sw swa Swahili Swahili language Category:Articles containing Swahili-language text
ta तमिल तमिल language Category:Articles containing तमिल-language text
te तेलुगु तेलुगु language Category:Articles containing तेलुगु-language text
tg ताजिक ताजिक language Category:Articles containing ताजिक-language text
th थाई थाई language Category:Articles containing थाई-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 त्स्वाना त्स्वाना language Category:Articles containing त्स्वाना-language text
to language Category:Articles containing -language text
tr Turkish Turkish language Category:Articles containing Turkish-language text
ts त्सोंगा त्सोंगा language Category:Articles containing त्सोंगा-language text
tt language Category:Articles containing -language text
tw language Category:Articles containing -language text
ty language Category:Articles containing -language text
ug language Category:Articles containing -language text
uk यूक्रेनियन यूक्रेनियन language Category:Articles containing यूक्रेनियन-language text
ur उर्दू उर्दू language Category:Articles containing उर्दू-language text
uz उज्बेकी उज्बेकी language Category:Articles containing उज्बेकी-language text
ve वेंदा वेंदा language Category:Articles containing वेंदा-language text
vi Vietnamese Vietnamese language Category:Articles containing Vietnamese-language text
vo language Category:Articles containing -language text
wa language Category:Articles containing -language text
wo language Category:Articles containing -language text
xh ख्होसा ख्होसा language Category:Articles containing ख्होसा-language text
yi यिद्दिश यिद्दिश language Category:Articles containing यिद्दिश-language text
yo language Category:Articles containing -language text
za language Category:Articles containing -language text
zh language Category:Articles containing -language text
zu ज़ुलु ज़ुलु language Category:Articles containing ज़ुलु-language text
  1. There are only 20 ISO 639-2B codes.
  2. 2.0 2.1 Code not assigned.
  • {{ISO 639 name|en}} gives अंग्रेजी
  • {{ISO 639 name|fr}} gives फ्रेंच

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

[संपादन करीं]