local getTarget = require('Module:Redirect').getTargetlocal p =
function p.line(frame) local pageTitle = frame.args[1] local target = getTarget(pageTitle, true) if target then return string.format('%s → %s', pageTitle, target) end return string.format('%s is not a redirect', pageTitle)end
function p.report(frame) local pageTitle = frame.args[1] local target = getTarget(pageTitle, true) if target then return string.format('%s (R) → %s', pageTitle, target) end return string.format('%s', pageTitle)end
return p