Module:Election results and Module:Election results/sandbox: Difference between pages
Appearance
(Difference between pages)
Content deleted Content added
+ |
+ |
||
Line 697: | Line 697: | ||
:tag('td') |
:tag('td') |
||
:attr('rowspan', args['candspan' .. v] or args['aspan' .. v]) |
:attr('rowspan', args['candspan' .. v] or args['aspan' .. v]) |
||
:attr('scope', 'row') |
|||
:wikitext(args['cand' .. v]) |
:wikitext(args['cand' .. v]) |
||
end |
end |
||
Line 708: | Line 709: | ||
:tag('td') |
:tag('td') |
||
:attr('rowspan', args['aspan' .. v]) |
:attr('rowspan', args['aspan' .. v]) |
||
:attr('scope', 'row') |
|||
:wikitext(args['alliance' .. v]) |
:wikitext(args['alliance' .. v]) |
||
end |
end |
||
Line 722: | Line 724: | ||
:attr('rowspan', args['aspan' .. v]) |
:attr('rowspan', args['aspan' .. v]) |
||
:attr('colspan', 3) |
:attr('colspan', 3) |
||
:attr('scope', 'row') |
|||
:wikitext(args['alliance' .. v]) |
:wikitext(args['alliance' .. v]) |
||
end |
end |
||
if args['alliance' .. v] and args['party' .. v] then |
if args['alliance' .. v] and args['party' .. v] and not has_cand then |
||
row |
|||
:tag('td') |
|||
:attr('rowspan', args['aspan' .. v]) |
|||
:attr('scope', 'row') |
|||
:wikitext(args['alliance' .. v]) |
|||
elseif args['alliance' .. v] and args['party' .. v] and args.dsv then |
|||
row |
|||
:tag('td') |
|||
:attr('rowspan', args['aspan' .. v]) |
|||
:attr('scope', 'row') |
|||
:wikitext(args['alliance' .. v]) |
|||
elseif args['alliance' .. v] and args['party' .. v] then |
|||
row |
row |
||
:tag('td') |
:tag('td') |
||
Line 730: | Line 745: | ||
:wikitext(args['alliance' .. v]) |
:wikitext(args['alliance' .. v]) |
||
end |
end |
||
if args['party' .. v] and not has_alliance |
if args['party' .. v] and not has_alliance and args.dsv then |
||
row |
|||
:tag('td') |
|||
:attr('scope', 'row') |
|||
:wikitext(args['party' .. v]) |
|||
elseif args['party' .. v] and not has_cand and not has_alliance then |
|||
row |
|||
:tag('td') |
|||
:attr('scope', 'row') |
|||
:wikitext(args['party' .. v]) |
|||
elseif args['party' .. v] and not has_alliance or args['cand' .. v] and has_party and not has_alliance then |
|||
row |
row |
||
:tag('td') |
:tag('td') |
||
Line 740: | Line 765: | ||
:tag('td') |
:tag('td') |
||
:attr('colspan', cs) |
:attr('colspan', cs) |
||
:attr('scope', 'row') |
|||
:wikitext(args['row' .. v]) |
:wikitext(args['row' .. v]) |
||
end |
end |
||
Line 760: | Line 786: | ||
:tag('td') |
:tag('td') |
||
:attr('colspan', 2) |
:attr('colspan', 2) |
||
:attr('scope', 'row') |
|||
:wikitext('Total') |
:wikitext('Total') |
||
end |
end |
||
Line 766: | Line 793: | ||
:css('font-style', 'italic') |
:css('font-style', 'italic') |
||
:tag('td') |
:tag('td') |
||
:attr('scope', 'row') |
|||
:wikitext('Total') |
:wikitext('Total') |
||
end |
end |
||
Line 773: | Line 801: | ||
:tag('td') |
:tag('td') |
||
:attr('colspan', 3) |
:attr('colspan', 3) |
||
:attr('scope', 'row') |
|||
:wikitext('Total') |
:wikitext('Total') |
||
end |
end |