Difference between revisions of "Template:Infobox national political convention"
Jump to navigation
Jump to search
[[Category:Infobox templates|Template:Remove first word]]
imported>Jon698 |
imported>JohnFromPinckney (Per MOS:JOBTITLES: output for Results should not be capitalized (not 1st letter, and definitely not "P" in VP)) |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 9: | Line 9: | ||
|caption = {{{caption|}}} | |caption = {{{caption|}}} | ||
| − | |headerstyle = {{#ifeq:{{{party|}}}|Democratic|background:#34AAE0; color:#000;}}{{#ifeq:{{{party|}}}|Republican|background:#AE1C23; color:#ffffff;}}{{#ifeq:{{{party|}}}|National Union|background:#153E7E; color:#ffffff;}}{{#ifeq:{{{party|}}}|Reform Party|background:#153E7E; color:#ffffff;}}{{#ifeq:{{{party|}}}|Whig|background:#F0DC82; color:#153E7E;}}{{#ifeq:{{{party|}}}|Libertarian|background:#FFBF00; color:#000000;}} {{#ifeq:{{{party|}}}|Green|background:#18AC5D; color:#000;}}{{#ifeq:{{{party|}}}|Progressive|background:#a2ed70; color:#153E7E;}} {{#ifeq:{{{party|}}}|Prohibition|background:#FF00FF; color:# | + | |headerstyle = {{#ifeq:{{{party|}}}|Democratic|background:#34AAE0; color:#000;}}{{#ifeq:{{{party|}}}|Republican|background:#AE1C23; color:#ffffff;}}{{#ifeq:{{{party|}}}|National Union|background:#153E7E; color:#ffffff;}}{{#ifeq:{{{party|}}}|Reform Party|background:#153E7E; color:#ffffff;}}{{#ifeq:{{{party|}}}|Whig|background:#F0DC82; color:#153E7E;}}{{#ifeq:{{{party|}}}|Libertarian|background:#FFBF00; color:#000000;}} {{#ifeq:{{{party|}}}|Green|background:#18AC5D; color:#000;}}{{#ifeq:{{{party|}}}|Progressive|background:#a2ed70; color:#153E7E;}} {{#ifeq:{{{party|}}}|Prohibition|background:#FF00FF; color:#FFFFFF;}} |
|header1 = {{#if:{{{date|}}}|Convention{{#if:{{{city2|}}}|s}}}} | |header1 = {{#if:{{{date|}}}|Convention{{#if:{{{city2|}}}|s}}}} | ||
| Line 27: | Line 27: | ||
|label9 = Presidential nominee | |label9 = Presidential nominee | ||
|data9 = {{{presidential_nominee|}}} {{#if:{{{presidential_nominee_state|}}}| of {{{presidential_nominee_state|}}}}} | |data9 = {{{presidential_nominee|}}} {{#if:{{{presidential_nominee_state|}}}| of {{{presidential_nominee_state|}}}}} | ||
| − | |label10 = Vice | + | |label10 = Vice presidential nominee |
|data10 = {{{vice_presidential_nominee|}}} {{#if:{{{vice_presidential_nominee_state|}}}| of {{{vice_presidential_nominee_state |}}}}} | |data10 = {{{vice_presidential_nominee|}}} {{#if:{{{vice_presidential_nominee_state|}}}| of {{{vice_presidential_nominee_state |}}}}} | ||
|label11 = Other candidates | |label11 = Other candidates | ||
| Line 36: | Line 36: | ||
|label14 = Votes needed for nomination | |label14 = Votes needed for nomination | ||
|data14 = {{{votesneeded|}}} | |data14 = {{{votesneeded|}}} | ||
| − | |label15 = Results ( | + | |label15 = Results (president) |
|data15 = {{{presidenttotals|}}} | |data15 = {{{presidenttotals|}}} | ||
| − | |label16 = Results ( | + | |label16 = Results (vice president) |
|data16 = {{{vicepresidenttotals|}}} | |data16 = {{{vicepresidenttotals|}}} | ||
|label17 = Ballots | |label17 = Ballots | ||
| Line 45: | Line 45: | ||
|belowclass = noprint | |belowclass = noprint | ||
|below = <includeonly>{{#if:{{{previous_year|}}}|‹ [[{{{previous_year|}}} {{{party|}}} National Convention|{{{previous_year}}}]]{{#if:{{{next_year|}}}| {{·}} }}}}{{#if:{{{next_year|}}}|[[{{{next_year|}}} {{{party|}}} National Convention|{{{next_year}}}]] ›}}</includeonly> | |below = <includeonly>{{#if:{{{previous_year|}}}|‹ [[{{{previous_year|}}} {{{party|}}} National Convention|{{{previous_year}}}]]{{#if:{{{next_year|}}}| {{·}} }}}}{{#if:{{{next_year|}}}|[[{{{next_year|}}} {{{party|}}} National Convention|{{{next_year}}}]] ›}}</includeonly> | ||
| − | |belowstyle = {{#ifeq:{{{party|}}}|Democratic|background:#73C2FB;}}{{#ifeq:{{{party|}}}|Republican|background:#FFB6B6;}}{{#ifeq:{{{party|}}}|National Union|background:#FFB6B6; color:#ffffff;}}{{#ifeq:{{{party|}}}|Reform Party|background:#73C2FB;}}{{#ifeq:{{{party|}}}|Whig|background:#FFFFCC;}}{{#ifeq:{{{party|}}}|Libertarian|background:#FFFFCC;}}{{#ifeq:{{{party|}}}|Green|background:#5CC88E;}}{{#ifeq:{{{party|}}}|Progressive|background:#c3eba8; color:#ffffff;}} | + | |belowstyle = {{#ifeq:{{{party|}}}|Democratic|background:#73C2FB;}}{{#ifeq:{{{party|}}}|Republican|background:#FFB6B6;}}{{#ifeq:{{{party|}}}|National Union|background:#FFB6B6; color:#ffffff;}}{{#ifeq:{{{party|}}}|Reform Party|background:#73C2FB;}}{{#ifeq:{{{party|}}}|Whig|background:#FFFFCC;}}{{#ifeq:{{{party|}}}|Libertarian|background:#FFFFCC;}}{{#ifeq:{{{party|}}}|Green|background:#5CC88E;}}{{#ifeq:{{{party|}}}|Progressive|background:#c3eba8; color:#ffffff;}} {{#ifeq:{{{party|}}}|Prohibition|background:#FF00FF; color:#FFFFFF;}} |
}}<noinclude> | }}<noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 07:05, 21 August 2020
[[Category:Infobox templates|Template:Remove first word]]
Usage
Template:Parameter names example
{{Infobox national political convention
|year =
|party =
|election_year =
|logo =
|image =
|image_size =
|image2 =
|image_size2 =
|caption =
|date =
|city =
|venue =
|convention_chair =
|keynote_speaker =
|presidential_nominee =
|presidential_nominee_state =
|vice_presidential_nominee =
|vice_presidential_nominee_state =
|othercandidates =
|totaldelegates =
|votesneeded =
|ballots =
}}
Parameters
|logo = Convention logo (optional) Note: Width is automatically set to 50px. |year = Year in which the convention was held |party = Political party holding the convention. Do not link this! |election_year = Year in which the election for which the nominated candidates at the convention will run (if different from the convention year) |image = Image of the presidential nominee. (optional) image_size = Width of the presidential nominee's photo. (optional) Note: Default is 100px. |caption = Caption for the presidential nominee's photo. (optional) |image2 = Image of the vice presidential nominee. (optional) |image_size2 = Width of the presidential nominee's photo. (optional) Note: Default is 100px. This should be changed so that the heights of image and image2 match! |caption2 = Caption for the vice presidential nominee's photo (optional) |date = Date(s) on which the convention was held. If a range of dates, format should be month day-month day, year. (optional) |city = Location where the convention was held. (optional) |venue = Specific venue where the convention was held. (optional) |chair = Name of the chairperson for the convention. (optional) |keynote_speaker = Name of the keynote speaker for the convention. (optional) |presidential_nominee = Name of the presidential nominee. (optional) Note: This may be omitted if the convention failed to nominate a candidate. |presidential_nominee_state = Home state of the presidential nominee. Note: Required if "presidential_nominee" is filled in. |vice_presidential_nominee = Name of the vice presidential nominee (optional) Note: This may be omitted if the convention failed to nominate a candidate. |vice_presidential_nominee_state = Home state of the vice presidential nominee Note: Required if "vice_presidential_nominee" is filled in. |othercandidates = Other candidates that were significant contenders at the convention. (optional) |totaldelegates = Total number of delegates voting at the convention. (optional) Note: This must be filled out for the "Voting" section header to appear in the Infobox. |votesneeded = Number of votes needed for the nomination. (optional) |ballots = Number of ballots taken for the presidential nomination.
Example
![]() Nominees Dole and Kemp | |
| Convention | |
|---|---|
| Date(s) | August 12–August 15, 1996 |
| City | San Diego, California |
| Venue | San Diego Convention Center |
| Keynote speaker | Susan Molinari |
| Candidates | |
| Presidential nominee | Bob Dole of Kansas |
| Vice presidential nominee | Jack Kemp of New York |
| Voting | |
| Total delegates | 1,975 |
| Votes needed for nomination | 1,007 |
Here's an example using information for the 1996 Republican National Convention:
| year = 1996 | party = Republican | logo = | image = Bob_Dole,_PCCWW_photo_portrait.JPG | image2 = Jack Kemp official portrait.jpg | image_size2 = 92 | caption = Nominees <br> Dole and Kemp | date = August 12–August 15, 1996 | keynote_speaker = [[Susan Molinari]] | venue = [[San Diego Convention Center]] | city = [[San Diego, California]] | presidential_nominee = [[Bob Dole]] | presidential_nominee_state = [[Kansas]] | vice_presidential_nominee = [[Jack Kemp]] | vice_presidential_nominee_state = [[New York (state)|New York]] | totaldelegates = 1,975 | votesneeded = 1,007 | previous_year = 1992 | next_year = 2000
Template:Organization infoboxes
| The above documentation is transcluded from Template:Infobox national political convention/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
