Module:Portal: Difference between revisions

Content deleted Content added
fix tracking logic
strip File: and Image: in image data files
Line 108:
end
s = mw.ustring.lower(s)
returnlocal image = matchImagePage(s) or matchImagePage(getAlias(s)) or defaultImage
image = mw.ustring.gsub(image,'^File:','') --- strip mistaken leading File: or Image:
image = mw.ustring.gsub(image,'^Image:','')
return image
end
 
local function exists(title)
local success, exists = pcall(function() return title.exists end)