Module:Param Parse: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 15:
 
-- Standardized image function
parse.image = {
name = 'image',
func = parse.image,
smw_property = 'Image',
smw_func = parse.image_smw,
empty = '[[Special:Upload|Please upload an image!]]',
category_incomplete = 'Needs image'
function parse.image_func(img)
if img and img:find('%S') then
Line 32 ⟶ 24:
return img and string.match(img, "File:.-%.png") or nil
end
parse.image = {
name = 'image',
func = parse.imageimage_func,
smw_property = 'Image',
smw_func = parse.image_smw,
empty = '[[Special:Upload|Please upload an image!]]',
category_incomplete = 'Needs image'