View source for Module:Sports table/totalscheck

MyWikiBiz, Author Your Legacy — Friday May 16, 2025
Jump to navigationJump to search

You do not have permission to edit this page, for the following reasons:

  • The action you have requested is limited to users in one of the groups: Users, vuser.
  • You must confirm your email address before editing pages. Please set and validate your email address through your user preferences.

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)
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
000
1:0
Debug console
* The module exports are available as the variable "p", including unsaved modifications. * Precede a line with "=" to evaluate it as an expression or use print(). Use mw.logObject() for tables. * Use mw.log() and mw.logObject() in module code to send messages to this console.

Template used on this page:

Return to Module:Sports table/totalscheck.