Content deleted Content added
S.A. Julio (talk | contribs) no longer necessary |
S.A. Julio (talk | contribs) use scope=col |
||
Line 258:
titleRow:tag('th')
:attr('colspan', colCount)
:attr('scope', 'colgroup')
:css('text-align', 'center')
:wikitext(args.title)
Line 266 ⟶ 267:
local defaultTeam1 = (args.h_a == 'y' or args.h_a == 'yes' or args.h_a == '1' or args.h_a == 'true') and 'Home' or 'Team 1'
local defaultTeam2 = (args.h_a == 'y' or args.h_a == 'yes' or args.h_a == '1' or args.h_a == 'true') and 'Away' or 'Team 2'
header:tag('th')
:attr('scope', 'col') :css('text-align', 'right') :css('width', teamWidth) :wikitext(args['team1'] or defaultTeam1) header:tag('th')
:attr('scope', 'col') :css('width', scoreWidth) :wikitext(args['aggregate'] or legs == 0 and 'Score' or expandTemplate(frame, 'Abbrlink', {'Agg.', 'Aggregate score'})) header:tag('th')
:attr('scope', 'col') :css('text-align', 'left') :css('width', teamWidth) :wikitext(args['team2'] or defaultTeam2) -- Add columns for each leg if applicable
Line 295 ⟶ 307:
end
header:tag('th'
:attr('scope', 'col')
:css('width', scoreWidth)
:wikitext(legHeading)
end
end
|