Jump to content

Module:RfD

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Jackmcbarn (talk | contribs) at 20:39, 20 June 2014 (Created page with 'local p = {} -- called if the redirect up for discussion is being transcluded p['1'] = function(frame) return frame:getParent():preprocess(mw.title.new(frame.a...'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

local p = {}

-- called if the redirect up for discussion is being transcluded
p['1'] = function(frame)
	return frame:getParent():preprocess(mw.title.new(frame.args[1]):getContent())
end

-- called if the redirect up for discussion is being viewed
p[''] = function(frame)
	return frame.args[2] .. '\n\n#REDIRECT [[' .. frame.args[1] .. ']]'
end

return p