Module:Infobox album/color

local p = {}

function p.main( frame ) local types = mw.text.split(frame.args[1], "%s*,%s*") for _, v in ipairs(types) do		if    v == 'ep' or v == 'extended play' then return 'lightsalmon' elseif v == 'studio album' or v == 'album' or v == 'studio' or v == 'tribute' or v == 'tribute album' then return 'lightsteelblue' elseif v == 'demo' then return 'lightsteelblue' elseif v == 'live album' or v == 'live' then return 'burlywood' elseif v == 'greatest hits' or v == 'greatest' then return 'darkseagreen' elseif v == 'box set' or v == 'box' then return 'darkseagreen' elseif v == 'compilation album' or v == 'compilation' then return 'darkseagreen' elseif v == 'remix album' or v == 'remix' then return 'darkseagreen' elseif v == 'soundtrack' then return 'gainsboro' elseif v == 'film score' then return 'gainsboro' elseif v == 'video' or v == 'vhs' or v == 'dvd' then return '&#32;#99CCFF' elseif v == 'single' then return 'khaki' elseif v == 'song' then return '&#32;#E6E8FA' else return 'peachpuff' end end end

return p