Module:Sandbox/Andreyyshore/ESC countdown: Difference between revisions

Content deleted Content added
Created page with 'local p = {} function p.countdown(frame) local year1 = tonumber(frame.args.year1 or frame.args[1]) local month1 = tonumber(frame.args.month1 or frame.args[2])...'
 
No edit summary
Line 54:
if time1 > 0 then
bgcolor = "#FF7E00"
textcolormessage = time1 .. "#000000 day"
message = time1 .. "day"
if time1 > 1 then message = message .. "s" end
message = message .. " to go"
elseif time2 < 0 then
bgcolor = "#FF0033"
textcolor = "#FFFFFF"
message = "End of Event"
else
bgcolor = "#008000"
textcolor = "#FFFFFF"
message = "Live Event"
end
textcolor = "#FFFFFF"
span