Module:GetRedirectTarget

local p = {}

function p.getRedirectTarget( frame ) if frame == mw.getCurrentFrame then args = require( 'Module:ProcessArgs').norm else frame = mw.getCurrentFrame end return mw.title.new(args[1] or '').redirectTarget end return p