Module:Updates: Difference between revisions

no edit summary
(Created page with "local contains = require('Module:Array').contains local p = {} local lang = mw.getContentLanguage() local looporder = { { 'December', 31 }, { 'November', 30 }, { 'Octobe...")
No edit summary
Tag: Reverted
Line 68: Line 68:
local data = lookup(year..' updates')
local data = lookup(year..' updates')
data = data[tonumber(year)]
data = data[tonumber(year)]
local gameUpdQ = mw.smw.ask{ '[[Category:' .. year .. ' updates]][[Category:Game updates]]', '?#-'}
local gameUpdQ = mw.smw.ask{ '[[Category:' .. year .. ' updates]][[Category:WIDEVERSE updates]]', '?#-'}
local gameUpdates = {}
local gameUpdates = {}
if gameUpdQ == nil then
if gameUpdQ == nil then
Line 76: Line 76:
table.insert(gameUpdates, v[1])
table.insert(gameUpdates, v[1])
end
end
local ret = {'Titles in bold indicate a [[Game updates|game update]].'}
local ret = {'Titles in bold indicate a [[WIDEVERSE updates|WIDEVERSE update]].'}
local data_m, data_d
local data_m, data_d
for _,m in ipairs(looporder) do
for _,m in ipairs(looporder) do