Module:Param Parse: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
(Fixing image functions) |
||
Line 52: | Line 52: | ||
-- Standardized image function |
-- Standardized image function |
||
function parse.image_func(img) |
function parse.image_func(img) |
||
if img and string.match(img, '[[File:. |
if img and string.match(img, '%[%[File:.*%]%]') then |
||
return img |
return img |
||
end |
end |
||
Line 58: | Line 58: | ||
end |
end |
||
function parse.image_smw(img) |
function parse.image_smw(img) |
||
return img and string.match(img, "File:. |
return img and string.match(img, "File:.*") or nil |
||
end |
end |
||
parse.image = { |
parse.image = { |