Documentation for this module may be created at Module:GameLanding/doc
local getArgs = require('Module:Arguments').getArgs
local p = {}
local VariablesLua = mw.ext.VariablesLua
local cargo = mw.ext.cargo
local latestTransfers = require('Module:GameLanding/Transfers').latestTransfers
local featured = require('Module:GameLanding/Featured tournament').featured
local news = require('Module:GameLanding/Latest news').news
local upcomingMatches = require('Module:GameLanding/Upcoming matches').upcomingMatches
local tournaments = require('Module:GameLanding/Tournaments').tournaments
function p.main(frame)
local args = getArgs(frame)
local game = args.game
local container = mw.html.create('div')
local landingCont = mw.html.create('div'):addClass('game__landing')
local leftBox = mw.html.create('div'):addClass('box__landing')
local rightBox = mw.html.create('div'):addClass('box__landing')
container:node(landingCont:node(leftBox):node(rightBox))
-- Leftside box
-- Featured tournament
leftBox:node(featured(args.game))
-- Tournaments
leftBox:node(tournaments(args.game))
-- Rightbox
-- Latest news
rightBox:node(news(args.newsGame or args.game))
---- Latest transfers
local transfersWrapper = latestTransfers(args.game)
rightBox:node(transfersWrapper)
--- Upcoming matches
rightBox:node(upcomingMatches(args.game))
return container
end
return p