View source for Module:Notice
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
local p = {}
function p.getStyleForColor(color)
result = {
["green"] = "rgb(170, 220, 0)",
["teal"] = "rgb(47, 172, 172)",
["blue"] = "rgb(0, 153, 255)",
["orange"] = "rgb(255, 128, 0)",
["yellow"] = "rgb(235, 238, 61)",
["red"] = "rgb(217, 0, 0)",
["pink"] = "rgb(240, 60, 120)",
["maroon"] = "rgb(174, 21, 102)",
["gray"] = "rgb(201, 201, 201)",
}
return result[color] or color
end
-- Entry point for the module
function p.main(frame)
local args = frame:getParent().args
local color = args.color or 'green'
000
1:0
Templates used on this page:
Return to Module:Notice.