Module:Sandbox/B2project/NHL Standings: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 94:
goalsfor = tonumber(mw.text.trim(args[currentIdx+6])),
goalsag = tonumber(mw.text.trim(args[currentIdx+7])),
goaldif = tonumber(mwteamInfo.textgoalsfor - teamInfo.trim(args[currentIdx+8])goalsag),
points = tonumber(mw(teamInfo.text.trimwins*2)+(args[currentIdxteamInfo.ties*1)+9](teamInfo.OTlosses*1)),
}
returnData.cIndicesRead = 5
Line 105:
teamInfo.goalsfor = teamInfo.goalsfor
teamInfo.goalsag = teamInfo.goalsag
teamInfo.goaldif = (teamInfo.goalsfor - teamInfo.goalsag)goaldif
teamInfo.points = ((teamInfo.wins*2)+(teamInfo.ties*1)+(teamInfo.OTlosses*1))points
return teamInfo
end, -- function readTeamInfo.default()