Module documentation
This documentation is transcluded from Module:Set/doc. [edit] [history] [purge]
This module does not have any documentation. Please consider adding documentation at Module:Set/doc. [edit]
Module:Set's function main is invoked by Template:Set.

--<pre>
local p = {}

function p.main(frame)
	local args = frame:getParent().args

	local _args = {}

	for w, v in pairs(args) do
		table.insert(_args,string.format('%s=%s',w,v))
	end

	_args = table.concat(_args,'|')

	return frame:preprocess(string.format('{{#set:%s}}',_args))
end

return p