Content deleted Content added
rm temporary tracking category --- it has done its job, and adds unwanted alt to images |
cleanup/fix displayAll and imageDupes to remove stored image args |
||
Line 298:
local function
-- Returns an array containing all image subpages (minus aliases) as loaded by mw.loadData.
local images = {}
for i, subpage in ipairs{'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'other'} do
for portal, image in pairs(imageTable) do▼
local args = mw.text.split(image,"|")
images[portal] = args[1] -- just use image filename
end▼
end
return images
Line 312 ⟶ 316:
-- names are capitalized, so the portal links may be broken.
local lang = mw.language.getContentLanguage()
portals = portals or {}
for
▲ portals[count] = lang:ucfirst(portal)
▲ end
end
table.sort(portals)
args.redlinks = args.redlinks or "yes"
return p._portal(portals, args)
end
Line 327 ⟶ 330:
-- should be moved to a portal alias for ease of maintenance.
local exists, dupes = {}, {}
for
▲ for portal, image in pairs(imageTable) do
▲ exists[image] = portal
▲ else
▲ table.insert(dupes, string.format('The image "[[:File:%s|%s]]" is used for both portals "%s" and "%s".', image, image, exists[image], portal))
end
end
|