Tech, emailconfirmed, Administrators (Semantic MediaWiki), Curators (Semantic MediaWiki), Administrators
12,451
edits
Bongolium500 (talk | contribs) No edit summary |
Bongolium500 (talk | contribs) No edit summary |
||
Line 20: | Line 20: | ||
local numToReturn = 0 | local numToReturn = 0 | ||
if #releases < | if #releases < 5 then numToReturn = #releases else numToReturn = 5 end | ||
local usedNumbers = {} | local usedNumbers = {} | ||
for count=1, numToReturn do | for count=1, numToReturn do | ||
Line 31: | Line 31: | ||
local temp = textUtil.split(randomRelease, " %- ") | local temp = textUtil.split(randomRelease, " %- ") | ||
local year = temp[1] | local year = temp[1] | ||
if not string.find(year, "[[") then | |||
year = "[[" .. year .. "(releases)|" .. year .. "]]" | |||
end | |||
local text = temp[2] | local text = temp[2] | ||
outputWidget = outputWidget .. "\n<h3>..." .. year .."</h3>\n<span>" .. text .. "</span>" | outputWidget = outputWidget .. "\n<h3>..." .. year .."</h3>\n<span>" .. text .. "</span>" |
edits