Module:Param Parse: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(Try to add image size support) |
mNo edit summary |
||
Line 78: | Line 78: | ||
function parse.image_width(img, default) |
function parse.image_width(img, default) |
||
if img then |
if img then |
||
return string.match(img, '[%[File:.+%.%w%w%w|(%d*)x?%d*px%]%]') or default |
return string.match(img, '%[%[File:.+%.%w%w%w|(%d*)x?%d*px%]%]') or default |
||
end |
end |
||
return default |
return default |