Difference between revisions of Module:Countdown
m 1 revision imported |
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 '# | 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 | ||