Module:Format link: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(Hotfix: disregard interwiki links as "not existing" for "missing target" categorization) |
(Tweak hotfix further to use isExternal instead of isLocal) |
||
Line 150: | Line 150: | ||
if catMissing and (mw.ustring.len(catMissing) > 0) then |
if catMissing and (mw.ustring.len(catMissing) > 0) then |
||
local title = mw.title.new(parsed.page) |
local title = mw.title.new(parsed.page) |
||
if title. |
if (not title.isExternal) and (not title.exists) then |
||
category = mw.ustring.format('[[Category:%s]]', catMissing) |
category = mw.ustring.format('[[Category:%s]]', catMissing) |
||
end |
end |