Module:Redirect: Difference between revisions

From Roses, Tulips, & Liberty
Content added Content deleted
(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)
(Direct copy and paste from a call that presently works in ImportProtein)
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 page=mw.title.new("Module talk:ImportProtein/DefaultColors")
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