Difference between revisions of "Module:Element List"

From OMORI Wiki
Jump to navigation Jump to search
Line 5: Line 5:
local argsc = {}
local argsc = {}
for i, v in pairs(args) do
for i, v in pairs(args) do
argsc[i] = v
if v~="" then argsc[i] = v end
end
end
local sep = argsc["s"]
local sep = argsc["s"]

Revision as of 08:05, 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
		if v~="" then argsc[i] = v end
	end
	local sep = argsc["s"]
	argsc["s"] = nil
	return table.concat(argsc,sep)
end

return p