Module:Infobox election/sandbox: Difference between revisions

Content deleted Content added
add first round and final round
debug
Line 22:
if always or ( notblank(rargs[cellType .. '1']) or notblank(rargs[cellType .. '2']) or notblank(rargs[cellType .. '3']) ) then
output('|-')
output('! style="width:75px;text-align:left" |' .. (ifblank(title or, ucfirst(cellType or ''))))
output(centeredCell(cellType .. '1'))
output(centeredCell(cellType .. '2'))
Line 103:
threeCells('party', ifblank(rargs.party_label, 'Party'), false, true) -- party, alternative name, don't always show, use shortname
-- Alliance name --
threeCells('alliance', '', false, true) -- alliance, notno alternative title, don't always show, use shortname
-- Primary or presidential
if rtype == 'primary' or rtype == 'presidential' then
Line 112:
threeCells('running_mate')
-- Electoral vote --
threeCells('electoral_vote', (rargs.college_votescollege_voted == 'no' and 'Projected e' or 'E') .. 'lectoral vote')
end
-- Delegate count --
threeCells('delegate_count', (rargs.ongoingsongoing == 'yes' and 'Estimated d' or 'D') .. 'elegate count')
-- States carried --
threeCells('states_carried', rtype == 'primary' and 'Contests won' or 'States carried')