Module:WDS Button/data

--

-- Color scheme data for Module:WDS Button.

local p = {}

-- Helper function to make the same data available under multiple aliases. local function ColorScheme(fields) for _, alias in ipairs(fields.aliases) do       if p[alias] then -- Users should never see this. error("duplicate alias `" .. alias .. "`") end

p[alias] = fields end end

ColorScheme { aliases = {"stable", "pass", "passed"}, backgroundColor = "#32cd32", textColor = "white", }

ColorScheme { aliases = {"beta", "warn"}, backgroundColor = "#ffba01", textColor = "white", }

ColorScheme { aliases = {"experimental"}, backgroundColor = "#ff4500", textColor = "white", }

ColorScheme { aliases = {"unstable", "error"}, backgroundColor = "#900", textColor = "yellow", }

ColorScheme { aliases = {"fail", "failed"}, backgroundColor = "#900", textColor = "white", }

ColorScheme { aliases = {"archive"}, backgroundColor = "#0d47a1", textColor = "white", }

ColorScheme { aliases = {"unmaintained"}, backgroundColor = "#8b4513", textColor = "white", }

ColorScheme { aliases = {"unknown", "nil", "default"}, backgroundColor = "#aaa", textColor = "white", }

return p