Jump to content

Module:RfD close

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Deryck Chan (talk | contribs) at 15:13, 10 February 2017 (create module for testing). 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 rfd = {}

function rfd.rfdt_collapsebox(frame) --this bit creates the "closed discussion" notice
	local message_string1 = '<includeonly>[[File:Symbol move vote.svg|16px|link=|alt=]] '
	.. "'''Closed discussion''', click "
	
	local link_string = "[[{{ {{{|safesubst:}}}FULLPAGENAME}}#{{ {{{|safesubst:}}}CURRENTTIMESTAMP}}|here]]"
	
	local message_string2 = ' to view full discussion.'
	
	local result_string = ''
	if (frame.args[1]) then
		result_string = ' Result was: ' .. frame.args[1]
	end
	
	local end_string = '</includeonly><noinclude>'

	return message_string1 .. link_string .. message_string2 .. result_string .. end_string
end

function rfd.rfdb_noinclude(frame)
	return '</noinclude>'
end

return rfd