Module:Param Parse: Difference between revisions

no edit summary
No edit summary
No edit summary
Tag: Reverted
Line 62:
}
 
-- Standardized image function
function parse.image_func(img)
if img and string.match(img, '^[%[%[]File:.*[%]%]]$') then
return img
elseif img then
end
return string.format('[[File:%s|%s]]', img, parse.image.image_size)
return nil
end
return nil
end
function parse.image_smw(img)
Line 78 ⟶ 79:
smw_func = parse.image_smw,
empty = '[[Special:Upload|Please upload an image!]]',
image_size = '300px',
category_incomplete = 'Needs image',
}