Module:Sports table/WDL: Difference between revisions

Content deleted Content added
change to use_point_per_match
plural
Line 101:
local do_percentage = yesno(Args['use_goal_percentage'] or Args['use_point_percentage'] or 'no')
local do_point_for_avg = yesno(Args['use_goal_per_matchuse_goals_per_match'] or Args['use_point_per_matchuse_points_per_match'] or 'no')
-- Whether to suppress the GR/GA/G% column entirely
Line 170:
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_singfa_word_plur..' 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 294:
gcomp = mm._precision_format(100 * gfor / (gfor + gaig) , 2)
end
elseif yesno(Args['use_goal_per_matchuse_goals_per_match'] or Args['use_point_per_matchuse_points_per_match'] or 'no') then
-- Now it is the point for average
if (gfor == '?') or matches <= 0 then