Documentation for this module may be created at Module:FrontpageMatches/Settings/doc
-- TournamentSectionSettings
return {
sections = { 'Matches','Events', 'Results', 'VODs' },
cargo = {
tables = 'MatchSchedule',
fields = {
'Team1 [team]',
'Team2 [team]',
'Player1',
'Player2',
'Tab=Round',
'DateTime_UTC=DateTime',
'HasTime=TimeEntered [boolean]',
'OverviewPage=Tournament',
'ShownName',
'Winner [number]',
'Stream',
'Vod',
},
},
classes = {
tournamentLinks = 'fpml-schedule-links',
tournament = 'fpml-tournament',
},
Matches = {
sentence = "",
title = 'Upcoming Matches',
cargo = {
where = 'DateTime_UTC > NOW()',
orderBy = 'DateTime_UTC ASC,OverviewPage ASC, N_Page ASC, N_MatchInPage ASC',
groupBy = 'Team1, Team2, DateTime_UTC, Tab, OverviewPage',
},
fields = {
'tournament',
'tournamentLinks',
'teams',
'countdown',
},
},
Events = {
sentence = "",
title = 'Upcoming Events',
cargo = {
where = 'MatchSchedule.DateTime_UTC > NOW()',
orderBy = 'MatchSchedule.DateTime_UTC ASC, MatchSchedule.OverviewPage ASC',
groupBy = 'MatchSchedule.OverviewPage',
},
fields = {
'tournament',
'tournamentLinks',
'teams',
'countdown',
},
min_max_query = true,
},
Results = {
sentence = "",
title = 'Recent Results',
cargo = {
where = 'MatchSchedule.Winner > -1 AND MatchSchedule.DateTime_UTC < NOW()',
orderBy = 'MatchSchedule.DateTime_UTC DESC, MatchSchedule.OverviewPage ASC',
groupBy = 'MatchSchedule.MatchId',
},
fields = {
'tournament',
'teams',
'winner',
},
},
VODs = {
sentence = "''For more matches, see the [[Portal:VODs|VODs Portal]]!''",
title = 'Recent VODs',
cargo = {
where = 'MatchSchedule.Winner > -1 AND MatchSchedule.DateTime_UTC < NOW() AND MatchSchedule.Vod != ""',
orderBy = 'MatchSchedule.DateTime_UTC DESC, MatchSchedule.OverviewPage ASC',
groupBy = 'MatchSchedule.UniqueMatch'
},
fields = {
'tournament',
'teams',
'vod'
},
}
}