Difference between revisions of Module:Countdown

NottNott (talk | contribs)
m 1 revision imported
NottNott (talk | contribs)
No edit summary
 
Line 17: Line 17:
end
end
-- Color and bold the numbers, because it makes them look important.
-- Color and bold the numbers, because it makes them look important.
timeLeft = string.gsub(timeLeft, '(%d+)', '<span style="color: ' .. (color or '#F00') .. '; font-weight: bold;">%1</span>')
timeLeft = string.gsub(timeLeft, '(%d+)', '<span style="color: ' .. (color or '#000') .. '; font-weight: bold;">%1</span>')
return string.format('There %s %s until %s.', isOrAre, timeLeft, event)
return string.format('There %s %s until %s.', isOrAre, timeLeft, event)
end
end