Module:Format link: Difference between revisions
m Protected "Module:Format link" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) |
m 1 revision imported: some changes are needed ; like removing link to UTRS |
||
Line 168: | Line 168: | ||
local title = nil | local title = nil | ||
if parsed.page then title = mw.title.new(parsed.page) end | if parsed.page then title = mw.title.new(parsed.page) end | ||
if title and (not title.isExternal) | if title and (not title.isExternal) then | ||
local success, exists = pcall(function() return title.exists end) | |||
if success and not exists then | |||
category = mw.ustring.format('[[Category:%s]]', catMissing) | |||
end | |||
end | end | ||
end | end |