An difríocht idir athruithe ar: "Module:Wikidata/labels"

Content deleted Content added
Eihe (plé | dréachtaí)
No edit summary
remove fixes for Catalan
Líne 1:
-- Tables with labels fixed for infoboxes.
-- Correccions d'etiquetes de forma adequada per a una infotaula (paràmetre label)
 
-- Fixes for case=infoboxlabel
local infoboxlabels = {
["príomhchathair"] = "baile",
Line 13 ⟶ 14:
}
 
-- Fixes for case=infoboxdata
-- Canvis en valors necessaris per a una infotaula (paràmetre data)
 
local infoboxdata = {
["Bach Werke Verzeichnis"] = "BWV",
Líne 44:
}
 
-- Support function used from Module:Wikidata/i18n for function claim with case=infoboxlabel
-- Codi de funcions de suport
 
local function fixInfoboxLabel(label)
local lang = mw.language.getContentLanguage()
Line 52 ⟶ 51:
label = infoboxlabels[label]
else
label = string.gsub(label, " de .+", "")
label = string.gsub(label, " dels? .+", "")
label = string.gsub(label, " d'.+", "")
label = string.gsub(label, " %(.+", "")
if label == 'estat' then
label = 'estat federat'
end
end