Module:RfD: Difference between revisions

Content deleted Content added
m Protected Module:RfD: Highly visible template ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite))
Jackmcbarn (talk | contribs)
handle an edge case and document what needs to happen if we ever get grandparent frame access
Line 41:
end
if target and not target.isRedirect and target ~= mw.title.getCurrentTitle() then
returnlocal pframe = frame:getParent():preprocess(target:getContent())
-- We should actually be calling newChild on the grandparent rather than on the parent, but we can't do that yet
-- Since we don't have grandparent access, though, it means the thing we're calling doesn't either, so it doesn't really matter yet
return pframe:newChild{title = target.prefixedText, args = pframe.args}:preprocess(target:getContent())
else
return p[''](frame)