Difference between revisions of "Template:Election box ranked choice begin/doc"
imported>DCary (change example to use new parameters) |
imported>John of Reading m (Typo fixing, replaced: the the → the, typos fixed: affliation → affiliation using AWB) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | ||
| − | This template begins a summary table of candidates for a ranked choice voting (instant runoff) election contest. The table contains information about party | + | This template begins a summary table of candidates for a ranked choice voting (instant runoff) election contest. The table contains information about party affiliation, candidate name, and the maximum number of votes counted for the candidate. |
| − | This template starts the table, providing the table column headings. The table should always be completed with | + | This template starts the table, providing the table column headings. The table should always be completed with the [[Template:Election box ranked choice end]]. In between those two templates, one or more templates such as [[Template:Election box ranked choice candidate with party link]] can describe the candidates. |
== Usage == | == Usage == | ||
Revision as of 20:23, 6 March 2012
| 40px | This is a documentation subpage for Template:Election box ranked choice begin. It contains usage information, categories and other content that is not part of the original template page. |
This template begins a summary table of candidates for a ranked choice voting (instant runoff) election contest. The table contains information about party affiliation, candidate name, and the maximum number of votes counted for the candidate.
This template starts the table, providing the table column headings. The table should always be completed with the Template:Election box ranked choice end. In between those two templates, one or more templates such as Template:Election box ranked choice candidate with party link can describe the candidates.
Usage
The following table describes the parameters to use with this template.
| Parameter Name | Required? | Default Value | Description |
|---|---|---|---|
| title | required | undefined | The name of the contest being described, including possibly citations for the data.
Example: title=Jurisdiction name office, year |
| partywidth | optional | undefined | Combined width of party color and party name columns.
Use to fold long party names and avoid extra wide columns. If not given, fit width to column content. Example: partywidth=30ex |
| candidatewidth | optional | undefined | Width of the candidate name column.
Use to fold long candidate names and avoid extra wide columns. If not given, fit width to column content. Example: candidatewidth=25ex |
| barwidth | optional | 40ex | Width of the max votes bar graph column.
Use the same or smaller values to describe the available width for bars of each candidate. Example: barwidth=20ex |
Examples
Basic example
{{{{Election box ranked choice begin | title=Alcatraz mayor, 1935 }}
{{Election box ranked choice candidate with party link
| party = Republican Party (United States) | candidate = [[Aaron Adimsan]]
| maxround=2 | maxvotes=112 | maxvotespercent=56.00 | r1votes=75 | fullwidthvotes=120
}}
{{Election box ranked choice candidate with party link
| party = Democratic Party (United States)
| candidate = [[Billy Belingtoon]]
| maxround=2 | maxvotes=88 | maxvotespercent=44.00 | r1votes=67 | fullwidthvotes=120
}}
{{Election box ranked choice candidate with party link
| party = Independent (politician) | candidate = [[Charles Crankellz]]
| maxround=2 | maxvotes=61 | maxvotespercent=30.05 | r1votes=61 | fullwidthvotes=120
}}
{{Election box ranked choice end}}
| Party | Candidate | Maximum Round |
Maximum Votes |
Share in Maximum Round |
Maximum Votes First Round VotesTransfer Votes | |
|---|---|---|---|---|---|---|
| style="background-color: Template:Republican Party (United States)/meta/color; width: 2px;" | | [[Republican Party (United States)|Template:Republican Party (United States)/meta/shortname]] | Aaron Adimsan | 2 | 112 | 56.00% |
|
| style="background-color: Template:Political party color; width: 2px;" | | Democratic | Billy Belingtoon | 2 | 88 | 44.00% |
|
| Independent | Charles Crankellz | 1 | 61 | 30.05% |
| |