Difference between revisions of "Template:Election box ranked choice first round ballots"

From blackwiki
Jump to navigation Jump to search
imported>WOSlinker
(tidy style for better HTML5 compatibility)
imported>Matt Fitzpatrick
(table code cleanup - wikitable class, <caption> instead of <tr colspan="3">, <br> instead of nested tables for line breaks)
 
Line 1: Line 1:
{| border="1" cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0; background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse; font-size: 95%;"
+
{| class="wikitable" style="margin-right: 1em; font-size: 95%;"
|- style="background-color:#E9E9E9"
+
|+ style="background-color:#e9e9e9;margin-bottom:-1px;border:1px solid #aaa;padding:.2em .4em" | {{{title}}}<br />First Round Ballot Summary
! colspan="3" style="text-align:center;" |
 
{|
 
 
|-
 
|-
| style="text-align:center;" | {{{title}}}
+
| style="background:#eee" |
 +
! scope="col" style="background:#eee" | Count
 +
! scope="col" style="background:#eee" | Share of<br />Contest<br />Ballots
 
|-
 
|-
| style="text-align:center;" | First Round Ballot Summary
+
| Continuing Votes
|}
 
|- style="background-color:#EEEEEE"
 
!  &nbsp;
 
! Count
 
! style="text-align:center;" |
 
{|
 
|-
 
| style="text-align:center;" | Share of
 
|-
 
| style="text-align:center;" | Contest
 
|-
 
| style="text-align:center;" | Ballots
 
|}
 
|-
 
| style="text-align:left;" | Continuing Votes
 
 
| style="text-align:right;" | {{formatnum: {{{contvotes}}} }}
 
| style="text-align:right;" | {{formatnum: {{{contvotes}}} }}
 
| style="text-align:right;" | {{rndpad|{{#expr:{{{contvotes|0}}}/{{{contestballots|1}}}*100}}|2}}%
 
| style="text-align:right;" | {{rndpad|{{#expr:{{{contvotes|0}}}/{{{contestballots|1}}}*100}}|2}}%
 
|-
 
|-
| style="text-align:left;" | Over Votes
+
| Over Votes
 
| style="text-align:right;" | {{formatnum: {{{overvotes}}} }}
 
| style="text-align:right;" | {{formatnum: {{{overvotes}}} }}
 
| style="text-align:right;" | {{rndpad|{{#expr:{{{overvotes|0}}}/{{{contestballots|1}}}*100}}|2}}%
 
| style="text-align:right;" | {{rndpad|{{#expr:{{{overvotes|0}}}/{{{contestballots|1}}}*100}}|2}}%
 
|-
 
|-
| style="text-align:left;" | Under Votes
+
| Under Votes
 
| style="text-align:right;" | {{formatnum: {{{undervotes}}} }}
 
| style="text-align:right;" | {{formatnum: {{{undervotes}}} }}
 
| style="text-align:right;" | {{rndpad|{{#expr:{{{undervotes|0}}}/{{{contestballots|1}}}*100}}|2}}%
 
| style="text-align:right;" | {{rndpad|{{#expr:{{{undervotes|0}}}/{{{contestballots|1}}}*100}}|2}}%
 
|-
 
|-
| style="text-align:left;" | Contest Ballots
+
| Contest Ballots
 
| style="text-align:right;" | {{formatnum: {{{contestballots}}} }}
 
| style="text-align:right;" | {{formatnum: {{{contestballots}}} }}
 
| style="text-align:right;" | {{rndpad|{{#expr:{{{contestballots|0}}}/{{{contestballots|1}}}*100}}|2}}%
 
| style="text-align:right;" | {{rndpad|{{#expr:{{{contestballots|0}}}/{{{contestballots|1}}}*100}}|2}}%
 
|-
 
|-
| style="text-align:left;" | Registered Voters
+
| Registered Voters
 
| style="text-align:right;" | {{formatnum: {{{registeredvoters}}} }}
 
| style="text-align:right;" | {{formatnum: {{{registeredvoters}}} }}
| style="background-color:#aaaaaa" |
+
| rowspan="2" style="background-color:#aaaaaa" |
 
|-
 
|-
| style="text-align:left;" | Contest Turnout
+
| Contest Turnout
 
| style="text-align:right;" | {{rndpad|{{#expr:{{{contestballots|0}}}/{{{registeredvoters|1}}}*100}}|2}}%  
 
| style="text-align:right;" | {{rndpad|{{#expr:{{{contestballots|0}}}/{{{registeredvoters|1}}}*100}}|2}}%  
| style="background-color:#aaaaaa" |
 
 
|}  
 
|}  
 
<noinclude>
 
<noinclude>

Latest revision as of 04:21, 30 August 2016

{{{title}}}
First Round Ballot Summary
Count Share of
Contest
Ballots
Continuing Votes {{{contvotes}}} Template:Rndpad%
Over Votes {{{overvotes}}} Template:Rndpad%
Under Votes {{{undervotes}}} Template:Rndpad%
Contest Ballots {{{contestballots}}} Template:Rndpad%
Registered Voters {{{registeredvoters}}}
Contest Turnout Template:Rndpad%
50px Template documentation[view] [edit] [history] [purge]

This template creates a summary of table for the first round of a ranked choice voting contest. It summarizes the status of ballots other than which ballots counted for which candidates. It lists counts for the number of continuing ballots, over votes, under votes, total contest ballots, and registered voters. The template also calculates relevant percentages associated with those counts.

Usage

The following table describes the parameters to use with this template.

Parameter Name Required? Default Value Description
contvotes required undefined The number of votes that counted for some candidate in the first round.

Example: contvotes=247831

overvotes required undefined The number of ballots for which the most-preferred marked choice is marked for more than one candidate.

Example: overvotes=1217

undervotes required undefined The number of ballots that did not mark any choices for a candidate.

Example: undervotes=4829

contestballots required undefined The number of ballots cast for the contest.

Example: contestballots=253877

registeredvoters required undefined The number of voters registered to vote in the contest.

Example: registeredvoters=492682

Examples

{{Template:Election box ranked choice first round ballots
| title = San Francisco mayoral election, 2011<ref>http://www.sfelections.org/results/20111108/</ref>
| contvotes = 194418 | overvotes = 820 | undervotes = 2004 | contestballots = 197242 | registeredvoters = 464380
}}

San Francisco mayoral election, 2011[1]
First Round Ballot Summary
Count Share of
Contest
Ballots
Continuing Votes 194,418 Template:Rndpad%
Over Votes 820 Template:Rndpad%
Under Votes 2,004 Template:Rndpad%
Contest Ballots 197,242 Template:Rndpad%
Registered Voters 464,380
Contest Turnout Template:Rndpad%


See also