Module:RfD close: Difference between revisions

Content deleted Content added
use 3 prong disambig arrow
edit sandbox section; test everything
Line 33:
end
 
function rfd.rfdt_collapsebox_sandboxrfdt_before_result(frame) --this bit creates the "closed discussion" notice
--define function to check whether arguments are defined
local args = frame.args
Line 97:
local result_string = ''
if (argIsSet('result')) then
result_string = ' Result was: ' .. args['result']
result_match, icon_filename = match_result(args['result'])
end
Line 103:
--Build wikitext for result icon
local message_string1 = '<includeonly>' --includeonly tag
--then dump the orange boxicon
.. '<div class="boilerplate rfd vfd xfd-closed" style="background:#FFEEDD; margin-top:0.5em; padding:0 10px 0 10px; border:1px solid #888888;">'
.. '[[' .. icon_filename
.. '|16px|link=|alt=' .. result_match .. "]] '''Closed discussion''', see [["
Line 119 ⟶ 118:
--Put it all together and return from Lua
return message_string1 .. link_string .. message_string2 .. result_string .. end_string
end
 
function rfd.rfdt_show_result(frame)
return '</noinclude>' .. frame.args['result'] .. '<noinclude>'
end