Module:MLB standings: Difference between revisions

Content deleted Content added
add support for single wild card team in text for table header
more support for single wild card team in text for table header
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="390em" style="text-align:center;"\
! width="60%" | ' .. tableHeaderInfo.navbarText .. 'Wild Card teams' .. teamText .. '<br><small>(Top ' .. numberOfTeamsText ..
' for postseason)</small>\
! width="8%" | [[Win (baseball)|W]]\