Module:Election results-STV: Difference between revisions

Content deleted Content added
+
+
Line 263:
end
secondrow = args['embed'] and mw.html.create('') or root:tag('tr')
if not args('nopercentage') then
row
:tag('th')
:wikitext('First roundcount')
:attr('colspan', 2)
if has_votes2 then
row
:tag('th')
:wikitext('Second roundcount')
:attr('colspan', cs)
end
if has_votes3 then
row
:tag('th')
:wikitext('Third count')
:attr('colspan', 2)
end
if has_votes4 then
row
:tag('th')
:wikitext('Fourth count')
:attr('colspan', 2)
end
if has_votes5 then
row
:tag('th')
:wikitext('Fifth count')
:attr('colspan', 2)
end
if has_votes6 then
row
:tag('th')
:wikitext('Sixth count')
:attr('colspan', 2)
end
if has_votes7 then
row
:tag('th')
:wikitext('Seventh count')
:attr('colspan', 2)
end
if has_votes8 then
row
:tag('th')
:wikitext('Eighth count')
:attr('colspan', 2)
end
if has_votes9 then
row
:tag('th')
:wikitext('Ninth count')
:attr('colspan', 2)
end
if has_votes10 then
row
:tag('th')
:wikitext('Tenth count')
:attr('colspan', 2)
end
if has_votes11 then
row
:tag('th')
:wikitext('Eleventh count')
:attr('colspan', 2)
end
if has_votes12 then
row
:tag('th')
:wikitext('Twelfth count')
:attr('colspan', 2)
end
if has_votes13 then
row
:tag('th')
:wikitext('Thirteenth count')
:attr('colspan', 2)
end
elseif args('nopercentage') then
row
:tag('th')
:wikitext('FP %')
:attr('rowspan', 2)
:tag('th')
:wikitext('Count')
:attr('colspan', 20)
end
if not args('nopercentage') then
secondrow
:tag('th')
Line 294 ⟶ 371:
:done()
cols = cols + 2
end
elseif not args('nopercentage') then
secondrow
:tag('th')
:wikitext('1')
:attr('scope', 'col')
:done()
cols = cols + 1
if has_votes2 then
secondrow
:tag('th')
:wikitext('2')
:attr('scope', 'col')
:done()
cols = cols + 1
end
end