Module:Sports table/Badminton team: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 151:
-- Comparison of for against
local gcompmcomp
-- Whether to use goal ratio (goal average) or goal percentage instead
local use_ratio_val = Args['use_goal_ratio'] or 'no'
Line 158:
if yesno(use_ratio_val) then
-- Now it is the goal ratio/goal average
if gaigmaig == 0 then
gcompmcomp = '—'
else
gcompmcomp = mm._precision_format(gfor / gaig, 3)
end
elseif yesno(use_percentage_val) then
-- Now it is the percentage
if gaigmaig == 0 then
gcompmcomp = '—'
else
gcompmcomp = mm._precision_format(100 * gfor / gaig , 1)
end
else