Difference between revisions of "Template:Election box/US blanks"

From blackwiki
Jump to navigation Jump to search
imported>GoldRingChip
({{End}} {{Green Party (US)/meta/color}})
imported>GoldRingChip
(Formatting)
 
Line 6: Line 6:
 
Included are rows for the most common parties in the United States: [[Democratic Party (United States)|Democratic]], [[Republican Party (United States)|Republican]], [[Constitution Party (United States)|Constitution]], [[Green Party of the United States|Green]], and [[Libertarian Party (United States)|Libertarian]]. Delete any that don't apply, and add any that do, as required.
 
Included are rows for the most common parties in the United States: [[Democratic Party (United States)|Democratic]], [[Republican Party (United States)|Republican]], [[Constitution Party (United States)|Constitution]], [[Green Party of the United States|Green]], and [[Libertarian Party (United States)|Libertarian]]. Delete any that don't apply, and add any that do, as required.
  
{{Election box begin no change | title=[2006 Ohio gubernatorial election]}}
+
{{Election box begin no change | title=[2006 Ohio gubernatorial election]
 +
}}
 
{{Election box winning candidate with party link no change
 
{{Election box winning candidate with party link no change
  |party      = Democratic Party (US)
+
| party      = Democratic Party (US)
  |candidate  = [[Barack Obama]]
+
| candidate  = [[Barack Obama]]
  |votes      = 9,999
+
| votes      = 9,999
  |percentage = 99.99
+
| percentage = 99.99
 
}}
 
}}
 
{{Election box candidate with party link no change
 
{{Election box candidate with party link no change
  |party      = Republican Party (US)
+
| party      = Republican Party (US)
  |candidate  = [[John McCain]]
+
| candidate  = [[John McCain]]
  |votes      = 9,999
+
| votes      = 9,999
  |percentage = 99.99
+
| percentage = 99.99
 
}}
 
}}
 
{{Election box candidate with party link no change
 
{{Election box candidate with party link no change
  |party      = Constitution Party (US)
+
| party      = Constitution Party (US)
  |candidate  = [[Chuck Baldwin]]
+
| candidate  = [[Chuck Baldwin]]
  |votes      = 9,999
+
| votes      = 9,999
  |percentage = 99.99
+
| percentage = 99.99
 
}}
 
}}
 
{{Election box candidate with party link no change
 
{{Election box candidate with party link no change
  |party      = Green Party (US)
+
| party      = Green Party (US)
  |candidate  = [[Cynthia McKinney]]
+
| candidate  = [[Cynthia McKinney]]
  |votes      = 9,999
+
| votes      = 9,999
  |percentage = 99.99
+
| percentage = 99.99
 
}}
 
}}
 
{{Election box candidate with party link no change
 
{{Election box candidate with party link no change
  |party      = Libertarian Party (US)
+
| party      = Libertarian Party (US)
  |candidate  = [[Bob Barr]]
+
| candidate  = [[Bob Barr]]
  |votes      = 9,999
+
| votes      = 9,999
  |percentage = 99.99
+
| percentage = 99.99
 
}}
 
}}
 
{{Election box candidate with party link no change
 
{{Election box candidate with party link no change
  |party      = Independent (US)
+
| party      = Independent (US)
  |candidate  = [[Bernie Sanders]]
+
| candidate  = [[Bernie Sanders]]
  |votes      = 9,999
+
| votes      = 9,999
  |percentage = 99.99
+
| percentage = 99.99
 
}}
 
}}
 
{{Election box candidate no change
 
{{Election box candidate no change
  |party      = —
+
| party      = —
  |candidate  = [[write-in candidate|write-in]]s
+
| candidate  = [[write-in candidate|write-in]]s
  |votes      = 9,999
+
| votes      = 9,999
  |percentage = 99.99
+
| percentage = 99.99
 
}}
 
}}
 
{{Election box total no change
 
{{Election box total no change
  |votes      = 9,999
+
| votes      = 9,999
  |percentage = 99.99
+
| percentage = 99.99
 
}}
 
}}
 
{{Election box gain with party link without swing
 
{{Election box gain with party link without swing
  |winner    = Democratic Party (US)
+
| winner    = Democratic Party (US)
  |loser      = Republican Party (US)
+
| loser      = Republican Party (US)
 
}}
 
}}
 
{{End}}
 
{{End}}
  
 
==== Example 2 ====
 
==== Example 2 ====
{{Election box begin no party no change | title=[[1980 Republican National Convention|1980 Republican presidential nomination]]}}
+
{{Election box begin no party no change | title=[[1980 Republican National Convention|1980 Republican presidential nomination]]
{{Election box winning candidate no party no change|
+
}}
  |candidate  = [[Ronald Reagan]]
+
{{Election box winning candidate no party no change
  |votes      = 9999
+
| candidate  = [[Ronald Reagan]]
  |percentage = 99.99
+
| votes      = 9999
 +
| percentage = 99.99
 
}}
 
}}
{{Election box candidate no party no change|
+
{{Election box candidate no party no change
  |candidate  = [[George H. W. Bush]]
+
| candidate  = [[George H. W. Bush]]
  |votes      = 9999
+
| votes      = 9999
  |percentage = 99.99
+
| percentage = 99.99
 
}}
 
}}
{{Election box candidate no party no change|
+
{{Election box candidate no party no change
  |candidate  = [[Harold Stassen]]
+
| candidate  = [[Harold Stassen]]
  |votes      = 9999
+
| votes      = 9999
  |percentage = 99.99
+
| percentage = 99.99
 
}}
 
}}
{{Election box total no party no change|
+
{{Election box total no party no change
  |votes      = 9999
+
| votes      = 9999
  |percentage = 99.99
+
| percentage = 99.99
 
}}
 
}}
{{Election box necessary no party no change|
+
{{Election box necessary no party no change
  |votes      = 6666
+
| votes      = 6666
  |percentage = >66.66
+
| percentage = >66.66
 
}}
 
}}
 
{{End}}
 
{{End}}
Line 90: Line 92:
 
Example 1
 
Example 1
  
{{Election box begin no change | title= }}
+
{{Election box begin no change | title=  
 +
}}
 
{{Election box winning candidate with party link no change
 
{{Election box winning candidate with party link no change
  |party      = Democratic Party (US)
+
| party      = Democratic Party (US)
  |candidate  =  
+
| candidate  =
  |votes      =  
+
| votes      =
  |percentage =  
+
| percentage =
 
}}
 
}}
 
{{Election box candidate with party link no change
 
{{Election box candidate with party link no change
  |party      = Republican Party (US)
+
| party      = Republican Party (US)
  |candidate  =  
+
| candidate  =
  |votes      =  
+
| votes      =
  |percentage =  
+
| percentage =
 
}}
 
}}
 
{{Election box candidate with party link no change
 
{{Election box candidate with party link no change
  |party      = Constitution Party (US)
+
| party      = Constitution Party (US)
  |candidate  =  
+
| candidate  =
  |votes      =  
+
| votes      =
  |percentage =  
+
| percentage =
 
}}
 
}}
 
{{Election box candidate with party link no change
 
{{Election box candidate with party link no change
  |party      = Green Party (US)
+
| party      = Green Party (US)
  |candidate  =  
+
| candidate  =
  |votes      =  
+
| votes      =
  |percentage =  
+
| percentage =
 
}}
 
}}
 
{{Election box candidate with party link no change
 
{{Election box candidate with party link no change
  |party      = Libertarian Party (US)
+
| party      = Libertarian Party (US)
  |candidate  =  
+
| candidate  =
  |votes      =  
+
| votes      =
  |percentage =  
+
| percentage =
 
}}
 
}}
 
{{Election box candidate with party link no change
 
{{Election box candidate with party link no change
  |party      = Independent (US)
+
| party      = Independent (US)
  |candidate  =  
+
| candidate  =
  |votes      =  
+
| votes      =
  |percentage =  
+
| percentage =
 
}}
 
}}
 
{{Election box candidate no change
 
{{Election box candidate no change
  |party      =  
+
| party      =
  |candidate  =  
+
| candidate  =
  |votes      =  
+
| votes      =
  |percentage =  
+
| percentage =
 
}}
 
}}
 
{{Election box total no change
 
{{Election box total no change
  |votes      =  
+
| votes      =
  |percentage = 100
+
| percentage = 100
 
}}
 
}}
 
<!-- Uncomment this section (and delete which ever does not apply) when the results are in:
 
<!-- Uncomment this section (and delete which ever does not apply) when the results are in:
 
{{Election box hold with party link without swing
 
{{Election box hold with party link without swing
  |winner    =  
+
| winner    =
 
}}
 
}}
 
{{Election box gain with party link without swing
 
{{Election box gain with party link without swing
  |winner    =  
+
| winner    =
  |loser      =  
+
| loser      =
 
}}
 
}}
 
-->
 
-->
Line 150: Line 153:
 
Example 2
 
Example 2
  
{{Election box begin no party no change | title= }}
+
{{Election box begin no party no change | title=  
{{Election box winning candidate no party no change|
+
}}
  |candidate  =  
+
{{Election box winning candidate no party no change
  |votes      =  
+
| candidate  =
  |percentage =  
+
| votes      =
 +
| percentage =
 
}}
 
}}
{{Election box candidate no party no change|
+
{{Election box candidate no party no change
  |candidate  =  
+
| candidate  =
  |votes      =  
+
| votes      =
  |percentage =  
+
| percentage =
 
}}
 
}}
{{Election box candidate no party no change|
+
{{Election box candidate no party no change
  |candidate  =  
+
| candidate  =
  |votes      =  
+
| votes      =
  |percentage =  
+
| percentage =
 
}}
 
}}
{{Election box total no party no change|
+
{{Election box total no party no change
  |votes      =  
+
| votes      =
  |percentage = 100
+
| percentage = 100
 
}}
 
}}
{{Election box necessary no party no change|
+
{{Election box necessary no party no change
  |votes      =  
+
| votes      =
  |percentage = &lt;!-- Use ">X" (ie. >50.00, >66.66) or the exact percentage (ie. 50.06 in an election where the number necessary is 996), do not use </nowiki><noinclude>[[Majority#erroneous definitions|erroneous values]]</noinclude><nowiki> such as "50+1" or "51".--&gt;
+
| percentage = &lt;!-- Use ">X" (ie. >50.00, >66.66) or the exact percentage (ie. 50.06 in an election where the number necessary is 996), do not use </nowiki><noinclude>[[Majority#erroneous definitions|erroneous values]]</noinclude><nowiki> such as "50+1" or "51".--&gt;
 
}}
 
}}
 
{{End}}
 
{{End}}

Latest revision as of 14:37, 8 September 2020

Cut and paste the code below to get started. For pending elections, candidates should be listed alphabetically. For past elections, candidates should be listed in descending order of how many votes they got.

Display

Example 1

Included are rows for the most common parties in the United States: Democratic, Republican, Constitution, Green, and Libertarian. Delete any that don't apply, and add any that do, as required.

[2006 Ohio gubernatorial election]
Party Candidate Votes %
style="background-color: Template:Political party color; width: 5px;" | Democratic Barack Obama 9,999 99.99
style="background-color: Template:Republican Party (US)/meta/color; width: 2px;" | [[Republican Party (US)|Template:Republican Party (US)/meta/shortname]] John McCain 9,999 99.99
style="background-color: Template:Political party color; width: 2px;" | Constitution Chuck Baldwin 9,999 99.99
Green Cynthia McKinney 9,999 99.99
style="background-color: Template:Political party color; width: 2px;" | Libertarian Bob Barr 9,999 99.99
style="background-color: Template:Political party color; width: 2px;" | Independent Bernie Sanders 9,999 99.99
write-ins 9,999 99.99
Total votes 9,999 99.99
style="background-color: Template:Political party color" | Democratic gain from [[Republican Party (US)|Template:Republican Party (US)/meta/shortname]]

Example 2

1980 Republican presidential nomination
Candidate Votes %
Ronald Reagan 9,999 99.99
George H. W. Bush 9,999 99.99
Harold Stassen 9,999 99.99
Total votes 9,999 99.99
Votes necessary 6666 >66.66

Code

Example 1

{{Election box begin no change | title= 
}}
{{Election box winning candidate with party link no change
 | party      = Democratic Party (US)
 | candidate  =
 | votes      =
 | percentage =
}}
{{Election box candidate with party link no change
 | party      = Republican Party (US)
 | candidate  =
 | votes      =
 | percentage =
}}
{{Election box candidate with party link no change
 | party      = Constitution Party (US)
 | candidate  =
 | votes      =
 | percentage =
}}
{{Election box candidate with party link no change
 | party      = Green Party (US)
 | candidate  =
 | votes      =
 | percentage =
}}
{{Election box candidate with party link no change
 | party      = Libertarian Party (US)
 | candidate  =
 | votes      =
 | percentage =
}}
{{Election box candidate with party link no change
 | party      = Independent (US)
 | candidate  =
 | votes      =
 | percentage =
}}
{{Election box candidate no change
 | party      =
 | candidate  =
 | votes      =
 | percentage =
}}
{{Election box total no change
 | votes      =
 | percentage = 100
}}
<!-- Uncomment this section (and delete which ever does not apply) when the results are in:
{{Election box hold with party link without swing
 | winner     =
}}
{{Election box gain with party link without swing
 | winner     =
 | loser      =
}}
-->
{{End}}

Example 2

{{Election box begin no party no change | title= 
}}
{{Election box winning candidate no party no change
 | candidate  =
 | votes      =
 | percentage =
}}
{{Election box candidate no party no change
 | candidate  =
 | votes      =
 | percentage =
}}
{{Election box candidate no party no change
 | candidate  =
 | votes      =
 | percentage =
}}
{{Election box total no party no change
 | votes      =
 | percentage = 100
}}
{{Election box necessary no party no change
 | votes      =
 | percentage = <!-- Use ">X" (ie. >50.00, >66.66) or the exact percentage (ie. 50.06 in an election where the number necessary is 996), do not use erroneous values such as "50+1" or "51".-->
}}
{{End}}