Module:Sports table/WDL: Difference between revisions

Content deleted Content added
per request, adding optional |pct_style=notratio per request
condition
Line 302:
mm._precision_format(100*(2*wins + draws) / (2*matches), 1)
ppg = mm._precision_format(points / matches, 2)
if (losses > 0 or draws > 0) and pct_style == 'ratio' then
-- Drop the leading zero (from the string)
win_perc = string.sub(win_perc,2,string.len(win_perc))