Jump to content

Module:Params/testcases/mdummy

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Grufo (talk | contribs) at 02:07, 31 January 2024 (First stub). 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 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