Module:Format link: Difference between revisions
Content added Content deleted
(Replaced broken use of makeWikitextError from Module:Hatnote) |
(Hotfix: disregard interwiki links as "not existing" for "missing target" categorization) |
||
Line 149: | Line 149: | ||
--Test if page exists if a diagnostic category is specified |
--Test if page exists if a diagnostic category is specified |
||
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) |
|||
if title.isLocal and (not title.exists) then |
|||
category = mw.ustring.format('[[Category:%s]]', catMissing) |
category = mw.ustring.format('[[Category:%s]]', catMissing) |
||
end |
end |