Module:Format link: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Avoid Lua erroring when we run out of expensive parser function calls
(incorrect entry point)
(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) and (not title.exists) then
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
0

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu