Content deleted Content added
Adding fileargs= to allow images on the left. Minor efficiency improvement (skip text processing on File:... if this image not wanted) |
image bug fixes |
||
Line 12:
local function checkimage(image)
local page = mw.ustring.match(image, "([Ff]ile%s*:[^|%]]*)") -- File:(name) ...
or mw.ustring.match(image, "([Ii]mage%s*:
if not page then return nil end
Line 154:
files = files + 1
if options.fileflags and options.fileflags[files] then
local image = token
if options.fileargs then image = mw.ustring.gsub(image, "(%]%]%s*)$", "|" .. options.fileargs .. "%1") end
t = t ..
end
end
|