Module:PersonPage
From The Seven Sages of Rome
Documentation for this module may be created at Module:PersonPage/doc
local p = {}
function p.render(frame)
local args = frame:getParent().args
local canonicalName = args['Has Canonical Name']
if canonicalName and canonicalName ~= '' then
if frame.args['returnIsRedirect'] == '1' then
return '1' -- Return "true" for the flag check
end
return '#REDIRECT [[' .. canonicalName .. ']]' -- The actual redirect output
end
if frame.args['returnIsRedirect'] == '1' then
return '0' -- Return "false" if no redirect is needed
end
return '' -- Normal case: no redirect, no output here
end
return p