Content deleted Content added
"Points percentage" is not an abbreviation for "%" |
add optional use_point_for_average for Basketball at the 2018 Summer Youth Olympics – Boys' tournament and others |
||
Line 100:
-- Whether to use goal percentage instead
local do_percentage = yesno(Args['use_goal_percentage'] or Args['use_point_percentage'] or 'no')
local do_point_for_avg = yesno(Args['use_point_for_average'] or 'no')
-- Whether to suppress the GR/GA/G% column entirely
Line 167 ⟶ 169:
elseif do_percentage then
tt = p_sub.colhead(tt,28,'<abbr title="'..fa_word_sing..' percentage">PP</abbr>') -- Percentage col
elseif do_point_for_avg then
tt = p_sub.colhead(tt,28,'<abbr title="'..fa_word_sing..' per match">'..fa_letter..'PM</abbr>') -- Points for per match
elseif do_difference then
tt = p_sub.colhead(tt,28,'<abbr title="'..fa_word_sing..' difference">'..fa_letter..'D</abbr>') -- Difference col
Line 289 ⟶ 293:
else
gcomp = mm._precision_format(100 * gfor / (gfor + gaig) , 2)
end
elseif yesno(Args['use_point_for_average'] or 'no') then
-- Now it is the point for average
if (gfor == '?') or matches <= 0 then
gcomp = '—'
else
gcomp = mm._precision_format(gfor / matches , 1)
end
elseif yesno(Args['use_goal_diff'] or 'yes') then
|