Module:RfD close
Appearance
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 timestamp_string = os.time()
local link_string = '[[' .. mw.title.getCurrentTitle() .. '#' .. timestamp_string .. '|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><span id="' .. timestamp_string .. '"></span>'
return message_string1 .. link_string .. message_string2 .. result_string .. end_string
end
function rfd.rfdb_noinclude(frame)
return '</noinclude>'
end
return rfd