Dokumentation für das Modul Languages[Ansicht] [Bearbeiten] [Versionsgeschichte] [Aktualisieren]

Der Modul enthält Angaben zur Typumwandlung vom Wikidata qualifyer zum ISO-639-1-Sprachcode.

Versionsbezeichnung auf Wikidata: 2023-06-11 Ok!

Arrays

  • id2code – liefert den ISO 639-1-Code für einen Wikidata-Qualifier.
  • lngProps – liefert für einen ISO 639-1-Code ein Array mit Spracheigenschaften:
    • q: Language entity id
    • w: Writing entity id
    • c: Wikipedia edits in millions per 2018/7/1 as a measure of importance
  • scripts – liefert den englischen Schriftnamen für einen Wikidata-Qualifier.

Wartungskategorien

Wikidata SPARQL query at https://query.wikidata.org/

#Languages
SELECT ?code ?item ?itemLabel ?writing ?writingLabel ?directionLabel
WHERE 
{
 ?item wdt:P31 wd:Q34770 ;
       wdt:P218 ?code ;
       wdt:P282 ?writing .
 OPTIONAL {
  ?writing wdt:P1406 ?direction .
 }
 SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
ORDER BY ASC(?code)
LIMIT 300

Some languages were added manually.

Verwendung in anderen Modulen

Dieses Modul ist notwendig für die Ausführung folgender Module. Bei Anpassungen sollte die Funktionstüchtigkeit der folgenden Module geprüft werden. Benutze dazu auch diese Tracking-Kategorie um Fehler zu finden, die sich dann auf Artikel auswirken:

Hinweise
--[[
	Using ISO 639-1 code of the languages

	table indexes:
	q: Language entity id
	w: Writing entity id
	c: Wikipedia edits in millions per 2018/7/1 as a measure of importance
	   from https://de.wikipedia.org/wiki/Wikipedia:Sprachen
]]--

return {
	-- administration
	moduleInterface = {
		suite  = 'Languages',
		serial = '2023-06-11',
		item   = 65439949
	},

	id2code = {
		Q27811  = 'aa',
		Q5111   = 'ab',
		Q14196  = 'af',
		Q28026  = 'ak',
		Q28244  = 'am',
		Q8765   = 'an',
		Q13955  = 'ar',
		Q29401  = 'as',
		Q29561  = 'av',
		Q4627   = 'ay',
		Q9292   = 'az',
		Q13389  = 'ba',
		Q9091   = 'be',
		Q7918   = 'bg',
		Q35452  = 'bi',
		Q33243  = 'bm',
		Q9610   = 'bn',
		Q34271  = 'bo',
		Q12107  = 'br',
		Q9303   = 'bs',
		Q7026   = 'ca',
		Q33350  = 'ce',
		Q33262  = 'ch',
		Q33111  = 'co',
		Q33390  = 'cr',
		Q9056   = 'cs',
		Q33348  = 'cv',
		Q9309   = 'cy',
		Q9035   = 'da',
		Q188    = 'de',
		Q32656  = 'dv',
		Q33081  = 'dz',
		Q30005  = 'ee',
		Q36510  = 'el', -- Modern Greek
		Q9129   = 'el', -- Greek
		Q1860   = 'en',
		Q7979   = 'en-gb',
		Q7976   = 'en-us',
		Q143    = 'eo',
		Q1321   = 'es',
		Q9072   = 'et',
		Q8752   = 'eu',
		Q9168   = 'fa',
		Q33454  = 'ff',
		Q1412   = 'fi',
		Q33298  = 'fil',
		Q33295  = 'fj',
		Q25258  = 'fo',
		Q150    = 'fr',
		Q28224  = 'frr',
		Q27175  = 'fy',
		Q9142   = 'ga',
		Q9314   = 'gd',
		Q9307   = 'gl',
		Q35876  = 'gn',
		Q387066 = 'gsw',
		Q5137   = 'gu',
		Q12175  = 'gv',
		Q56475  = 'ha',
		Q9288   = 'he',
		Q1568   = 'hi',
		Q33617  = 'ho',
		Q6654   = 'hr',
		Q33491  = 'ht',
		Q9067   = 'hu',
		Q8785   = 'hy',
		Q33315  = 'hz',
		Q9240   = 'id',
		Q33578  = 'ig',
		Q34235  = 'ii',
		Q27183  = 'ik',
		Q294    = 'is',
		Q652    = 'it',
		Q29921  = 'iu',
		Q5287   = 'ja',
		Q33549  = 'jv',
		Q8108   = 'ka',
		Q33702  = 'kg',
		Q33587  = 'ki',
		Q1405077 = 'kj',
		Q9252   = 'kk',
		Q25355  = 'kl',
		Q9205   = 'km',
		Q33673  = 'kn',
		Q9176   = 'ko',
		Q36094  = 'kr',
		Q33552  = 'ks',
		Q36368  = 'ku',
		Q36126  = 'kv',
		Q25289  = 'kw',
		Q9255   = 'ky',
		Q9051   = 'lb',
		Q33368  = 'lg',
		Q102172 = 'li',
		Q36217  = 'ln',
		Q9211   = 'lo',
		Q9083   = 'lt',
		Q36157  = 'lu',
		Q9078   = 'lv',
		Q7930   = 'mg',
		Q36280  = 'mh',
		Q36451  = 'mi',
		Q9296   = 'mk',
		Q36236  = 'ml',
		Q9246   = 'mn',
		Q36392  = 'mo',
		Q1571   = 'mr',
		Q9237   = 'ms',
		Q9166   = 'mt',
		Q20923490 = 'mul',
		Q9228   = 'my',
		Q13307  = 'na',
		Q25167  = 'nb',
		Q35613  = 'nd',
		Q33823  = 'ne',
		Q33900  = 'ng',
		Q33790  = 'niu',
		Q7411   = 'nl',
		Q25164  = 'nn',
		Q9043   = 'no',
		Q36785  = 'nr',
		Q33273  = 'ny',
		Q14185  = 'oc',
		Q33875  = 'oj',
		Q33864  = 'om',
		Q33810  = 'or',
		Q33968  = 'os',
		Q58635  = 'pa',
		Q36727  = 'pi',
		Q809    = 'pl',
		Q58680  = 'ps',
		Q5146   = 'pt',
		Q13199  = 'rm',
		Q33583  = 'rn',
		Q7913   = 'ro',
		Q7737   = 'ru',
		Q33573  = 'rw',
		Q11059  = 'sa',
		Q33976  = 'sc',
		Q33997  = 'sd',
		Q33947  = 'se',
		Q33954  = 'sg',
		Q13267  = 'si',
		Q9058   = 'sk',
		Q9063   = 'sl',
		Q34011  = 'sm',
		Q34004  = 'sn',
		Q13275  = 'so',
		Q8748   = 'sq',
		Q9299   = 'sr',
		Q8821   = 'sr-me',
		Q34014  = 'ss',
		Q34340  = 'st',
		Q34002  = 'su',
		Q9027   = 'sv',
		Q7838   = 'sw',
		Q5885   = 'ta',
		Q8097   = 'te',
		Q9260   = 'tg',
		Q9217   = 'th',
		Q34124  = 'ti',
		Q9267   = 'tk',
		Q34097  = 'tkl',
		Q34057  = 'tl',
		Q34137  = 'tn',
		Q34094  = 'to',
		Q256    = 'tr',
		Q34327  = 'ts',
		Q25285  = 'tt',
		Q34055  = 'tvl',
		Q36850  = 'tw',
		Q34128  = 'ty',
		Q13263  = 'ug',
		Q8798   = 'uk',
		Q1617   = 'ur',
		Q9264   = 'uz',
		Q32704  = 've',
		Q9199   = 'vi',
		Q34219  = 'wa',
		Q34257  = 'wo',
		Q13218  = 'xh',
		Q8641   = 'yi',
		Q34311  = 'yo',
		Q13216  = 'za',
		Q7850   = 'zh', -- Chinese
		Q727694 = 'zh', -- Standard Chinese
		Q10179  = 'zu'
	},

	scripts = {
		Q8196    = 'Arabic alphabet',
		Q8201    = 'Chinese characters',
		Q8209    = 'Cyrillic script',
		Q8216    = 'Greek alphabet',
		Q8222    = 'Hangul',
		Q8229    = 'Latin script',
		Q11932   = 'Armenian alphabet',
		Q26803   = 'Tamil script',
		Q33513   = 'Hebrew alphabet',
		Q38592   = 'Devanagari',
		Q46861   = 'Tibetan alphabet',
		Q82772   = 'Kanji',
		Q161428  = 'Georgian alphabet',
		Q185083  = 'Brahmi script',
		Q191272  = 'Assamese alphabet',
		Q236376  = 'Thai alphabet',
		Q257634  = "Ge'ez script",
		Q570450  = 'Telugu script',
		Q733944  = 'Gujarati alphabet',
		Q756802  = 'Bengali alphabet',
		Q839666  = 'Kannada alphabet',
		Q854968  = 'Burmese alphabet',
		Q877906  = 'Thaana',
		Q1054190 = 'Khmer alphabet',
		Q1164129 = 'Malayalam script',
		Q1197646 = 'Yi script',
		Q1574992 = 'Sinhala script',
		Q1760127 = 'Odia alphabet',
		Q1815229 = 'Lao alphabet',
		Q2274646 = 'Inuktitut syllabics',
	},

	lngProps = {
		aa = { q = 'Q27811', w = 'Q8229' },
		ab = { q = 'Q5111', w = 'Q8209' },
		af = { q = 'Q14196', w = 'Q8229' },
		ak = { q = 'Q28026', w = 'Q8229' },
		am = { q = 'Q28244', w = 'Q257634' },
		an = { q = 'Q8765', w = 'Q8229' },
		ar = { q = 'Q13955', w = 'Q8196', c = 29 },
		as = { q = 'Q29401', w = 'Q191272' },
		av = { q = 'Q29561', w = 'Q8209' },
		ay = { q = 'Q4627', w = 'Q8229' },
		az = { q = 'Q9292', w = 'Q8229' },
		ba = { q = 'Q13389', w = 'Q8209' },
		be = { q = 'Q9091', w = 'Q8209' },
		bg = { q = 'Q7918', w = 'Q8209' },
		bi = { q = 'Q35452', w = 'Q8229' },
		bm = { q = 'Q33243', w = 'Q8229' },
		bn = { q = 'Q9610', w = 'Q756802' },
		bo = { q = 'Q34271', w = 'Q46861' },
		br = { q = 'Q12107', w = 'Q8229' },
		bs = { q = 'Q9303', w = 'Q8229' },
		ca = { q = 'Q7026', w = 'Q8229', c = 20 },
		ce = { q = 'Q33350', w = 'Q8209' },
		ch = { q = 'Q33262', w = 'Q8229' },
		co = { q = 'Q33111', w = 'Q8229' },
		cr = { q = 'Q33390', w = 'Q8229' },
		cs = { q = 'Q9056', w = 'Q8229' },
		cv = { q = 'Q33348', w = 'Q8209' },
		cy = { q = 'Q9309', w = 'Q8229' },
		da = { q = 'Q9035', w = 'Q8229' },
		de = { q = 'Q188', w = 'Q8229', c = 178 },
		dv = { q = 'Q32656', w = 'Q877906' },
		dz = { q = 'Q33081', w = 'Q46861' },
		ee = { q = 'Q30005', w = 'Q8229' },
		el = { q = 'Q9129', w = 'Q8216' },
		en = { q = 'Q1860', w = 'Q8229', c = 844 },
		['en-gb'] = { q = 'Q7979', w = 'Q8229' },
		['en-us'] = { q = 'Q7976', w = 'Q8229' },
		eo = { q = 'Q143', w = 'Q8229', c = 1 },
		es = { q = 'Q1321', w = 'Q8229', c = 109 },
		et = { q = 'Q9072', w = 'Q8229' },
		eu = { q = 'Q8752', w = 'Q8229' },
		fa = { q = 'Q9168', w = 'Q8196', c = 24 },
		ff = { q = 'Q33454', w = 'Q8229' },
		fi = { q = 'Q1412', w = 'Q8229' },
		fil = { q = 'Q33298', w = 'Q8229' },
		fj = { q = 'Q33295', w = 'Q8229' },
		fo = { q = 'Q25258', w = 'Q8229' },
		fr = { q = 'Q150', w = 'Q8229', c = 150 },
		frr = { q = 'Q28224', w = 'Q8229' },
		fy = { q = 'Q27175', w = 'Q8229' },
		ga = { q = 'Q9142', w = 'Q8229' },
		gd = { q = 'Q9314', w = 'Q8229' },
		gl = { q = 'Q9307', w = 'Q8229' },
		gn = { q = 'Q35876', w = 'Q8229' },
		gsw = { q = 'Q387066', w = 'Q8229' },
		gu = { q = 'Q5137', w = 'Q733944' },
		gv = { q = 'Q12175', w = 'Q8229' },
		ha = { q = 'Q56475', w = 'Q8229' },
		he = { q = 'Q9288', w = 'Q33513' },
		hi = { q = 'Q1568', w = 'Q38592' },
		ho = { q = 'Q33617', w = 'Q8229' },
		hr = { q = 'Q6654', w = 'Q8229' },
		ht = { q = 'Q33491', w = 'Q8229' },
		hu = { q = 'Q9067', w = 'Q8229' },
		hy = { q = 'Q8785', w = 'Q11932' },
		hz = { q = 'Q33315', w = 'Q8229' },
		id = { q = 'Q9240', w = 'Q8229' },
		ig = { q = 'Q33578', w = 'Q8229' },
		ii = { q = 'Q34235', w = 'Q1197646' },
		ik = { q = 'Q27183', w = 'Q8229' },
		is = { q = 'Q294', w = 'Q8229' },
		it = { q = 'Q652', w = 'Q8229', c = 98 },
		iu = { q = 'Q29921', w = 'Q2274646' },
		ja = { q = 'Q5287', w = 'Q82772', c = 69 },
		jv = { q = 'Q33549', w = 'Q8229' },
		ka = { q = 'Q8108', w = 'Q161428' },
		kg = { q = 'Q33702', w = 'Q8229' },
		ki = { q = 'Q33587', w = 'Q8229' },
		kj = { q = 'Q1405077', w = 'Q8229' },
		kk = { q = 'Q9252', w = 'Q8209' },
		kl = { q = 'Q25355', w = 'Q8229' },
		km = { q = 'Q9205', w = 'Q1054190' },
		kn = { q = 'Q33673', w = 'Q839666' },
		ko = { q = 'Q9176', w = 'Q8222' },
		kr = { q = 'Q36094', w = 'Q8229' },
		ks = { q = 'Q33552', w = 'Q38592' },
		ku = { q = 'Q36368', w = 'Q8229' },
		kv = { q = 'Q36126', w = 'Q8209' },
		kw = { q = 'Q25289', w = 'Q8229' },
		ky = { q = 'Q9255', w = 'Q8209' },
		lb = { q = 'Q9051', w = 'Q8229' },
		lg = { q = 'Q33368', w = 'Q8229' },
		li = { q = 'Q102172', w = 'Q8229' },
		ln = { q = 'Q36217', w = 'Q8229' },
		lo = { q = 'Q9211', w = 'Q1815229' },
		lt = { q = 'Q9083', w = 'Q8229' },
		lu = { q = 'Q36157', w = 'Q8229' },
		lv = { q = 'Q9078', w = 'Q8229' },
		mg = { q = 'Q7930', w = 'Q8229' },
		mh = { q = 'Q36280', w = 'Q8229' },
		mi = { q = 'Q36451', w = 'Q8229' },
		mk = { q = 'Q9296', w = 'Q8209' },
		ml = { q = 'Q36236', w = 'Q1164129' },
		mn = { q = 'Q9246', w = 'Q8209' },
		mo = { q = 'Q36392', w = 'Q8229' },
		mr = { q = 'Q1571', w = 'Q38592' },
		ms = { q = 'Q9237', w = 'Q8229' },
		mt = { q = 'Q9166', w = 'Q8229' },
		mul = { q = 'Q20923490', w = 'Q8229' },
		my = { q = 'Q9228', w = 'Q854968' },
		na = { q = 'Q13307', w = 'Q8229' },
		nb = { q = 'Q25167', w = 'Q8229' },
		nd = { q = 'Q35613', w = 'Q8229' },
		ne = { q = 'Q33823', w = 'Q38592' },
		ng = { q = 'Q33900', w = 'Q8229' },
		niu = { q = 'Q33790', w = 'Q8229' },
		nl = { q = 'Q7411', w = 'Q8229', c = 52 },
		nn = { q = 'Q25164', w = 'Q8229' },
		no = { q = 'Q9043', w = 'Q8229' },
		nr = { q = 'Q36785', w = 'Q8229' },
		ny = { q = 'Q33273', w = 'Q8229' },
		oc = { q = 'Q14185', w = 'Q8229' },
		oj = { q = 'Q33875', w = 'Q8229' },
		om = { q = 'Q33864', w = 'Q8229' },
		['or'] = { q = 'Q33810', w = 'Q1760127' },
		['os'] = { q = 'Q33968', w = 'Q8209' },
		pa = { q = 'Q58635', w = 'Q38592' },
		pi = { q = 'Q36727', w = 'Q185083' },
		pl = { q = 'Q809', w = 'Q8229', c = 54 },
		ps = { q = 'Q58680', w = 'Q8196' },
		pt = { q = 'Q5146', w = 'Q8229', c = 52 },
		rm = { q = 'Q13199', w = 'Q8229' },
		rn = { q = 'Q33583', w = 'Q8229' },
		ro = { q = 'Q7913', w = 'Q8229' },
		ru = { q = 'Q7737', w = 'Q8209', c = 93 },
		rw = { q = 'Q33573', w = 'Q8229' },
		sa = { q = 'Q11059', w = 'Q38592' },
		sc = { q = 'Q33976', w = 'Q8229' },
		sd = { q = 'Q33997', w = 'Q8196' },
		se = { q = 'Q33947', w = 'Q8229' },
		sg = { q = 'Q33954', w = 'Q8229' },
		si = { q = 'Q13267', w = 'Q1574992' },
		sk = { q = 'Q9058', w = 'Q8229' },
		sl = { q = 'Q9063', w = 'Q8229' },
		sm = { q = 'Q34011', w = 'Q8229' },
		sn = { q = 'Q34004', w = 'Q8229' },
		so = { q = 'Q13275', w = 'Q8229' },
		sq = { q = 'Q8748', w = 'Q8229' },
		sr = { q = 'Q9299', w = 'Q8209', c = 21 },
		['sr-me'] = { q = 'Q8821', w = 'Q8209' },
		ss = { q = 'Q34014', w = 'Q8229' },
		st = { q = 'Q34340', w = 'Q8229' },
		su = { q = 'Q34002', w = 'Q8229' },
		sv = { q = 'Q9027', w = 'Q8229', c = 43 },
		sw = { q = 'Q7838', w = 'Q8229' },
		ta = { q = 'Q5885', w = 'Q26803' },
		te = { q = 'Q8097', w = 'Q570450' },
		tg = { q = 'Q9260', w = 'Q8209' },
		th = { q = 'Q9217', w = 'Q236376' },
		ti = { q = 'Q34124', w = 'Q257634' },
		tk = { q = 'Q9267', w = 'Q8229' },
		tkl = { q = 'Q34097', w = 'Q8229' },
		tl = { q = 'Q34057', w = 'Q8229' },
		tn = { q = 'Q34137', w = 'Q8229' },
		to = { q = 'Q34094', w = 'Q8229' },
		tr = { q = 'Q256', w = 'Q8229' },
		ts = { q = 'Q34327', w = 'Q8229' },
		tt = { q = 'Q25285', w = 'Q8209' },
		tvl = { q = 'Q34055', w = 'Q8229' },
		tw = { q = 'Q36850', w = 'Q8229' },
		ty = { q = 'Q34128', w = 'Q8229' },
		ug = { q = 'Q13263', w = 'Q8196' },
		uk = { q = 'Q8798', w = 'Q8209', c = 23 },
		ur = { q = 'Q1617', w = 'Q8196' },
		uz = { q = 'Q9264', w = 'Q8229' },
		ve = { q = 'Q32704', w = 'Q8229' },
		vi = { q = 'Q9199', w = 'Q8229', c = 41 },
		wa = { q = 'Q34219', w = 'Q8229' },
		wo = { q = 'Q34257', w = 'Q8229' },
		xh = { q = 'Q13218', w = 'Q33513' },
		yi = { q = 'Q8641', w = 'Q8229' },
		yo = { q = 'Q34311', w = 'Q8229' },
		za = { q = 'Q13216', w = 'Q8229' },
		zh = { q = 'Q7850', w = 'Q8201', c = 50 },
		zu = { q = 'Q10179', w = 'Q8229'}
	}
}