Difference between revisions of "Module:Element List"

From OMORI Wiki
Jump to navigation Jump to search
Line 3: Line 3:
function p.main(frame)
function p.main(frame)
local args = frame.args
local args = frame.args
local sep = args["s"]
local argsc = {}
args["s"] = nil
for i, v in pairs(args) do
return table.concat(args,sep)
argsc[i] = v
end
local sep = argsc["s"]
argsc["s"] = nil
return table.concat(argsc,sep)
end
end


return p
return p

Revision as of 08:03, 16 June 2021

Documentation for this module may be created at Module:Element List/doc

local p = {}

function p.main(frame)
	local args = frame.args
	local argsc = {}
	for i, v in pairs(args) do
		argsc[i] = v
	end
	local sep = argsc["s"]
	argsc["s"] = nil
	return table.concat(argsc,sep)
end

return p