Module:Set

Revision as of 13:49, 15 November 2024 by BlackHawk (talk | contribs) (Created page with "--<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")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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