Module:Param Parse: Difference between revisions

108 bytes added ,  Yesterday at 11:31
when checking if an image doesnt exist, will now not fail if the image link has no SMW data yet
(if the "image" parameter has a value but that does not lead to an existing image, then it will still add the page to Category:Needs image)
(when checking if an image doesnt exist, will now not fail if the image link has no SMW data yet)
Line 180:
size = '|x'..height..'px'
end
iflocal imagecheck = name and mw.smw.ask('[['..name..']]|?Modification date=data')[1].data==nil then
imagecheck = imagecheck~=nil and imagecheck[1]~=nil and imagecheck[1].data~=nil
return '[['..name..size..']][[Category:Needs image]]'
elseifif name and imagecheck then
return '[['..name..size..']]'
elseif name then
return '[['..name..size..']][[Category:Needs image]]'
end
return nil
20,856

edits