Module:Sandbox/Frietjes: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 11:
local w = tonumber(frame.args[1]) or 0
local l = tonumber(frame.args[2]) or 0
return rnd(w / (w + l), 2):gsub('^0', '')
if frame.args['legacy'] then
--if (w + l) > 0 then
frame:expandTemplate{ title = 'winning percentage', args = {w, l} }
-- return rnd(w / (w + l), 2):gsub('^0', '')
--end
if (w + l) > 0 then
--return '–'
return rnd(w / (w + l), 2):gsub('^0', '')
end
return '–'
end