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 8: | Line 8: | ||
function p.recentReleases(frame) | function p.recentReleases(frame) | ||
local args = frame.args | local args = frame.args | ||
if not args["count"] or not type(tonumber(args["count"])) == "integer" then | |||
args["count"] = 8 | |||
end | |||
local outputText = "<div class=\"mainpage-box-recent\">\n" | local outputText = "<div class=\"mainpage-box-recent\">\n" | ||
Line 17: | Line 20: | ||
if side == "left" then side = "right" else side = "left" end | if side == "left" then side = "right" else side = "left" end | ||
i = i + 1 | i = i + 1 | ||
if i > args[" | if i > tonumber(args["count"]) then | ||
done = true | done = true | ||
elseif args[i] == null or args[i] == "" then | elseif args[i] == null or args[i] == "" then |
edits