Content deleted Content added
default width |
add optional round |
||
Line 19:
local played_head_text = Args['pld_header'] or '<abbr title="Played">Pld</abbr>'
local group_head_text = Args['group_header'] or '<abbr title="Group">Grp</abbr>'
local round_head_text = Args['round_header'] or '<abbr title="Round">R</abbr>'
local team_head_text = Args['team_header'] or 'Athlete'
local show_win = yesno(Args['show_win'] or 'yes')
local show_loss = yesno(Args['show_loss'] or 'yes')
local show_round = yesno(Args['show_round'] or 'no')
-- Initialize
Line 46 ⟶ 48:
tt = p_sub.colhead(tt,28,'<abbr title="Lost">L</abbr>') -- Loss col
end
end
if show_round then
tt = p_sub.colhead(tt,28,round_head_text) -- Round col
end
tt = p_sub.colhead(tt,28,'<abbr title="Classification points">CP</abbr>') -- Classification points col
Line 87 ⟶ 92:
local show_win = yesno(Args['show_win'] or 'yes')
local show_loss = yesno(Args['show_loss'] or 'yes')
local show_round = yesno(Args['show_round'] or 'no')
local digits = Args['digitpad']
Line 92 ⟶ 98:
local wins = tonumber(Args['win_'..team_code_ii]) or 0
local losses = tonumber(Args['loss_'..team_code_ii]) or 0
local round = tonumber(Args['r_'..team_code_ii]) or 0
local cp = tonumber(Args['cp_'..team_code_ii]) or 0
local tp = tonumber(Args['tp_'..team_code_ii]) or 0
Line 127 ⟶ 134:
table.insert(t,'| style="'..ii_fw..bg_col..'" |'..num_align(losses,digits)..'\n') -- Lost
end
end
if show_round then
table.insert(t,'| style="'..ii_fw..round_fw_bg_col..'" |'..round..'\n') -- Lost
end
-- Add − for negative point totals
|