Content deleted Content added
Andreyyshore (talk | contribs) No edit summary |
Andreyyshore (talk | contribs) No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 8:
local month2 = tonumber(frame.args.month2 or frame.args[5])
local day2 = tonumber(frame.args.day2 or frame.args[6])
local
local livetext = frame.args.livetext or "Live Event"
local text = frame.args.text
local time1 = nil
local time2 = nil
local bgcolor = "#777777"
local textcolor = "#
local span = mw.html.create("span")
Line 24 ⟶ 26:
}
if
span
:css{background = bgcolor, color = textcolor}
:wikitext(
return tostring(span)
end
Line 52 ⟶ 54:
if time1 > 0 then
bgcolor = "#C66320"
if time1 > 1 then
elseif time2 < 0 then
bgcolor = "#
text = endtext
else
bgcolor = "#00B000"
end
Line 67 ⟶ 69:
span
:css{background = bgcolor, color = textcolor}
:wikitext(
return tostring(span)
|