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 5: | Line 5: | ||
local h = {} | local h = {} | ||
local MONTHS = {"January", "Feburary", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"} | local MONTHS = {"January", "Feburary", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"} | ||
function p.recentReleases(frame) | |||
local args = frame.args | |||
local outputText = "<div class=\"mainpage-box-recent\">\n" | |||
local done = false | |||
local i = 1 | |||
local side = "left" | |||
while not done do | |||
outputText = outputText .. "<div align=\"" .. side .. "\">" .. frame:preprocess(args[i]) .. "</div>\n" | |||
if side == "left" then side = "right" else side = "left" end | |||
i = i + 1 | |||
if i > 10 then | |||
done = true | |||
elseif args[i] == null or args[i] == "" then | |||
done = true | |||
end | |||
end | |||
outputText = outputText .. "</div>" | |||
end | |||
function p.releaseModule(frame) | function p.releaseModule(frame) |
edits