View source for Module:Sports table/totalscheck
MyWikiBiz, Author Your Legacy — Friday May 16, 2025
Jump to navigationJump to searchYou do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
local tc = {}
function tc.check(Args, team_list, ii_start, ii_end)
local warn = {}
local wtotal, dtotal, ltotal = 0,0,0
local hwtotal, hdtotal, hltotal = 0,0,0
local awtotal, adtotal, altotal = 0,0,0
local pkwtotal, pkltotal, otwtotal, otltotal = 0,0,0,0
local gftotal, gatotal = 0,0
for ii = ii_start, ii_end do
-- First get code
local team_code_ii = team_list[ii]
if team_code_ii ~= 'SPORTS_TABLE_TOTAL' then
-- Now tabulate values
wtotal = wtotal + (tonumber(Args['win_'..team_code_ii]) or 0)
dtotal = dtotal + (tonumber(Args['draw_'..team_code_ii]) or 0)
ltotal = ltotal + (tonumber(Args['loss_'..team_code_ii]) or 0)
hwtotal = hwtotal + (tonumber(Args['hwin_'..team_code_ii]) or 0)
hdtotal = hdtotal + (tonumber(Args['hdraw_'..team_code_ii]) or 0)
000
1:0
Template used on this page:
Return to Module:Sports table/totalscheck.