Gears of War Esports Wiki
Advertisement
Gears of War Esports Wiki

This is the documentation page for Module:Infobox

local lang = mw.getLanguage('en')
local Team = require('Module:Team').team
local Role = require('Module:Role').role
local Champion = require('Module:Champion').champion
local Region = require('Module:Region').region
local Country = require('Module:Country').main
local social = require('Module:Infobox/Social')
local teamhist = require('Module:Infobox/TeamHist')
local util_infobox = require('Module:InfoboxUtil')
local util_html = require('Module:HtmlUtil')
local util_cargo = require('Module:CargoUtil')
local util_dpl = require('Module:DPLUtil')
local util_table = require('Module:TableUtil')

local NOIMAGE = 'Unknown Infobox Image - Player.png'

local LAYOUT = {
	sections = {  },
	contents = {
		{  },
	},
	i18n = {}
}

function getProcessed(args)
	local tbl = {
		pagename = mw.title.getCurrentTitle().text,
	}
	return tbl
end

function processDisplay(args, processed)
	local tbl = {
		title = 
		image =
		notice =
	}
	return tbl
end

function processCargo(args, processed)
	local tbl = {}
	return tbl
end

function processCategories(args, processed)
	local tbl = {}
	return tbl
end

function processVariables(args, processed)
	local tbl = {}
	return tbl
end

local p = {}
function p.main(args)
	local processed = getProcessed(args)
	
	local settings = {
		lc = processed.lc,
		nocargo = mw.title.getCurrentTitle().nsText ~= '' or args.nocargo,
		nocat = mw.title.getCurrentTitle().nsText ~= '' or args['no-cat'],
	}
	
	return {
		display = processDisplay(args, processed),
		cargo = processCargo(args, processed),
		settings = settings,
		categories = processCategories(args, processed),
		variables = processVariables(args, processed),
		layout = LAYOUT,
	}
end

return p
Advertisement