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 %
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

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 <syntaxhighlight lang="wikitext">

Party Candidate Votes %
Democratic
Republican
Constitution
Green
Libertarian
Independent
Total votes 100

</syntaxhighlight>

Example 2 <syntaxhighlight lang="wikitext">

Candidate Votes %
Total votes 100
Votes necessary <!-- 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 <syntaxhighlight>erroneous values<nowiki> such as "50+1" or "51".-->

</syntaxhighlight>