Module:MLB standings: Difference between revisions

Content deleted Content added
change to support different format for passing in home and road records
fix bug if leading team has a .500 record
Line 82:
)
 
local leadingHalfGames = 0nil;
 
for idx, teamInfo in ipairs(listOfTeams) do
local gamesBehind
if (leadingHalfGames == 0nil) then
leadingHalfGames = (teamInfo.wins - teamInfo.losses)
gamesBehind = '—'