Call of Duty Esports Wiki
Advertisement
Call of Duty Esports Wiki

To edit the documentation or categories for this module, click here.


-- TournamentSectionSettings
return {
	sections = { 'Matches', 'Events', 'Results' },
	sectionstyles = {
		{ width = '180px' },
		{ ['max-width'] = '125px' },
		{ width = '90px' },
	},
	Matches = {
		sentence = "''This list displays up to the next %s series from any available event.''",
		title = 'Upcoming Matches',
		sectiontitles = { 'Tournament', 'Match', 'Countdown' },
		cargo = {
			where = 'GameSchedule.DateTime > NOW()',
			orderBy = 'GameSchedule.DateTime ASC,GameSchedule.Tournament ASC, GameSchedule.N ASC',
			groupBy = 'GameSchedule.UniqueLine'
		},
		fields = {
			'tournament',
			'teams',
			'countdown'
		},
		toggles = {
			toggle = '_tog_object tab-Match tabs2',
			toggler = '_toggler_hide-tabs2 _toggler_show-tab-Match',
		},
	},
	Events = {
		sentence = "''For each available event, this list displays only the earliest series and no further games.''",
		title = 'Upcoming Events',
		sectiontitles = { 'Tournament', 'Match', 'Countdown' },
		cargo = {
			where = 'GameSchedule.DateTime > NOW()',
			orderBy = 'GameSchedule.DateTime ASC, GameSchedule.Tournament ASC',
			groupBy = 'GameSchedule._pageName',
		},
		fields = {
			'tournament',
			'teams',
			'countdown'
		},
		toggles = {
			toggle = '_tog_object tab-Tourney tabs2 _toggle_inithide',
			toggler = '_toggler_hide-tabs2 _toggler_show-tab-Tourney',
		},
	},
	Results = {
		sentence = "",
		title = 'Recent Results',
		sectiontitles = { 'Tournament', 'Match', 'Winner' },
		cargo = {
			where = 'GameSchedule.Winner > -1 AND GameSchedule.DateTime < NOW()',
			orderBy = 'GameSchedule.DateTime DESC, GameSchedule.Tournament ASC',
			groupBy = 'GameSchedule.UniqueLine'
		},
		fields = {
			'tournament',
			'teams',
			'winner'
		},
		toggles = {
			toggle = '_tog_object tab-Results tabs2 _toggle_inithide',
			toggler = '_toggler_hide-tabs2 _toggler_show-tab-Results'
		},
	}
}
Advertisement