Template:US election list row/doc
Appearance
This is a documentation subpage for Template:US election list row. It may contain usage information, categories and other content that is not part of the original template page. |
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
Parameter | Description | Type | Status | |
---|---|---|---|---|
Year | year | Year that the election took place
| Number | required |
State | state | State that the election took place in
| Line | required |
Candidate1 first name | candidate1_first | The first name of candidate1 | Line | required |
Candidate1 last name | candidate1_last | The last name of candidate1 | Line | required |
Candidate1 disambiguation page | candidate1_dab | The page to link to, if different then the candidate's name | Page name | optional |
Candidate1 party | candidate1_party | The political party of candidate1. Will be passed to Template:Party color and Template:Party abbr to get the color and party abbreviation
| Line | required |
Candidate1 party abbreviation | candidate1_party_abbr | This overrides the abbreviation that is retrieved from candidate1_party, and will be shown after the candidates name in parentheses. | Line | optional |
Candidate1 votes | candidate1_votes | Number of votes that candidate1 got (do not include commas)
| Number | required |
Candidate2 first name | candidate2_first | First name of candidate 2 | Line | required |
Candidate2 last name | candidate2_last | The last name of candidate2 | Line | required |
Candidate2 disambiguation page | candidate2_dab | The page to link to, if different then the candidate's name | Page name | optional |
Candidate2 party | candidate2_party | The political party of candidate2. Will be passed to Template:Party color and Template:Party abbr to get the color and party abbreviation
| Line | required |
Candidate2 party abbreviation | candidate2_party_abbr | This overrides the abbreviation that is retrieved from candidate2_party, and will be shown after the candidates name in parentheses. | Line | optional |
Candidate2 votes | candidate2_votes | Number of votes that candidate2 got (do not include commas) | Number | required |
Candidate3 first name | candidate3_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. | Line | optional |
Candidate3 last name | candidate3_last | Last name of candidate3 | Line | optional |
Candidate3 disambiguation page | candidate3_dab | The page to link to, if different than candidate's name | Page name | optional |
Candidate3 party | candidate3_party | The political party of candidate3. Will be passed to Template:Party color and Template:Party abbr to get the color and party abbreviation | Line | optional |
Candidate3 party abbreviation | candidate3_party_abbr | This overrides the abbreviation that is retrieved from candidate3_party, and will be shown after the candidates name in parentheses. | Line | optional |
Candidate3 votes | candidate3_votes | Number of votes that candidate3 got (do not include commas) | Number | optional |
Candidate4 first name | candidate4_first | First name of candidate4, if not defined, whitespace, or empty the columns for candidate4 will be skipped. | Line | optional |
Candidate4 last name | candidate4_last | Last name of candidate4 | Line | optional |
Candidate4 disambiguation page | candidate4_dab | The page to link to, if different than candidate's name | Page name | optional |
Candidate4 party | candidate4_party | The political party of candidate4. Will be passed to Template:Party color and Template:Party abbr to get the color and party abbreviation | Line | optional |
Candidate4 party abbreviation | candidate4_party_abbr | This overrides the abbreviation that is retrieved from candidate4_party, and will be shown after the candidates name in parentheses. | Line | optional |
Candidate4 votes | candidate4_votes | Number of votes that candidate4 got (do not include commas) | Number | optional |
Total votes casted | total_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.
| Number | required |
Candidate number of national winner | national_winner | The candidate number of the national winner
| Number | required |
Electoral college votes | ev | Number of electoral college votes awarded to the winning candidate | Number | suggested |
References | ref | References used; will appear in the last column of the row. | Content | suggested |