Module:Dictionnaire Wikidata/Codes langue

Un livre de Wikilivres.
Sauter à la navigation Sauter à la recherche

La documentation pour ce module peut être créée à Module:Dictionnaire Wikidata/Codes langue/Documentation

-- correspondance élément Wikidata/code langue wikidata. Basé sur http://wdq.wmflabs.org/api?q=CLAIM[424]%20and%20claim[31:34770]4]

--[[ pour les mises à jour, sur un wikidata avec "arbitrary access
: si la liste est trop longue (timeouterror), faire en plusieurs fois
local wikidata = require('Module:Wikidata').formatStatements

function p.update(frame) 
	local s = ''
	local wikidata =require('Module:Wikidata')
	loca list == copiercoller ici
	for i, j in pairs(list) do 
		j =  tostring(j)
		local item = mw.wikibase.getEntityObject('Q' ..j)
		local val = wikidata._formatStatements{property = 'P424', item = item, lang='fr'} or '-'
		s = s .. '['.. j .. .. ']' " = '" .. val .. "',<br />"
	end
return s end
return p
]]--
return {
[150] = 'fr',
[188] = 'de',
[397] = 'la',
[652] = 'it',
[809] = 'pl',
[1321] = 'es',
[1568] = 'hi',
[1571] = 'mr',
[1617] = 'ur',
[1860] = 'en',
[5111] = 'ab',
[5137] = 'gu',
[5146] = 'pt',
[5287] = 'ja',
[5885] = 'ta',
[6654] = 'hr',
[7411] = 'nl',
[7737] = 'ru',
[7838] = 'sw',
[7913] = 'ro',
[7918] = 'bg',
[7930] = 'mg',
[8097] = 'te',
[8108] = 'ka',
[8641] = 'yi',
[8748] = 'sq',
[8752] = 'eu',
[8765] = 'an',
[8785] = 'hy',
[8798] = 'uk',
[9027] = 'sv',
[9035] = 'da',
[9043] = 'no',
[9051] = 'lb',
[9056] = 'cs',
[9058] = 'sk',
[9063] = 'sl',
[9067] = 'hu',
[9072] = 'et',
[9078] = 'lv',
[9083] = 'lt',
[9091] = 'be',
[9142] = 'ga',
[9166] = 'mt',
[9168] = 'fa',
[9176] = 'ko',
[9186] = 'zh-yue',
[9199] = 'vi',
[9205] = 'km',
[9211] = 'lo',
[9217] = 'th',
[9228] = 'my',
[9237] = 'ms',
[9240] = 'id',
[9246] = 'mn',
[9252] = 'kk',
[9255] = 'ky',
[9260] = 'tg',
[9264] = 'uz',
[9267] = 'tk',
[9288] = 'he',
[9292] = 'az',
[9296] = 'mk',
[9299] = 'sr',
[9301] = 'sh',
[9303] = 'bs',
[9307] = 'gl',
[9309] = 'cy',
[9314] = 'gd',
[9610] = 'bn',
[10179] = 'zu',
[12107] = 'br',
[12175] = 'gv',
[13198] = 'rcf',
[13199] = 'rm',
[13201] = 'rmy',
[13216] = 'za',
[13218] = 'xh',
[13238] = 'udm',
[13248] = 'hsb',
[13263] = 'ug',
[13267] = 'si',
[13275] = 'so',
[13286] = 'dsb',
[13300] = 'nah',
[13307] = 'na',
[13310] = 'nv',
[13324] = 'min',
[13330] = 'mwl',
[13343] = 'mdf',
[13356] = 'mzn',
[13359] = 'xmf',
[13389] = 'ba',
[14185] = 'oc',
[14196] = 'af',
[14549] = 'sco',
[15085] = 'pms',
[15087] = 'frp',
[21117] = 'esu',
[22711] = 'pdc',
[23014] = 'pfl',
[25258] = 'fo',
[25285] = 'tt',
[25289] = 'kw',
[25355] = 'kl',
[26245] = 'rue',
[27154] = 'stq',
[27175] = 'fy',
[27183] = 'ik',
[27683] = 'ace',
[27811] = 'aa',
[28026] = 'ak',
[28224] = 'frr',
[28244] = 'am',
[28602] = 'arc',
[29316] = 'roa-rup',
[29401] = 'as',
[29507] = 'ast',
[29561] = 'av',
[29921] = 'iu',
[29952] = 'myv',
[30005] = 'ee',
[30007] = 'ext',
[30319] = 'szl',
[31746] = 'lez',
[32656] = 'dv',
[32704] = 've',
[32724] = 'vec',
[32747] = 'vep',
[32762] = 'fiu-vro',
[32979] = 'cho',
[33025] = 'bej',
[33081] = 'dz',
[33111] = 'co',
[33120] = 'bxr',
[33190] = 'bug',
[33219] = 'map-bms',
[33239] = 'ceb',
[33243] = 'bm',
[33265] = 'chy',
[33268] = 'bh',
[33273] = 'ny',
[33281] = 'cbk-zam',
[33287] = 'gaa',
[33291] = 'fon',
[33295] = 'fj',
[33315] = 'hz',
[33348] = 'cv',
[33350] = 'ce',
[33357] = 'crh',
[33388] = 'chr',
[33390] = 'cr',
[33441] = 'fur',
[33454] = 'ff',
[33457] = 'gag',
[33475] = 'gan',
[33491] = 'ht',
[33549] = 'jv',
[33552] = 'ks',
[33569] = 'haw',
[33578] = 'ig',
[33617] = 'ho',
[33634] = 'xal',
[33657] = 'glk',
[33661] = 'mfe',
[33673] = 'kn',
[33690] = 'csb',
[33714] = 'krc',
[33720] = 'krj',
[33754] = 'lmo',
[33786] = 'sid',
[33810] = 'or',
[33823] = 'ne',
[33845] = 'nap',
[33850] = 'nrm',
[33856] = 'pap',
[33864] = 'om',
[33947] = 'se',
[33954] = 'sg',
[33968] = 'os',
[33973] = 'scn',
[33976] = 'sc',
[33979] = 'new',
[33989] = 'srn',
[33997] = 'sd',
[34002] = 'su',
[34004] = 'sn',
[34011] = 'sm',
[34015] = 'crs',
[34055] = 'tvl',
[34057] = 'tl',
[34094] = 'to',
[34119] = 'tyv',
[34125] = 'tet',
[34128] = 'ty',
[34137] = 'tn',
[34138] = 'tum',
[34147] = 'vls',
[34208] = 'wbl',
[34247] = 'yai',
[34257] = 'wo',
[34271] = 'bo',
[34279] = 'war',
[34290] = 'wuu',
[34311] = 'yo',
[34340] = 'st',
[35224] = 'io',
[35225] = 'peo',
[35452] = 'bi',
[35722] = 'got',
[35850] = 'ie',
[35853] = 'kab',
[35876] = 'gn',
[35934] = 'ia',
[35936] = 'ilo',
[35978] = 'hil',
[36094] = 'kr',
[36106] = 'lij',
[36126] = 'kv',
[36196] = 'lad',
[36212] = 'ltg',
[36217] = 'ln',
[36236] = 'ml',
[36280] = 'mh',
[36368] = 'ku',
[36451] = 'mi',
[36495] = 'zh-min-nan',
[36510] = 'el',
[36554] = 'pih',
[36727] = 'pi',
[36738] = 'nov',
[36811] = 'ckb',
[36850] = 'tw',
[36986] = 'vo',
[37059] = 'bpy',
[42365] = 'ang',
[46728] = 'hif',
[56475] = 'ha',
[58635] = 'pa',
[58680] = 'ps',
[102172] = 'li',
[146803] = 'lfn',
[213434] = 'bat-smg',
[237409] = 'zea',
[242648] = 'eml',
[516137] = 'nds-nl',
[523014] = 'mus',
[1389492] = 'pnb',
[1405077] = 'kj',
}