Module:Colored list

p = {}

function p._list(args) sequence = { [0]='#217346',		[1]='#326AC7', [2]='#C0353E', [3]='#8157B7', [4]='#007C20', [5]='#B03E84', [6]='#B64900', [7]='#267392'	}	local class1, class2 = , if (args.class or ) ~=  then class1 = ' \n' class2 = ' ' end

output, i = {}, 1 for k, v in pairs(args) do		if tonumber(k) then output[i] = (args.pre or '* ') .. '<' .. (args.tag or 'span') .. ' style="color:' .. sequence[math.mod( (i-1),8 )] .. ';' .. (args.style or '') .. '">' .. (v or '') .. ''			i = i + 1 end end return class1 .. table.concat( output,(args.sep or '\n') ) .. class2 end

function p.list(frame) return p._list(frame:getParent.args[1] and frame:getParent.args or frame.args) end

return p