Jump to content

Module:Redirect: Difference between revisions

m
hardcoding test
No edit summary
m (hardcoding test)
Line 9: Line 9:
   local rname=args[1] or pargs[1] or ""
   local rname=args[1] or pargs[1] or ""
   if redirect=="" then return "" end
   if redirect=="" then return "" end
   local rpage=mw.title.new(rname)
   local rpage=mw.title.new("Wikipedia:AFC")
   local err=""
   local err=""
   if rpage then -- avoid possibly expensive FileExists if we don't have anything
   if rpage then -- avoid possibly expensive FileExists if we don't have anything
Line 24: Line 24:
   else err="File not found (mw.title.new failed)"
   else err="File not found (mw.title.new failed)"
   end
   end
   return [=[<span style="text-color:red;">[[Module:redirect]] error: ]=] .. err .. [=[ - [[]=] .. rname .. [=[]]</span]=]
   return [=[<span style="text-color:red;">[[Module:redirect]] error: ]=] .. err .. [=[ - [[]=] .. rname .. [=[]]</span>]=]
end
end


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