Module:Election results/sandbox: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 230:
row:tag('td')
:css('text-align', 'right')
:wikitext(string.format('%.2f%%', args['votes' .. v .. suf] / valid[kk] * 100))
else
row:tag('td'):attr('colspan', 2)
Line 251:
row:tag('td')
:css('text-align', 'right')
:wikitext(string.format('%.2f%%', args['votes' .. v .. suf] / valid[kk] * 100))
else
row:tag('td'):attr('colspan', 2)
Line 269:
row:tag('td')
:css('text-align', 'right')
:wikitext(string.format('%.2f%%', args['votes' .. v .. suf] / valid[kk] * 100))
else
row:tag('td'):attr('colspan', 2)
Line 298:
:wikitext(fmt(valid[k]))
:tag('td')
:wikitext(string.format('%.2f%%', valid[k] / (valid[k] + invalid[k]) * 100))
end
row = root:tag('tr')
Line 314:
:wikitext(fmt(invalid[k]))
:tag('td')
:wikitext(string.format('%.2f%%', invalid[k] / (valid[k] + invalid[k]) * 100))
end
row = root:tag('tr')
Line 346:
:wikitext(fmt(electorate[k]))
row:tag('td')
:wikitext(string.format('%.2f%%', (valid[k] + invalid[k]) / electorate[k] * 100))
end
row = root:tag('tr')