Template:Election box ranked choice begin/testcases
Jump to navigation
Jump to search
This is the template test cases page for the sandbox of Template:Election box ranked choice begin. Script error: No such module "Purge". to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki, see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins with these links: |
Contents
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 |
|
|
|
| ||||||||||
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 |
|
|
|
| ||||||||||
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}}
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 |
|
|
|
| ||||||||||
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 |
|
|
|
| ||||||||||
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
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% |
|