Module:Redirect: Difference between revisions
no edit summary
(DOUBLE duh dammit) |
No edit summary |
||
Line 24: | Line 24: | ||
-- if rpage.fileExists then | -- if rpage.fileExists then | ||
if rpage.isRedirect then | if rpage.isRedirect then | ||
return (bb.. tostring(mw.ustring.match(tostring(rpage.getContent(rpage)),"REDIRECT.-%[%[(.-)%]%]")) or [=[<span style="text-color:red;">[[Module:redirect]] error: failed to understand - [[]=] .. rname .. [=[]]</span]=] | return (bb.. tostring(mw.ustring.match(tostring(rpage.getContent(rpage)),"REDIRECT.-%[%[(.-)%]%]")..be) 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 |