--[=[
	Tables with labels fixed for infoboxes. Keep the structure:

-- Fixes for function getLabel
local infoboxLabelsFromId = {
}

-- Fixes for case=infoboxlabel
local infoboxlabels = {
}

-- Fixes for case=infoboxdata
local infoboxdata = {
}

-- Support function used from Module:Wikidata/i18n for function claim with case=infoboxlabel
local function fixInfoboxLabel(label)
	return label
end

-- Support function used from Module:Wikidata/i18n for function claim with case=infoboxdata
local function fixInfoboxData(label)
	return label
end
]=]

-- Excepcions per a function getLabel

local infoboxLabelsFromId = {
	["P40"]   = "Fiołi",                -- text adjusted for infobox                 infobox: persona
	["P57"]   = "Diresion",             -- text adjusted for infobox                 infobox: pel·licula, organització,.. 
	["P69"]   = "Formasion",             -- text adjusted for infobox                 infobox: persona 
	["P97"]   = "Tìtoło",                -- text adjusted for infobox                 infobox: persona
	["P102"]  = "Partio",               -- text adjusted for infobox                 infobox: persona
	["P136"]  = "Zènare",               -- text adjusted for infobox                 infobox: organització
	["P138"]  = "Epònemo",               -- text adjusted for infobox                 infobox: all
	["P150"]  = "Detien ła sudivizion",  -- text adjusted for infobox                 infobox: geogr.política
	["P159"]  = "Sede",                  -- text adjusted for infobox                 infobox: lloc web
	["P161"]  = "Papers destacats",     -- text adjusted for infobox                 infobox: persona
	["P166"]  = "Premi",               -- text adjusted for infobox                 infobox: all
	["P181"]  = "Distribusion",
	["P186"]  = "Materiałe",             -- text adjusted for infobox                 infobox: indret
	["P412"]  = "Voze",                  -- text adjusted for infobox                 infobox: persona
	["P417"]  = "Patrono",            -- text adjusted for infobox                 infobox: geogr.política
	["P428"]  = "Scurs. botàniga",      -- text adjusted for infobox                 infobox: persona
	["P421"]  = "Fuzo oràrio",           -- text adjusted for infobox                 infobox: geogr.política
	["P571"]  = "Creasion",              -- text adjusted for infobox                 infobox: organització
	["P697"]  = "Exautor",              -- text adjusted for infobox                 infobox: ésser viu
	["P737"]  = "Influense",          -- text adjusted for infobox                 infobox: persona
	["P742"]  = "Altri nomi",          -- text adjusted for infobox                 infobox: all
	["P800"]  = "Òpare in rezalto",    -- text adjusted for infobox                 infobox: persona
	["P802"]  = "Scołaro",              -- text adjusted for infobox                 infobox: persona
	["P835"]  = "Scurs. zoołozia",      -- text adjusted for infobox                 infobox: persona
	["P856"] = "Ligo web",              -- text adjusted for infobox                 infobox: pel·lícula
	["P915"] = "Rodajo",               -- text adjusted for infobox                 infobox: pel·lícula
	["P921"] = "Tema",                  -- text adjusted for infobox                 infobox: pel·lícula
	["P1038"] = "Zenitori",              -- text adjusted for infobox                 infobox: persona
	["P1066"] = "Profesori",           -- text adjusted for infobox                 infobox: persona
	["P1120"] = "Morti",                -- text adjusted for infobox                 infobox: esdeveniment
	["P1135"] = "Stato",              -- text adjusted for infobox                 infobox: ésser viu
	["P1174"] = "Vizitanti anuałi",     -- text adjusted for infobox                 infobox: organització, edifici
	["P1191"] = "Estrena",              -- text adjusted for infobox                 infobox: pel·lícula
	["P1339"] = "Ferii",               -- text adjusted for infobox                 infobox: esdeveniments
	["P1411"] = "Nomenasion",          -- text adjusted for infobox                 infobox: pel·lícula
	["P1412"] = "Łéngua",              -- text adjusted for infobox                 infobox: all
	["P1420"] = "Sinònemi",             -- text adjusted for infobox                 infobox: ésser viu	
	["P1446"] = "Spario",         -- text adjusted for infobox                 infobox: esdeveniments
	["P1559"] = "Nome orizenałe",         -- text adjusted for infobox                 infobox: all
	["P1619"] = "Vertura",             -- text adjusted for infobox                 infobox: edifici
	["P1672"] = "Fonte de",              -- text adjusted for infobox                 infobox: ésser viu
	["P2044"] = "Altitùdene",              -- text adjusted for infobox                 infobox: indret, geogr.política
	["P2048"] = "Altura",               -- text adjusted for infobox                 infobox: persona
	["P2067"] = "Pezo",                  -- text adjusted for infobox                 infobox: persona
	["P2541"] = "Ànbito",                -- text adjusted for infobox                 infobox: publicació
	["P2257"] = "Frecuènsa",           -- text adjusted for infobox                 infobox: esdeveniment
	["P2635"] = "Parte",                -- text adjusted for infobox                 infobox: composició	
	["P2659"] = "Izołamento",            -- text adjusted for infobox                 infobox: indret	
	["P2852"] = "Tełèfono d'emerzensa", -- text adjusted for infobox                infobox: geogr.política
	["P2868"] = "Inte el roło",              -- text adjusted for infobox                 infobox: persona
	["P3373"] = "Fradełi",              -- text adjusted for infobox                 infobox: persona
	["P3712"] = "Fini",            -- text adjusted for infobox                 infobox: organització
	["P3999"] = "Saradura",             -- text adjusted for infobox                 infobox: edifici
	["P4647"] = "Senàrio",             -- text adjusted for infobox                 infobox: composició
	["P4628"] = "Zenoma",

	["Q7566"]     = "Zenitori",             -- en:parents                               infobox: persona
    ["Q929848"]   = "Movimenti",         -- en:movements                             infobox: composició
	["Q1921834"]  = "Caraterìsteghe",  -- en:characteristics                       infobox: all
	["Q130146"]   = "EMEA",              -- en:European Medicines Agency             infobox: fàrmac
	["Q204711"]   = "FDA",               -- en:Food and Drug Administration          infobox: fàrmac
	["Q215972"]   = "Protagonisti",     -- en:protagonist                           infobox: pel·licula
    ["Q959782"]   = "Escavasion",       -- en:(archeological) excavations           infobox: indret
    ["Q1207505"]  = "Dati e sifre",    -- en:quality                               infobox: pel·lícula
	["Q4745081"]  = "AHFS",    -- en:American Society of Health-System Pharmacists   infobox: fàrmac
	["Q7406919"]  = "Servisi",           -- en:services                              infobox: all
    ["Q29933828"] = "Ligo web",        -- text adjusted for infobox                infobox: lloc web
	["Q55579539"] = "Atività",         -- en:work period                           infobox: organització
    ["Q60313278"] = "Categoria:Voze de zeografia pulìtega sensa foto",  --       infobox: IGP
                            -- en:Category:Wikipedia requested photographs by administrative location

	["T0001"] = "ANUŁA'",             -- en:VOID                                   infobox: all
	["T0002"] = "ANUŁA'",             -- en:VOID                                   infobox: all
	["T0003"] = "ANUŁA'",             -- en:new position (no value in P39/P1365)   infobox: all
	["T0004"] = "ANUŁA'",             -- en:ended position (no value in P39/P1366) infobox: all
	["T0005"] = "ANUŁA'",             -- en:unknown date (as a property value)     infobox: all
	["T0006"] = "ANUŁA'",             -- en:VOID                                   infobox: all
	["T0007"] = "ANUŁA'",             -- en:discovery of body                      infobox: persona
	["T0008"] = "Conosesto da",        -- en:known by                               infobox: persona
	["T0009"] = "ANUŁA'",             -- en:remarkable ideas (philosophers, etc.)  infobox: persona
	["T0010"] = "ANUŁA'",             -- en:Period in service (military)           infobox: persona
	["T0011"] = "ANUŁA'",             -- en:end of worship (religion)         infobox: persona
	["T0012"] = "ANUŁA'",             -- en:disciples, followers (phil. relig, ..) infobox: persona
	["T0013"] = "ANUŁA'",             -- en:present team (sports)                  infobox: persona
	["T0014"] = "ANUŁA'",             -- en:professional withdrawn (sports)        infobox: persona
	["T0015"] = "Scołari notàbiłi",
	["T0016"] = "Altri scołari notàbiłi",
	["T0017"] = "Asesoramento acadèmego",
	["T0018"] = "Situasion zudisiałe",
	["T0019"] = "Enaltiment",
	["T0020"] = "Istòria e sełebrasion",
	["T0021"] = "Cuota inisiałe",         -- en:starting spot height (river, walk)     infobox: indret
	["T0022"] = "Cuota finałe",           -- en:ending spot height (river, walk)       infobox: indret
	["T0023"] = "Mari arente",        -- en:adjacent seas (each side of a strait)  infobox: indret
	["T0024"] = "Sità rivaresche",  -- en:riverside cities (of body of water)    infobox: indret
	["T0025"] = "Element vertebrador",  -- en:linking element (item and its environment) infobox: indret
	["T0026"] = "Sime prinsipałi destacats",       -- en:highlighted summits                    infobox: indret
	["T0027"] = "ANUŁA'",             -- en:starting spot height (river, walk)     infobox: indret
	["T0028"] = "ANUŁA'",             -- en:ending spot height (river, walk)       infobox: indret
	["T0029"] = "Sità pì arente",   -- en:nearest city                           infobox: indret
	["T0030"] = "Mezure e indegadori", -- en:measures and indicators (section)      infobox: indret
	["T0031"] = "Mezana de presipitasion", -- en:rainfall average                  infobox: indret
	["T0032"] = "Conzełamento",           -- en:freezing                               infobox: indret
	["T0033"] = "Tipo cascada",        -- en:Typus of waterfall (shape)             infobox: indret
	["T0034"] = "Altesa cascada",       -- en:Waterfall height (full falls)          infobox: indret
	["T0035"] = "Salto pì largo",       -- en:highlighted summits                    infobox: indret
	["T0036"] = "Dificultà",           -- en:difficulty (for tracks, climb,..)      infobox: indret
	["T0037"] = "Cultura/popoładori",    -- en:cultural/ethnic roots                  infobox: indret
	["T0038"] = "Tipo erusion",      -- en:kind of eruption (volcanic)            infobox: indret
	["T0039"] = "Ùltema erusion",       -- en:last eruption (volcanic)               infobox: indret
	["T0040"] = "Piste",               -- en:pistes (ski piste plural)              infobox: indret
	["T0041"] = "Rota normałe",          -- en:main itinerary (GR, trail, pathfoot)   infobox: indret
	["T0042"] = "Tape",               -- en:stages (GR, trail, pathfoot)           infobox: indret
	["T0043"] = "Ligo altri sentieri", -- en:link to other trails (GR, pathfoot)   infobox: indret
	["T0044"] = "Separasion mìnema",     -- en:minimum separation (straits),          infobox: indret
	["T0045"] = "Fuzion de", -- en:amalgamation (entity "E" originated by merging "A"+"B") infobox: organitzacio
	["T0046"] = "ANUŁA'",             -- en:Merge with (entity "E" merge with "A"+...)  infobox: organitzacio
	["T0047"] = "ANUŁA'",             -- en:reconstruction  (entity second creation)    infobox: organitzacio
	["T0048"] = "Redesołusion",         -- en:redissolved (to dissolve entity again)      infobox: organitzacio
	["T0049"] = "Tema",                -- en:thematic scope (library/museum area)        infobox: organitzacio
	["T0050"] = "ANUŁA'",             -- en:collections (museum specific collections)   infobox: organitzacio
	["T0051"] = "Tipo de documento",   -- en:type of documents (in archive or museum)    infobox: organitzacio
	["T0052"] = "ANUŁA'",             -- en:book loans by year (in library )            infobox: organitzacio
	["T0053"] = "ANUŁA'",             -- en:potential population (library, hospital,..) infobox: organitzacio
	["T0054"] = "ANUŁA'",             -- en:member (of the club/organitzation/society)  infobox: organitzacio
	["T0055"] = "Menbri pasai",    -- en:past members (music group/club/art school)  infobox: organitzacio
	["T0056"] = "ANUŁA'",             -- en:featured instruments (music group)         infobox: organitzacio
	["T0057"] = "ANUŁA'",             -- en:keyperson (within the organitzation)        infobox: organitzacio
	["T0058"] = "Menbri prinsipałi",    -- en:remarkable members                          infobox: organitzacio
	["T0059"] = "ANUŁA'",             -- en:cap de colla (chief of castells team)       infobox: organitzacio
	["T0060"] = "ANUŁA'",         -- en:Youth Party (political party youth branch)  infobox: organitzacio
	["T0061"] = "ANUŁA'",         -- en:allied organization                         infobox: organitzacio
	["T0062"] = "ANUŁA'",         -- en:rival organization                          infobox: organitzacio
	["T0063"] = "ANUŁA'",         -- en:remarkable figures (organitzation's indicators) infobox: organitzacio
	["T0064"] = "ANUŁA'",         -- en:Other information                           infobox: organitzacio, ICQ, Llibre
	["T0065"] = "ANUŁA'",         -- en:company estate (not the HQ, but the origin) infobox: organitzacio
	["T0066"] = "ANUŁA'"          -- en:type of organisation & management           infobox: organitzacio
}

-- Correccions d'etiquetes de forma adequada per a una infotaula (paràmetre label)
-- S'usa a function claim amb case=infoboxlabel

local infoboxlabels = {
	["capitałe"] = "sità",
	["comunità autònoma de ła Spagna"] = "autonomia",
	["distreto fransezo"] = "distreto",
	["stati federà todesco"] = "stato federà",
	["stato sovran"] = "stato",
	["reame del Commonwealth"] = "stato",
	["repùblega"] = "stato",
	["departemento de Fransa"] = "departemento",
	["divizion teritoriałe de Fransa"] = "teritòrio",
	["rejon de Fransa"] = "rejon",
	["arrondissement de ła Fransa"] = "arrondissement",
	["canton de Fransa"] = "canton",
	["zona de goerno locałe d'Austràlia"] = "goerno locałe",
	["stato dei Stati Unii"] = "stato federà",
}

-- Canvis en valors necessaris per a una infotaula (paràmetre data)

local infoboxdata = {
	["American Society of Health-System Pharmacists"] = "ASHP",
	["Bach Werke Verzeichnis"] = "BWV",
	["deslocamento stàndar"] = "stàndar",
	["deslocamento lejero"] = "lejero",
	["deslocamento màsimo"] = "màsimo",
	["tonatge de pes mort"] = "DWT",
	["Codi Internacional de Nomenclatura Zoològica"] = "CINZ",
	["Codi Internacional de Nomenclatura Botànica"] = "CINB",
	["Codi Internacional de Classificació i Nomenclatura de Virus"] = "CICNV",
	["Codi Internacional de Nomenclatura per a Plantes Cultivades"] = "CINPC",
	["Codi Internacional de Nomenclatura de Bacteris"] = "CINBa",
	["Codi Internacional de Nomenclatura Botànica (edició Viena)"] = "CINB (edision Viena)",
	["Codi Internacional de Nomenclatura Botànica (edició Tòquio)"] = "CINB (edision Tokio)",
	["Codi Internacional de Nomenclatura Botànica (edició Saint Louis)"] = "CINB (edision Saint Louis)",
	["International Code of Nomenclature for algae, fungi, and plants (edició Melbourne)"] = "CINB (edision Melbourne)",
	["gènere masculí"] = "masculin",
	["gènere femení"] = "femenin",
	["Microsoft Windows"] = "Windows",
	["Mòdul de comandament i servei Apollo"] = "CSM",
	["Mòdul lunar Apollo"] = "LM",
	["Berkeley Open Infrastructure for Network Computing"] = "BOINC",
	["decoło"] = "Nave de rivo",
	["aterajo"] = "Nave de tornada",
	["Advanced Packaging Tool"] = "APT",
	["GNU General Public License"] = "GNU GPL",
	["Common Development and Distribution License"] = "CDDL",
	["Associació de Tennistes Professionals"] = "ATP",
	["Unió Centreamericana de Futbol"] = "UNCAF",
	["Federació de futbol del sud-est d'Àsia"] = "AFF",
	["Federació de futbol de l'Oest d'Àsia"] = "WAFF",
	["eslora"] = "LOA",
	["eslora de flotació"] = "LWL",
	["Estació Espacial Internacional"] = "EEI",
	["Marina dels Estats Units d'Amèrica"] = "US Navy",
	["Kaiserliche und Königliche Kriegsmarine"] = "K.u.K. Marine",
	["escala d'huracans de Saffir-Simpson"] = "SSHS",
	["classificació de tifons JMA"] = "JAM",
	["classificació de ciclons IMD"] = "IMD",
	["classificació de ciclons MF"] = "MFR",
	["classificació de ciclons BOM/FMS"] = "BOM/FMS",
	["aterratge suau"] = "aterajo soft",
	["exploració de la superfície"] = "esplorasion",
	["Lluna"] = "la Luna",
	["desplaçament normal"] = "normale",
	["sota l'aigua"] = "in imersion",
	["comanda"] = "autorizà",
	["barrinar"] = "trapanà",
	["menor de"] = "prima de",
}

-- Codi de funcions de suport

local function fixInfoboxLabel(label)
	local lang = mw.language.getContentLanguage()
	label = lang:lcfirst(label)
	if infoboxlabels[label] then
		label = infoboxlabels[label]
	else
		label = string.gsub(label, " de .+", "")
		label = string.gsub(label, " dei? .+", "")
		label = string.gsub(label, " d'.+", "")
		label = string.gsub(label, " %(.+", "")
		if label == 'estat' then
			label = 'estat federat'
		end
	end
	return lang:ucfirst(label)
end

local function fixInfoboxLabel(label)
	local lang = mw.language.getContentLanguage()
	label = lang:lcfirst(label)
	if infoboxlabels[label] then
		label = infoboxlabels[label]
	else
		label = string.gsub(label, " de .+", "")
		label = string.gsub(label, " di .+", "")
		label = string.gsub(label, " dei? .+", "")
		label = string.gsub(label, " d'.+", "")
		label = string.gsub(label, " %(.+", "")
		if label == 'Sindaca' then
			label = 'Sìndica'
		end
	end
	return lang:ucfirst(label)
end

local function fixInfoboxLabel(label)
	local lang = mw.language.getContentLanguage()
	label = lang:lcfirst(label)
	if infoboxlabels[label] then
		label = infoboxlabels[label]
	else
		label = string.gsub(label, " de .+", "")
		label = string.gsub(label, " di .+", "")
		label = string.gsub(label, " dei? .+", "")
		label = string.gsub(label, " d'.+", "")
		label = string.gsub(label, " %(.+", "")
		if label == 'Sindaco' then
			label = 'Sìndico'
		end
	end
	return lang:ucfirst(label)
end

local function fixInfoboxLabel(label)
	local lang = mw.language.getContentLanguage('en')
	label = lang:lcfirst(label)
	if infoboxlabels[label] then
		label = infoboxlabels[label]
	else
		label = string.gsub(label, " of .+", "")
		label = string.gsub(label, " of? .+", "")
		label = string.gsub(label, " %(.+", "")
		if label == 'Mayor' then
			label = 'Sìndico'
		end
	end
	return lang:ucfirst(label)
end

local function fixInfoboxData(label)
	if infoboxdata[label] then
		label = infoboxdata[label]
	else
		label = string.gsub(label, "^[sS]tasion de ", "")
		label = string.gsub(label, "^[sS]tasion d'", "")
		label = string.gsub(label, "^[sS]tasion del ", "el ")
	end
	
	return label
end

local function fixInfoboxData(label)
	if infoboxdata[label] then
		label = infoboxdata[label]
	else
		label = string.gsub(label, "^[aA]ire d'attraction de ", "")
		label = string.gsub(label, "^[aA]ire d'attraction d'", "")
		label = string.gsub(label, "^[aA]ire d'attraction d\'", "")
		label = string.gsub(label, "^[aA]ire d'attraction del ", "el ")
	end
	
	return label
end

-- Return exported functions
return {
	infoboxLabelsFromId = infoboxLabelsFromId,
	fixInfoboxLabel = fixInfoboxLabel,
	fixInfoboxData = fixInfoboxData,
	}
Traesto fora da Wikipèdia - L'ençiclopedia łìbara e cołaboradiva in łéngua Vèneta "https://vec.wikipedia.org/w/index.php?title=Modulo:Wikidades/labels&oldid=1090245"