Template:Election box ranked choice begin/testcases

From blackwiki
Jump to navigation Jump to search

Basic

Testing sandbox version

With new parameters:

{{Election box ranked choice begin/sandbox | title=Alcatraz mayor, 1935 }}

{{Election box ranked choice candidate with party link
| party = Republican Party (US) | candidate = [[Aaron Adimsan]]
| maxround=2 | maxvotes=1120 | maxvotespercent=56.00 | r1votes=750 | fullwidthvotes=1200
}}

{{Election box ranked choice end}}

Alcatraz mayor, 1935
Party Candidate
Maximum
Round
Maximum
Votes
Share in
Maximum
Round
Maximum Votes
 First Round Votes  Transfer Votes 
style="background-color: Template:Republican Party (US)/meta/color; width: 2px;" | [[Republican Party (US)|Template:Republican Party (US)/meta/shortname]] Aaron Adimsan 2 1,120 56.00%

With old parameters:

Alcatraz mayor, 1935
Party Candidate
Maximum
Round
Maximum
Votes
Share in
Maximum
Round
Maximum Votes
 First Round Votes  Transfer Votes 
style="background-color: Template:Republican Party (US)/meta/color; width: 2px;" | [[Republican Party (US)|Template:Republican Party (US)/meta/shortname]] Aaron Adimsan 2 1,120 56.00%

Testing main template

{{Election box ranked choice begin | title=Alcatraz mayor, 1935 }}

{{Election box candidate ranked choice with party link
| party = Republican Party (US) | candidate = [[Aaron Adimsan]]
| maxround=2 | maxvotes=1,120 | maxvotespercent=56.00 | r1voteswidth=25.00ex | transfervoteswidth=12.33ex
}}

{{Election box ranked choice end}}

Alcatraz mayor, 1935
Party Candidate Maximum
Round
Maximum
Votes
Share in
Maximum
Round
Maximum Votes
First Round VotesTransfer Votes
style="background-color: Template:Republican Party (US)/meta/color; width: 2px;" | [[Republican Party (US)|Template:Republican Party (US)/meta/shortname]] Aaron Adimsan 2 1,120 56.00%

Extract of article example

Testing sandbox version with new parameters

San Francisco mayoral election, 2011[1]
Party Candidate
Maximum
Round
Maximum
Votes
Share in
Maximum
Round
Maximum Votes
 First Round Votes  Transfer Votes 
style="background-color: Template:Political party color; width: 2px;" | Democratic Ed Lee (incumbent) 12 84,457 59.64%
style="background-color: Template:Political party color; width: 2px;" | Democratic John Avalos 12 57,160 40.36%
Independent Tony Hall 6 7,896 4.14%
style="background-color: Template:Republican Party (US)/meta/color; width: 2px;" | [[Republican Party (US)|Template:Republican Party (US)/meta/shortname]] Wilma Pang 3 469 0.24%
style="background-color: Template:Unknown/meta/color; width: 2px;" | (unknown) Emil Lawrence 2 397 0.20%
Independent Write-in 1 38 0.02%

Testing sandbox version with old parameters

San Francisco mayoral election, 2011[2]
Party Candidate
Maximum
Round
Maximum
Votes
Share in
Maximum
Round
Maximum Votes
 First Round Votes  Transfer Votes 
style="background-color: Template:Political party color; width: 2px;" | Democratic Ed Lee (incumbent) 12 84,457 59.64%
style="background-color: Template:Political party color; width: 2px;" | Democratic John Avalos 12 57,160 40.36%
Independent Tony Hall 6 7,896 4.14%
style="background-color: Template:Republican Party (US)/meta/color; width: 2px;" | [[Republican Party (US)|Template:Republican Party (US)/meta/shortname]] Wilma Pang 3 469 0.24%
style="background-color: Template:Unknown/meta/color; width: 2px;" | (unknown) Emil Lawrence 2 397 0.20%
Independent Write-in 1 38 0.02%

Testing main template

San Francisco mayoral election, 2011[3]
Party Candidate Maximum
Round
Maximum
Votes
Share in
Maximum
Round
Maximum Votes
First Round VotesTransfer Votes
style="background-color: Template:Political party color; width: 2px;" | Democratic Ed Lee (incumbent) 12 84,457 59.64%
style="background-color: Template:Political party color; width: 2px;" | Democratic John Avalos 12 57,160 40.36%
Independent Tony Hall 6 7,896 4.14%
style="background-color: Template:Republican Party (US)/meta/color; width: 2px;" | [[Republican Party (US)|Template:Republican Party (US)/meta/shortname]] Wilma Pang 3 469 0.24%
style="background-color: Template:Unknown/meta/color; width: 2px;" | (unknown) Emil Lawrence 2 397 0.20%
Independent Write-in 1 38 0.02%

Reference List