Jump to content

Module:Sandbox/Ahecht/sandbox

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Ahecht (talk | contribs) at 16:18, 18 July 2017 (test). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
local p = {}

local function _main(args)
	args[1] = 'CHANGED'
	return true
end

function p.main(frame)
	args = frame.args
	_args = _main(args)
	output = '{'
	comma = ''
	for k, v in pairs(args) do
		output = output .. comma .. k .. '=' .. v .. '(' .. args[k] .. ')'
		comma = ', '
	end
	return output .. '}'
end

return p