Module:Redirect: Difference between revisions

I'm mystified. Right name, same call as I've used before (double checked), so why isn't there a page? Maybe try the template
m (Another unlikely test)
(I'm mystified. Right name, same call as I've used before (double checked), so why isn't there a page? Maybe try the template)
Line 11:
local rpage=mw.title.new(rname)
local err=""
-- if rpage then -- avoid possibly expensive FileExists if we don't have anything
if rpage.id ~= 0 then
if rpage.fileExists then
Line 22:
else err="File not found (id=0): "
end
-- else err="File not found (mw.title.new failed)"
-- end
return [=[<span style="text-color:red;">[[Module:redirect]] error: ]=] .. err .. [=[ - [[]=] .. rname .. [=[]]</span>]=]
end
Anonymous user