Documentation for this module may be created at Module:Sandbox/Vladimir891/doc
--
-- arg[1] = comma-delimited list of parameters
local p = {}
function p.main( frame )
local args=frame.args
local list = args[1]
output = ""
local Elems = 0
local Dlist = mw.text.split( list, ",")
for i = 0, #Dlist do
if Dlist[i] == "Cbr" then
output='<table style="height:5px;border:0px;border-spacing:0px;padding:0px;"><tr>'
local ClR = 0xFF
local ClG = 0x22
local ClB = 0xFF
for x=0,20 do
output=output..string.format('<td style="width:3px;height:5px;background-color:#%x%x%x;"></td>',ClR,ClG,ClB)
ClR=ClR-5
ClG=ClG-1
ClB=ClB-5
end
output=output.."</tr></table>"
end
end
return output
end
return p