User:CX Zoom/Template:Election box roundwise rank choice candidate/sandbox
|- class="vcard" | style="background-color: #F8F9FA; width: 2px;" | | class="org" style="width: 130px" | [[{{{party}}}|{{{party}}}]] | class="fn" | {{{candidate}}}
| style="text-align:right;" | {{{r1v}}} | style="text-align:right;" | {{{r1p}}} | style="text-align:right;" | {{{r1t}}} | style="text-align:right;" | {{{r2v}}} | style="text-align:right;" | {{{r2g}}} | style="text-align:right;" | {{{r2n}}} | style="text-align:right;" | {{{r2t}}} | style="text-align:right;" | {{{r3v}}} | style="text-align:right;" | {{{r3g}}} | style="text-align:right;" | {{{r3n}}} | style="text-align:right;" | {{{r3t}}} | style="text-align:right;" | {{{r4v}}} | style="text-align:right;" | {{{r4g}}} | style="text-align:right;" | {{{r4n}}} | style="text-align:right;" | {{{r4t}}} | style="text-align:right;" | {{{r5v}}} | style="text-align:right;" | {{{r5g}}} | style="text-align:right;" | {{{r5n}}} | style="text-align:right;" | {{{r5t}}} | style="text-align:right;" | {{{r6v}}} | style="text-align:right;" | {{{r6g}}} | style="text-align:right;" | {{{r6n}}} |-
This is the sandbox page for User:CX Zoom/Template:Election box roundwise rank choice candidate (diff). See also the companion subpage for test cases. |
TemplateData
editNote:
- Parameters consisting r6 in their names, appear if rounds is set to 6.
- Parameters consisting r5 in their names, appear if rounds is set to 5 or more.
- Parameters consisting r4 in their names, appear if rounds is set to 4 or more.
- Parameters consisting r3 in their names, appear if rounds is set to 3 or more.
- Therefore, no requirement to use such parameters, if they are not supposed to appear.
TemplateData for CX Zoom/Template:Election box roundwise rank choice candidate
Displays the results of an individual in election box roundwise rank choice.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Rounds | rounds | Number of rounds in the election. (Min: 2, Max:6) | Number | required |
Party | party | Name of party. No enclosing in [[brackets]]. | String | required |
Candidate | candidate | Name of candidate. Enclose in [[brackets]] as usual, if article exists. | String | required |
Elect color | electcolor | Background color for the round in which the candidate is elected. Do not use if the candidate is not elected.
| Unknown | optional |
Round 1 votes | r1v | Votes received in round 1. | Number | required |
Round 1 pct | r1p | % votes received in round 1. | Unknown | required |
Round 1 transfer | r1t | Votes transferred in round 1 for round 2. | Number | required |
Round 1 lost votes | r1lostvotes | If set to yes, turns background color of "Round 1 transfer" cell as pink. Denotes that votes are lost as a result of the transfer. It is case sensitive. | String | optional |
Round 1 eliminated | r1eliminated | If set to yes, denotes the candidate is eliminated from this round (#1). It is case sensitive. | String | optional |
Round 2 votes | r2v | Cumulative votes in round 2. | Number | optional |
Round 2 gross pct | r2g | %(gross): cumulative votes in round 2 as a %age of total votes cast. | Unknown | optional |
Round 2 net pct | r2n | %(net): cumulative votes in round 2 as a %age of total active votes in this round (#2). | Unknown | optional |
Round 2 transfer | r2t | Votes transferred in round 2 for round 3. | Number | optional |
Round 2 lost votes | r2lostvotes | If set to yes, turns background color of "Round 2 transfer" cell as pink. Denotes that votes are lost as a result of the transfer. It is case sensitive. | String | optional |
Round 2 eliminated | r2eliminated | If set to yes, denotes the candidate is eliminated from this round (#2). It is case sensitive. | String | optional |
Round 2 elected | r2elected | If set to yes, denotes the candidate is elected in this round (#2). It is case sensitive. Works only if, rounds=2. | String | optional |
Round 3 votes | r3v | Cumulative votes in round 3. | Number | optional |
Round 3 gross pct | r3g | %(gross): cumulative votes in round 3 as a %age of total votes cast. | Unknown | optional |
Round 3 net pct | r3n | %(net): cumulative votes in round 3 as a %age of total active votes in this round (#3). | Unknown | optional |
Round 3 transfer | r3t | Votes transferred in round 3 for round 4. | Number | optional |
Round 3 lost votes | r3lostvotes | If set to yes, turns background color of "Round 3 transfer" cell as pink. Denotes that votes are lost as a result of the transfer. It is case sensitive. | String | optional |
Round 3 eliminated | r3eliminated | If set to yes, denotes the candidate is eliminated from this round (#3). It is case sensitive. | String | optional |
Round 3 elected | r3elected | If set to yes, denotes the candidate is elected in this round (#3). It is case sensitive. Works only if, rounds=3. | String | optional |
Round 4 votes | r4v | Cumulative votes in round 4. | Number | optional |
Round 4 gross pct | r4g | %(gross): cumulative votes in round 4 as a %age of total votes cast. | Unknown | optional |
Round 4 net pct | r4n | %(net): cumulative votes in round 4 as a %age of total active votes in this round (#4). | Unknown | optional |
Round 4 transfer | r4t | Votes transferred in round 4 for round 5. | Number | optional |
Round 4 lost votes | r4lostvotes | If set to yes, turns background color of "Round 4 transfer" cell as pink. Denotes that votes are lost as a result of the transfer. It is case sensitive. | String | optional |
Round 4 eliminated | r4eliminated | If set to yes, denotes the candidate is eliminated from this round (#4). It is case sensitive. | String | optional |
Round 4 elected | r4elected | If set to yes, denotes the candidate is elected in this round (#4). It is case sensitive. Works only if, rounds=4. | String | optional |
Round 5 votes | r5v | Cumulative votes in round 5. | Number | optional |
Round 5 gross pct | r5g | %(gross): cumulative votes in round 5 as a %age of total votes cast. | Unknown | optional |
Round 5 net pct | r5n | %(net): cumulative votes in round 5 as a %age of total active votes in this round (#5). | Unknown | optional |
Round 5 transfer | r5t | Votes transferred in round 5 for round 6. | Number | optional |
Round 5 lost votes | r5lostvotes | If set to yes, turns background color of "Round 5 transfer" cell as pink. Denotes that votes are lost as a result of the transfer. It is case sensitive. | String | optional |
Round 5 eliminated | r5eliminated | If set to yes, denotes the candidate is eliminated from this round (#5). It is case sensitive. | String | optional |
Round 5 elected | r5elected | If set to yes, denotes the candidate is elected in this round (#5). It is case sensitive. Works only if, rounds=5. | String | optional |
Round 6 votes | r6v | Cumulative votes in round 6. | Number | optional |
Round 6 gross pct | r6g | %(gross): cumulative votes in round 6 as a %age of total votes cast. | Unknown | optional |
Round 6 net pct | r6n | %(net): cumulative votes in round 6 as a %age of total active votes in this round (#6). | Unknown | optional |
Round 6 elected | r6elected | If set to yes, denotes the candidate is elected in this round (#6). It is case sensitive. Works only if, rounds=6. | String | optional |