Module:Main Page

From Zelda Wiki, the Zelda encyclopedia
Revision as of 03:28, 9 November 2019 by MannedTooth (talk | contribs)
Jump to navigation Jump to search

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