پودمان:Redirect and target

توضیحات پودمان[ایجاد] [پاکسازی]
local getTarget = require('Module:Redirect').getTarget
local p = {}

function p.line(frame)
	local pageTitle = frame.args[1]
	local target = getTarget(pageTitle)
	if target then
   	        return mw.ustring.format('[[%s]] ← [[%s]]', pageTitle, target)
	end
	return mw.ustring.format('[[%s]] تغییرمسیر نیست', pageTitle)
end

return p