Module:RfD: Difference between revisions

Content deleted Content added
Jackmcbarn (talk | contribs)
use no globals and add a tracking category
Jackmcbarn (talk | contribs)
use expandTemplate instead of crudely reimplementing it
Line 43:
if target and not target.isRedirect and target ~= mw.title.getCurrentTitle() then
local pframe = frame:getParent()
-- We should actually be calling newChildexpandTemplate 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:newChildexpandTemplate{title = target.prefixedText, args = pframe.args}:preprocess(target:getContent())
else
return p[''](frame)