Content deleted Content added
Deryck Chan (talk | contribs) use 3 prong disambig arrow |
Deryck Chan (talk | contribs) edit sandbox section; test everything |
||
Line 33:
end
function rfd.
--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: '
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
.. '[[' .. 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
|