Module:Bongolium500/main page modules: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
no edit summary
No edit summary
No edit summary
Line 20: Line 20:
local randomRelease = releases[math.random(1, #releases)]
local randomRelease = releases[math.random(1, #releases)]
local temp = textUtil.split(randomRelease, ".* %- ", "")
local temp = textUtil.split(randomRelease, "%-")
local year = temp[1]
local year = temp[1]
local text = temp[2]
local text = temp[2]
outputWidget = outputWidget .. "..." .. year .."</h3> \n<span>text</span></div>"
outputWidget = outputWidget .. "..." .. year .."</h3> \n<span>" .. text .. "</span></div>"
cache.set(PREFIX .. currentDate, outputWidget)
cache.set(PREFIX .. currentDate, outputWidget)
Cookies help us deliver our services. By using our services, you agree to our use of cookies.