Module:Sports table/Chess: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 160:
local show_draw = yesno(Args['show_draw'] or 'no')
local show_loss = yesno(Args['show_loss'] or 'no')
local wdl_iff_hth = yesno(Args['wdl_iff_hth'] or 'no')
local show_sb = yesno(Args['show_sb'] or 'no')
local nosb = yesno(Args['nosb_'..team_code_ii] or 'no')
local sb_iff_hth = yesno(Args['sb_iff_hth'] or 'no')
local extra_cols = tonumber(Args['extra_cols']) or 0
Line 199 ⟶ 201:
-- Sonneborn-Berger score
if show_sb then
if (sb_iff_hth and hth_local == '—') or nosb then
sb_score = '—'
end
Line 246 ⟶ 248:
end
if show_win then
if wdl_iff_hth and hth_local == '—' then
wins = '—'
end
table.insert(t,'| style="'..ii_fw..bg_col..'" |'..wins..'\n') -- Won
end
if show_draw then
if wdl_iff_hth and hth_local == '—' then
draws = '—'
end
table.insert(t,'| style="'..ii_fw..bg_col..'" |'..draws..'\n') -- Drew
end
if show_loss then
if wdl_iff_hth and hth_local == '—' then
losses = '—'
end
table.insert(t,'| style="'..ii_fw..bg_col..'" |'..losses..'\n') -- Lost
end