模块:Countdown:修订间差异
MJ Hamster(留言 | 贡献) 无编辑摘要 |
MJ Hamster(留言 | 贡献) 无编辑摘要 |
||
| 第6行: | 第6行: | ||
local function formatMessage(secondsLeft, event, color) | local function formatMessage(secondsLeft, event, color) | ||
local timeLeft = lang:formatDuration(secondsLeft, {'years | local timeLeft = lang:formatDuration(secondsLeft, {'years', 'days', 'hours', 'minutes'}) | ||
-- Color and bold the numbers, because it makes them look important. | -- Color and bold the numbers, because it makes them look important. | ||
| 第51行: | 第51行: | ||
text = args.eventstart or ((lang:ucfirst(args.event or '事件')) .. ' 已开始。') | text = args.eventstart or ((lang:ucfirst(args.event or '事件')) .. ' 已开始。') | ||
end | end | ||
return text | |||
return text | |||
end | end | ||
return p | return p | ||