Module:Soccer

local p = {} function p.pts(frame) local win = tonumber(frame.args[1]) local draw = tonumber(frame.args[2])

return win*3 + draw end

function p.gd(frame) local gf = tonumber(frame.args[1]) local ga = tonumber(frame.args[2])

return gf - ga end

function p.played(frame) local win = tonumber(frame.args[1]) local draw = tonumber(frame.args[2]) local loss = tonumber(frame.args[3])

return win + draw + loss end return p