Modül:Spor tablosu/WL: Revizyonlar arasındaki fark

[kontrol edilmiş revizyon][kontrol edilmiş revizyon]
İçerik silindi İçerik eklendi
Oltnilhn (mesaj | katkılar)
Türkçeleştirme
Sıfıra bölme hatası düzeltildi
134. satır:
local matches = wins + losses
local points = win_points*wins + loss_points*losses + s_pts
local win_perc = '—'
if matches > 0 then
mm._precision_format(wins / matches, 3)
end
if matcheslosses ==> 0 then
-- Escape for zero matches
win_perc = '—'
elseif losses > 0 then
-- Drop the leading zero (from the string)
win_perc = string.sub(win_perc,2,string.len(win_perc))