Module:Election results: Difference between revisions

Administrator (talk | contribs)
m 1 revision imported
Administrator (talk | contribs)
No edit summary
Line 37: Line 37:
end
end
local function pct(n, d)
local function pct(n, d)
-- Check if percentages should be shown
if args.no_percentages == "true" then
return '–'
end
n, d = tonumber(n), tonumber(d)
n, d = tonumber(n), tonumber(d)
if n and d and d > 0 then
if n and d and d > 0 then