Module:List

From Vintage Story Wiki
Revision as of 22:47, 17 August 2022 by Sana (talk | contribs)

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

local p = {}
function p.list( f )
	local args = f.args
	local list = {}
	for str in string.gmatch(args[0], ';') do
		table.insert(list, str)
	end
	local listString = table.concat(list, '\n')
	local html = {
		'<ol style="list-style-type: none; margin: 0; padding: 0;">',
			listString,
		'</ol>'
	}
	return table.concat(html, '\n')
end
return p