Usage edit

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:US election list row in articles based on its TemplateData.

TemplateData for US election list row

This template is used to help format the tables on the United States presidential elections in Wisconsin page. Feel free to use it on other state lists. This template is designed to be used with Template:US election list begin Template:US election list end
Yearyear
Year that the election took place
Example
2020
Statestate
State that the election took place in
Example
Wisconsin
Candidate1 first namecandidate1_first
The first name of candidate1
Candidate1 last namecandidate1_last
The last name of candidate1
Candidate1 disambiguation pagecandidate1_dab
The page to link to, if different then the candidate's name
Candidate1 partycandidate1_party
The political party of candidate1. Will be passed to Template:Party color and Template:Party abbr to get the color and party abbreviation
Example
Democratic Party (US)
Candidate1 party abbreviationcandidate1_party_abbr
This overrides the abbreviation that is retrieved from candidate1_party, and will be shown after the candidates name in parentheses.
Candidate1 votescandidate1_votes
Number of votes that candidate1 got (do not include commas)
Example
102300
Candidate2 first namecandidate2_first
First name of candidate 2
Candidate2 last namecandidate2_last
The last name of candidate2
Candidate2 disambiguation pagecandidate2_dab
The page to link to, if different then the candidate's name
Candidate2 partycandidate2_party
The political party of candidate2. Will be passed to Template:Party color and Template:Party abbr to get the color and party abbreviation
Example
Republican Party (US)
Candidate2 party abbreviationcandidate2_party_abbr
This overrides the abbreviation that is retrieved from candidate2_party, and will be shown after the candidates name in parentheses.
Candidate2 votescandidate2_votes
Number of votes that candidate2 got (do not include commas)
Candidate3 first namecandidate3_first
First name of candidate 3. If not defined, all of the candidate 3 values will be skipped. If it is defined, but empty or whitespace blank columns will be inserted for candidate 3.
Candidate3 last namecandidate3_last
Last name of candidate3
Candidate3 disambiguation pagecandidate3_dab
The page to link to, if different than candidate's name
Candidate3 partycandidate3_party
The political party of candidate3. Will be passed to Template:Party color and Template:Party abbr to get the color and party abbreviation
Candidate3 party abbreviationcandidate3_party_abbr
This overrides the abbreviation that is retrieved from candidate3_party, and will be shown after the candidates name in parentheses.
Candidate3 votescandidate3_votes
Number of votes that candidate3 got (do not include commas)
Candidate4 first namecandidate4_first
First name of candidate4, if not defined, whitespace, or empty the columns for candidate4 will be skipped.
Candidate4 last namecandidate4_last
Last name of candidate4
Candidate4 disambiguation pagecandidate4_dab
The page to link to, if different than candidate's name
Candidate4 partycandidate4_party
The political party of candidate4. Will be passed to Template:Party color and Template:Party abbr to get the color and party abbreviation
Candidate4 party abbreviationcandidate4_party_abbr
This overrides the abbreviation that is retrieved from candidate4_party, and will be shown after the candidates name in parentheses.
Candidate4 votescandidate4_votes
Number of votes that candidate4 got (do not include commas)
Total votes castedtotal_votes
The total number of votes cast in the election (do not include commas). This is used to calculate the percentage of votes that a candidate received.
Example
513009
Candidate number of national winnernational_winner
The candidate number of the national winner
Suggested values
  • 1
  • 2
  • 3
  • 4
Example
If candidate2 was the national winner than you would put 2 here
Electoral college votesev
Number of electoral college votes awarded to the winning candidate
Referencesref
References used; will appear in the last column of the row.