Module:Redirect: Difference between revisions

Ah. Wrong function!
(found it)
(Ah. Wrong function!)
Line 15:
-- if rpage.fileExists then
if rpage.isRedirect then
return (tostring(mw.ustring.findmatch(tostring(rpage.getContent(rpage)),"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)
end
Anonymous user