Module:MLB standings: Difference between revisions

Content deleted Content added
update comment for clarity
modify to use classes defined in Template:MLB standings/styles.css
 
Line 76:
default = function(tableHeaderInfo)
return
'{| class="wikitable MLBStandingsTable" style="text-align:center;"\
|+ style="text-align:center;" |' .. tableHeaderInfo.navbarText .. '[[' .. tableHeaderInfo.divisionLink
.. '|' .. tableHeaderInfo.division .. ']]\
|- \
Line 92:
winLossOnly = function(tableHeaderInfo)
return
'{| class="wikitable MLBStandingsTable" style="text-align:center;"\
|+ style="text-align:center;" |' .. tableHeaderInfo.navbarText .. tableHeaderInfo.division .. '\
|- \
! width="66%" | Team\
Line 104:
wildCard2012 = function(tableHeaderInfo)
return
'{| class="wikitable MLBStandingsTable" style="text-align:center;"\
|+ style="text-align:center;" |' .. tableHeaderInfo.navbarText .. 'Wild Card teams<br><small>(Top 2 teams qualify for postseason)</small>\
|- \
! width="64%" | Team \
Line 123:
end
return
'{| class="wikitable MLBStandingsTable" style="text-align:center;"\
|+ style="text-align:center;" |' .. tableHeaderInfo.navbarText .. 'Wild Card ' .. teamText .. '<br><small>(Top ' .. numberOfTeamsText ..
' for postseason)</small>\
|- \
Line 446:
if (seedInfo[teamInfo.name] ~= nil) then
teamRowInfo.seedText = '<sup>(' .. seedInfo[teamInfo.name] .. ')</sup>&nbsp;'
teamRowInfo.rowStyle = ' styleclass="background:#CCFFCCMLBStandingsHighlightedRow"'
end
 
if (teamsToHighlight[teamInfo.name]) then
teamRowInfo.rowStyle = ' styleclass="background:#CCFFCCMLBStandingsHighlightedRow"'
end