Module:Infobox: Difference between revisions
No edit summary |
No edit summary |
||
Line 38: | Line 38: | ||
if imageTitle and imageTitle.exists then | if imageTitle and imageTitle.exists then | ||
image = '[[File:' .. title .. '.png|' .. size .. ']]' | image = '[[File:' .. title .. '.png|' .. size .. ']]' | ||
elseif mw.title.getCurrentTitle().namespace == 0 then | |||
image = '[[File:No image.svg|' .. size .. '|link=File:' .. title .. '.png|Upload this image]]' | |||
else | else | ||
image = '[[File:No image.svg|' .. size .. '|link= | image = '[[File:No image.svg|' .. size .. '|link=]]' | ||
end | end | ||
elseif image:match( ';' ) then | elseif image:match( ';' ) then |