Module:Redirect: Difference between revisions
Temporarily breaking it -- it returned "2"!
(Problem is, the manual doesn't say whether () is after : or . Should remember ...) |
(Temporarily breaking it -- it returned "2"!) |
||
Line 15: | Line 15: | ||
-- if rpage.fileExists then | -- if rpage.fileExists then | ||
if rpage.isRedirect then | if rpage.isRedirect then | ||
return | return rpage.getContent(rpage) | ||
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 |