Module:Sports series: Difference between revisions

Content deleted Content added
no longer necessary
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'):css('width', scoreWidth):wikitext(legHeading)
:attr('scope', 'col')
:css('width', scoreWidth)
:wikitext(legHeading)
end
end