Module:MLB standings/sandbox: Difference between revisions

Content deleted Content added
flip test to improve readability (more evident that year must be within the specified range)
synching sandbox with Module:MLB standings; please see that page's history for attribution
Line 68:
winLossOnly = function(tableHeaderInfo)
return
'{| class="wikitable" width="380em390em" style="text-align:center;"\
! width="66%" | ' .. tableHeaderInfo.navbarText .. tableHeaderInfo.division .. '\
! width="10%" | [[Win (baseball)|W]]\
Line 78:
wildCard2012 = function(tableHeaderInfo)
return
'{| class="wikitable" width="375em390em" style="text-align:center;"\
! width="60%" | ' .. tableHeaderInfo.navbarText .. 'Wild Card teams<br><small>(Top two2 teams qualify for postseason)</small>\
! width="8%" | [[Win (baseball)|W]]\
! width="8%" | [[Loss (baseball)|L]]\
Line 88:
 
wildCard = function(tableHeaderInfo)
local teamText = 'team'
local numberOfTeamsText = 'team qualifies'
if tableHeaderInfo.wildCardsPerLeague > 1 then
teamText = 'teams'
numberOfTeamsText = tableHeaderInfo.wildCardsPerLeague .. ' teams qualify'
end
return
'{| class="wikitable" width="375em390em" style="text-align:center;"\
! width="60%" | ' .. tableHeaderInfo.navbarText .. 'Wild Card teams' .. teamText .. '<br><small>(Top ' .. tableHeaderInfo.wildCardsPerLeaguenumberOfTeamsText ..
' teams qualify for postseason)</small>\
! width="8%" | [[Win (baseball)|W]]\
! width="8%" | [[Loss (baseball)|L]]\