Jump to content

Module:Params/testcases/mdummy

From Wikipedia, the free encyclopedia

local iface = {}

iface.echo_sb = function(frame)
	local args = frame.args
	local ret = ''
	newtab = {}
	for key, val in pairs(args) do newtab[key] = val end
	for key,val in ipairs(newtab) do
		ret = ret .. '[' .. key .. '=' .. val .. ']'
		newtab[key] = nil
	end
	for key,val in pairs(newtab) do
		ret = ret .. '[' .. key .. '=' .. val .. ']'
	end
	return ret
end

return iface