Module:Redirect: Difference between revisions

arg.
(see which)
(arg.)
Line 8: Line 8:
   if parent then pargs = parent.args else pargs={} end
   if parent then pargs = parent.args else pargs={} end
   local rname=args[1] or pargs[1] or ""
   local rname=args[1] or pargs[1] or ""
   if redirect then
   if rname then
       if mw.ustring.gsub(redirect,"%s","") == "" then return "x" end
       if mw.ustring.gsub(rname,"%s","") == "" then return "" end
       else return "" end
       else return "" end
   local rpage=mw.title.new(rname)
   local rpage=mw.title.new(rname)
Anonymous user