Dokumentationen för denna modul kan skapas på Modul:Sandlådan/SM5POR/Gutil/dok

-- The Gutil module (graphical processing utilities)

local tohtml = function(tag, text)
	local element = mw.html.create(tag)
	element
		:wikitext(text)
	return tostring(element)
end

local gutil = {}

gutil.formatList = function(t)
	local k, v
	local text = {}
	local i = 0
	for k, v in pairs(t) do
		i = i + 1
		text[i] = tohtml("li", tostring(v))
	end
	return tohtml("ul", table.concat(text))
end

return gutil