Anonymous user
Module:Format link: Difference between revisions
Avoid Lua erroring when we run out of expensive parser function calls
Vivaporius (talk | contribs) m (1 revision imported) |
en>Pppery (Avoid Lua erroring when we run out of expensive parser function calls) |
||
Line 168:
local title = nil
if parsed.page then title = mw.title.new(parsed.page) end
if title and (not title.isExternal
local success, exists = pcall(function() return title.exists end)
category = mw.ustring.format('[[Category:%s]]', catMissing)▼
if success and not exists then
▲ category = mw.ustring.format('[[Category:%s]]', catMissing)
end
end
end
|