Module:Main Page
Documentation for this module may be created at Module:Main Page/Documentation
local p = {}
local cargo = mw.ext.cargo
local utilsCode = require("Module:UtilsCode")
function p._DisplayGameList(frame)
return p.DisplayGameList()
end
function p.DisplayGameList()
local tabCaptions = {
{type = "main", caption = "Main Series"},
{type = "remake", caption = "Remakes"},
{type = "spinoff", caption = "Spin-Offs"},
}
-- Get all stored games
local tables = "Games"
local fields = "name, subtitle, initialism, mainrelease, type"
local args = {
orderBy = "mainrelease ASC"
}
local games = cargo.query(tables, fields, args)
-- Generate tabs
end
return p