Module:RfD: Difference between revisions

Content deleted Content added
Jackmcbarn (talk | contribs)
handle unset content
Jackmcbarn (talk | contribs)
handle bad content
Line 35:
getTargetFromText = require('Module:Redirect').getTargetFromText
end
returnlocal target = frame:getParent():preprocess(mw.title.new(getTargetFromText(frame.args.content)):getContent())
if target then
target = mw.title.new(target)
end
if target and not target:isRedirect() and target ~= mw.title.getCurrentTitle() then
return frame:getParent():preprocess(mw.title.new():getContent())
else
return p[''](frame)
end
end