Interested Article - Is redirect

Документация

Реализация шаблона {{ is redirect }} .

См. также

local p = {}

function p.main(frame)
	--local getArgs = require('Модуль:Arguments').getArgs
	--local args = getArgs(frame, {trim = false, removeBlanks = false})
	local args = frame:getParent().args
	local title = mw.title.new(args[1])
	isRedirect = title.isRedirect
	return isRedirect and 'yes' or ''
end

return p
Источник —

Same as Is redirect