Jump to content

Module:Redirect: Difference between revisions

one clear bug
(got function. Hmmm)
(one clear bug)
Line 15: Line 15:
       --  if rpage.fileExists then
       --  if rpage.fileExists then
             if rpage.isRedirect then
             if rpage.isRedirect then
               return (tostring(mw.ustring.find(rpage.getContent,"REDIRECT(.-)%[%[(.-)%]%]")) or [=[<span style="text-color:red;">[[Module:redirect]] error: failed to understand - [[]=] .. rname .. [=[]]</span]=])
               return (tostring(mw.ustring.find(tostring(rpage.getContent()),"REDIRECT(.-)%[%[(.-)%]%]")) or [=[<span style="text-color:red;">[[Module:redirect]] error: failed to understand - [[]=] .. rname .. [=[]]</span]=])
             else return rname -- not a redirect so leave the original text (for some general-purpose template use)
             else return rname -- not a redirect so leave the original text (for some general-purpose template use)
             end
             end
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.