Module:MatchListTournamentTeam

local util_args = require('Module:ArgsUtil') local util_cargo = require('Module:CargoUtil') local util_esports = require('Module:EsportsUtil') local util_footnote = require('Module:FootnoteUtil') local util_map = require('Module:MapUtil') local util_html = require('Module:HtmlUtil') local util_matches = require('Module:MatchesUtil') local util_table = require('Module:TableUtil') local util_text = require('Module:TextUtil') local util_time = require('Module:TimeUtil') local util_toggle = require('Module:ToggleUtil') local util_vars = require('Module:VarsUtil') local i18n = require('Module:i18nUtil') local Phase = require('Module:Phase')

local lang = mw.getLanguage('en')

local ML = require('Module:MatchListAbstract'):extends

local h = {} local p = {} function p.main(frame) local args = util_args.merge return ML:init(args) end

function ML:makeOutput(matchData, args) local output = mw.html.create('table') :addClass('wikitable') :addClass('matchlist') util_html.printColspanHeader(output, args.display, 4) util_html.printEmptyWidthRowPX(output, self.WIDTHS) local lastgroup for k, row in ipairs(matchData[1] or {}) do		if row.innergroup ~= lastgroup then output:tag('tr'):addClass('matchlist-date') :tag('td'):attr('colspan',4):wikitext(row.innergroup) lastgroup = row.innergroup end local tr = output:tag('tr') self:printTeam1(tr, row) self:printScore(tr, row, true) self:printTeam2(tr, row) end return output end

return p