Revision as of 17:22, 14 March 2025 by Noeth(talk | contribs)(Created page with "local p = {} function p.redirect(frame) local target = frame.args[1] or frame:getParent().args[1] -- Basic validation if not target or target == '' then return 'No target page specified.' end -- Return the redirect with no extra whitespace return '#REDIRECT ' .. target .. '' end return p")
localp={}functionp.redirect(frame)localtarget=frame.args[1]orframe:getParent().args[1]-- Basic validationifnottargetortarget==''thenreturn'No target page specified.'end-- Return the redirect with no extra whitespacereturn'#REDIRECT [['..target..']]'endreturnp