Module:Sprite: Difference between revisions
Don't try to use non-existent id data when cats aren't allowed |
Ignore empty links |
||
| Line 92: | Line 92: | ||
end | end | ||
local link = setting( 'link' ) | local link = setting( 'link' ) or '' | ||
if link and mw.ustring.lower( link ) ~= 'none' then | if link ~= '' and mw.ustring.lower( link ) ~= 'none' then | ||
-- External link | -- External link | ||
if link:find( '//' ) then | if link:find( '//' ) then | ||