Module:Main Page: Difference between revisions

From Zelda Wiki, the Zelda encyclopedia
Jump to navigation Jump to search
(Created page with "local p = {} local utilsCode = require("Module:UtilsCode") function p._DisplayGameList(frame) return p.DisplayGameList() end function p.DisplayGameList() end return p")
 
No edit summary
Line 1: Line 1:
local p = {}
local p = {}
local cargo = mw.ext.cargo
local utilsCode = require("Module:UtilsCode")
local utilsCode = require("Module:UtilsCode")


Line 7: Line 8:


function p.DisplayGameList()
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
end


return p
return p

Revision as of 03:28, 9 November 2019

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