Editing Module:Param Parse
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 156: | Line 156: | ||
function parse.image_name(img) |
function parse.image_name(img) |
||
if img then |
if img then |
||
return string.match(img, '%[%[ |
return string.match(img, '%[%[File:(.+%.%w%w%w)|?%d*x?%d*p?x?%]%]') |
||
end |
end |
||
return nil |
return nil |