Module:Param Parse: Difference between revisions
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
imagecheck = imagecheck~=nil and imagecheck[1]~=nil and imagecheck[1].data~=nil
return '[['..name..size..']][[Category:Needs image]]'▼
return '[['..name..size..']]'
elseif name then
▲ return '[['..name..size..']][[Category:Needs image]]'
end
return nil
|