Module:Sandbox/Evad37/R Explained

local p =

p.r1 = function(frame) local page = frame.args[1] or 'WP:VPT' local title = mw.title.new(page) local redir = title.isRedirect return redir and 'true' or 'false'end

p.r2 = function(frame) local page = frame.args[1] or 'WP:VPT' local title = mw.title.new(page) local content = title:getContent local redir = (string.find(content, '#[Rr][Ee][Dd][Ii][Rr][Ee][Cc][Tt]')

1) return redir and 'true' or 'false'end

return p