Difference between revisions of "Template:Election box ranked choice first round ballots/sandbox"
imported>DCary (corrections) |
imported>WOSlinker (replace bgcolor with style="background-color: and other style) |
||
| 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%;" | {| border="1" cellpadding="4" cellspacing="0" style="margin: 1em 1em 1em 0; background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse; font-size: 95%;" | ||
|- style="background-color:#E9E9E9" | |- style="background-color:#E9E9E9" | ||
| − | ! colspan="3" | + | ! colspan="3" style="text-align:center;" | |
{| | {| | ||
|- | |- | ||
| − | | | + | | style="text-align:center;" | {{{title}}} |
|- | |- | ||
| − | | | + | | style="text-align:center;" | First Round Ballot Summary |
|} | |} | ||
| − | |- | + | |- style="background-color:#EEEEEE" |
! | ! | ||
! Count | ! 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;" | {{rndpad|{{#expr:{{{contvotes|0}}}/{{{contestballots|1}}}*100}}|2}}% |
|- | |- | ||
| − | | | + | | style="text-align:left;" | Over Votes |
| − | | | + | | style="text-align:right;" | {{formatnum: {{{overvotes}}} }} |
| − | | | + | | style="text-align:right;" | {{rndpad|{{#expr:{{{overvotes|0}}}/{{{contestballots|1}}}*100}}|2}}% |
|- | |- | ||
| − | | | + | | style="text-align:left;" | Under Votes |
| − | | | + | | style="text-align:right;" | {{formatnum: {{{undervotes}}} }} |
| − | | | + | | style="text-align:right;" | {{rndpad|{{#expr:{{{undervotes|0}}}/{{{contestballots|1}}}*100}}|2}}% |
|- | |- | ||
| − | | | + | | style="text-align:left;" | Contest Ballots |
| − | | | + | | style="text-align:right;" | {{formatnum: {{{contestballots}}} }} |
| − | | | + | | style="text-align:right;" | {{rndpad|{{#expr:{{{contestballots|0}}}/{{{contestballots|1}}}*100}}|2}}% |
|- | |- | ||
| − | | | + | | style="text-align:left;" | Registered Voters |
| − | | | + | | style="text-align:right;" | {{formatnum: {{{registeredvoters}}} }} |
| − | | | + | | style="background-color:#aaaaaa" | |
|- | |- | ||
| − | | | + | | style="text-align:left;" | Contest Turnout |
| − | | | + | | style="text-align:right;" | {{rndpad|{{#expr:{{{contestballots|0}}}/{{{registeredvoters|1}}}*100}}|2}}% |
| − | | | + | | style="background-color:#aaaaaa" | |
|} | |} | ||
<noinclude> | <noinclude> | ||
Latest revision as of 22:45, 4 November 2014
| |||||
|---|---|---|---|---|---|
| Count |
| ||||
| 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 | This is the template sandbox page for Template:Election box ranked choice first round ballots (diff). See also the companion subpage for test cases. |
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
}}
| 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
| The above documentation is transcluded from Template:Election box ranked choice first round ballots/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |
| 50px | This is the template sandbox page for Template:Election box ranked choice first round ballots (diff). See also the companion subpage for test cases. |