Module:MLB standings: Difference between revisions

Content deleted Content added
use full division name for standings table
add support to display ½ in "Games behind" column
Line 104:
gamesBehind = '—'
else
gamesBehindlocal halfGamesBehind = (leadingHalfGames - (teamInfo.wins - teamInfo.losses)
gamesBehind = - math.floor(teamInfo.wins - teamInfo.losses))halfGamesBehind / 2)
if (halfGamesBehind % 2 == 1) then
gamesBehind = gamesBehind .. '½'
end
 
end