Module:Param Parse: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
mNo edit summary
mNo edit summary
Line 66: Line 66:
function parse.image_name(img)
function parse.image_name(img)
if img then
if img then
return string.match(img, '%[%[File:(.+%.%w%w%w)|?%d*x?%d*p?x?%]%]')
return string.match(img, '%[%[(File:.+%.%w%w%w)|?%d*x?%d*p?x?%]%]')
end
end
return nil
return nil