Content deleted Content added
new optional feature for New Caledonia national football team 1980–99 results |
should fix latest error |
||
Line 289:
end
local win_perc = ''
--Some sports use draw as well▼
local ppg = ''
local win_perc = mm._precision_format((2*wins + draws) / (2*matches), 3)▼
if tonumber(matches) == nil or matches == 0 then ▼
▲ if matches == 0 then
-- Escape for zero matches
win_perc = '—'
ppg = '—'
else
elseif losses > 0 or draws > 0 then▼
-- Drop the leading zero (from the string)▼
win_perc =
▲ -- Drop the leading zero (from the string)
win_perc = string.sub(win_perc,2,string.len(win_perc))
end
end
if ranking_style=='wperc' or ranking_style=='win percentage' or ranking_style=='wpct' then
|