Template:Election box/US blanks: Difference between revisions
From WWII Archives
w>Sanders175 (Undid revision 1121534325 by Sanders175 (talk)) |
Paul Sidle (talk | contribs) m (1 revision imported) |
||
(No difference)
|
Latest revision as of 19:47, 19 March 2023
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.
Party | Candidate | Votes | % | |||
---|---|---|---|---|---|---|
Democratic | Barack Obama | 9,999 | 99.99 | |||
Republican | John McCain | 9,999 | 99.99 | |||
Constitution | Chuck Baldwin | 9,999 | 99.99 | |||
Green | Cynthia McKinney | 9,999 | 99.99 | |||
Libertarian | Bob Barr | 9,999 | 99.99 | |||
Independent | Bernie Sanders | 9,999 | 99.99 | |||
— | write-ins | 9,999 | 99.99 | |||
Total votes | 9,999 | 99.99 | ||||
Democratic gain from Republican |
Example 2
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}}