16,874
个编辑
LLWiki正在建设中,欢迎加入我们!
小 |
小 |
||
(未显示同一用户的4个中间版本) | |||
function p.main(frame)
local args = getArgs(frame, {removeBlanks = false})
if n % 5 >= 3 then▼
end▼
if n % 5 == 3 then▼
end▼
local text = '<div class="mainpage-news"><div class="mainpage-news-time">'
local hasTime = false
elseif i % 5 == 3 then
text = text..'('..v..')'
args[i + 1] = ''
elseif i % 5 == 4 and v ~= '' then
hasTime = true
text = text..' <span class="countdown-num">'..v..'</span>'
args[i + 1] = ''
elseif i % 5 == 0 then
if hasTime then
if v =
text = text..frame:expandTemplate{title = '0', args = {':'}}..'<span class="countdown-num">
else
text = text..':<span class="countdown-num">'..string.format('%02d', v)..'</span>'
end
hasTime = false
end
|