Module:MLB standings/sandbox: Difference between revisions

Content deleted Content added
remove fixed table width
move table descriptions to caption element; add zero-width joiner character around en-dash to prevent line breaks
Line 55:
return
'{| class="wikitable" style="text-align:center;"\
!|+ width="45%" |' .. tableHeaderInfo.navbarText .. '[[' .. tableHeaderInfo.divisionLink
.. '|' .. tableHeaderInfo.division .. ']]\
|- \
! width="45%" | Team \
! width="6%" | [[Win (baseball)|W]]\
! width="6%" | [[Loss (baseball)|L]]\
Line 69 ⟶ 71:
return
'{| class="wikitable" style="text-align:center;"\
! width="66%" |+ ' .. tableHeaderInfo.navbarText .. tableHeaderInfo.division .. '\
|- \
! width="66%" | Team\
! width="10%" | [[Win (baseball)|W]]\
! width="10%" | [[Loss (baseball)|L]]\
Line 79 ⟶ 83:
return
'{| class="wikitable" style="text-align:center;"\
! width="64%" |+ ' .. tableHeaderInfo.navbarText .. 'Wild Card teams<br><small>(Top 2 teams qualify for postseason)</small>\
|- \
! width="64%" | Team \
! width="8%" | [[Win (baseball)|W]]\
! width="8%" | [[Loss (baseball)|L]]\
Line 96 ⟶ 102:
return
'{| class="wikitable" style="text-align:center;"\
! width="64%" |+ ' .. tableHeaderInfo.navbarText .. 'Wild Card ' .. teamText .. '<br><small>(Top ' .. numberOfTeamsText ..
' for postseason)</small>\
|- \
! width="64%" | Team \
! width="8%" | [[Win (baseball)|W]]\
! width="8%" | [[Loss (baseball)|L]]\
Line 115 ⟶ 123:
|| ' .. teamRowInfo.winningPercentage .. '\
|| ' .. teamRowInfo.gamesBehind .. '\
|| ' .. teamInfo.homeWins .. '&zwj;&zwj;' .. teamInfo.homeLosses ..'\
|| ' .. teamInfo.roadWins .. '&zwj;&zwj;' .. teamInfo.roadLosses .. '\n'
 
end, -- function generateTeamRow.default()