לדלג לתוכן

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

Make registered voters row only appear if electorate is entered
(Add swing parameter)
(Make registered voters row only appear if electorate is entered)
end
-- registered
if args['electorate'] then
row = root:tag('tr')
:addClass('sortbottom')
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)
:attr('colspan', cspan > 1 and cspan or nil)
end
end
 
row = root:tag('tr')
:addClass('sortbottom')