Content deleted Content added
No edit summary |
No edit summary |
||
Line 78:
local do_scored = yesno(Args['use_goals_scored'] or 'no')
-- Whether to show totals instead of
local only_totals = yesno(Args['only_totals'] or 'no')
-- Whether to show totals instead of conference and overall
local only_conference = yesno(Args['only_conference'] or 'no')
-- Whether to show for against/totals instead of home/away for/against
Line 88 ⟶ 91:
-- Spacer style
local sps = only_totals and '' or only_conference and '' or ' style="border-width:1px 1px 1px 3px;"'
-- Initialize
Line 107 ⟶ 110:
end
if full_table then
local lbls = only_totals and {{'', 'Total '}} or only_conference and {{'', 'Conference'}} or {{'C', 'Conference '}, {'', 'Total '}}
for k,v in ipairs(lbls) do
local apre, tpre = v[1], v[2]
Line 388 ⟶ 391:
-- Whether to show totals instead of home and away
local only_totals = yesno(Args['only_totals'] or 'no')
-- Whether to show totals instead of home and away
local only_conference = yesno(Args['only_conference'] or 'no')
-- Spacer style
local sps = only_totals and '' or only_conference and '' or 'border-width:1px 1px 1px 3px;'
-- Row building
if show_played then
Line 407 ⟶ 412:
nclosses = numorval(Args['ncloss_'..team_code_ii])
end
local stats = only_totals and {{wins, ties, losses, rw, gfor, gaig}} or
only_conference and {{
{{cwins, cties, closses, crw, cgfor, cgaig, cwin_perc}, {wins, ties, losses, rw, gfor, gaig, win_perc}}
local first_pass = true
|