Content deleted Content added
No edit summary |
Sports2021 (talk | contribs) mNo edit summary |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 9:
-- Pre stuff
local team_width = Args['teamwidth'] or '190'
local group_width = Args['groupwidth'] or '28'
local score_width = Args['scorewidth'] or '28'
local sort_text = yesno(Args['sortable_table'] or 'no') and ' sortable' or ''
local show_played = not yesno(Args['hide_played'] or 'no')
Line 103 ⟶ 105:
-- Add group header
if full_table and group_col then
tt = p_sub.colhead(tt,
end
tt = p_sub.colhead(tt,team_width,team_head_text..VTE_text) -- Team col
if show_played then
tt = p_sub.colhead(tt,
end
if full_table then
Line 113 ⟶ 115:
for k,v in ipairs(lbls) do
local apre, tpre = v[1], v[2]
tt = p_sub.colhead(tt,
if loss_first then
tt = p_sub.colhead(tt,
if show_tie then
tt = p_sub.colhead(tt,
end
else
if show_tie then
tt = p_sub.colhead(tt,
end
tt = p_sub.colhead(tt,
end
if rounds_won then
tt = p_sub.colhead(tt,
end
if not hide_for_against and not only_fa_totals then
tt = p_sub.colhead(tt,
tt = p_sub.colhead(tt,
end
if show_perc then
Line 335 ⟶ 337:
-- Do nothing, it's vs this team
else
local wins_GB = (tonumber(Args['cwin_'..team_list[GB_team_no]]) or 0)
local local
▲ local GB_num = (wins_GB-wins+losses-losses_GB)/2 + (ties_GB - ties)
-- Display options
if GB_num >0 then
Line 438 ⟶ 440:
if first_pass then
table.insert(t,'| style="font-weight: bold;'..bg_col..'" | '..(v[7])..hth_string..'\n')
first_pass = false▼
else
table.insert(t,'| style="'..bg_col..'" | '..(v[7])..'\n')
Line 446 ⟶ 447:
table.insert(t,'| style="'..ii_fw..bg_col..'" |'..GB_text..'\n') -- GB
end
end
if not hide_for_against then
Line 482 ⟶ 484:
-- ------------------------------------------------------------
local status_code, status_called = {}, {}
status_code = { A='Advance to
E='Eliminated', G='Guest', H='Host', O='Play-off winner', P='Promoted', Q='Qualified
R='Relegated', T='Qualified, but not yet
local status_letters = (Args['status_order'] or '') .. 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|