יחידה:Election results – הבדלי גרסאות

תוכן שנמחק תוכן שנוסף
Add swing parameter
Make registered voters row only appear if electorate is entered
שורה 396:
end
-- registered
if args['electorate'] then
row = root:tag('tr')
:addClass('sortbottom')
שורה 412 ⟵ 413:
row:tag('td')
:wikitext(pct(ovalid[k] + invalid[k], electorate[k]))
end
if headings['sw'] or headings['seats'] or headings['sc'] then
local cspan = (headings['sw'] and 1 or 0) + (headings['seats'] and 1 or 0) + (headings['sc'] and 1 or 0)
שורה 419 ⟵ 420:
:attr('colspan', cspan > 1 and cspan or nil)
end
end
 
row = root:tag('tr')
:addClass('sortbottom')