Difference between revisions of "Template:Infobox national political convention/doc"

From blackwiki
Jump to navigation Jump to search
imported>Vanisaac
m (→‎Example: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
(10 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Documentation subpage}}<pre>
+
{{Documentation subpage}}
{{Infobox national political convention
+
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
|year          = 2012
+
== Usage ==
|party        = Republican
+
{{Parameter names example|_template=|year|party|alternate|image|image_size|image2|image_size2|image3|image_size3|caption|logo|logo_size|election_year|election_year |date|city2|city|venue|chair|keynote_speaker|speakers|presidential_nominee|presidential_nominee_state|vice_presidential_nominee|vice_presidential_nominee_state|vice_presidential_nominee_state |othercandidates|totaldelegates|votesneeded|presidenttotals|vicepresidenttotals|ballots|previous_year|next_year}}
|election_year = 2012
+
<pre style="overflow: auto;">{{Infobox national political convention
 +
|year          =  
 +
|party        =
 +
|election_year =  
 
|logo          =  
 
|logo          =  
 
|image        =  
 
|image        =  
Line 10: Line 13:
 
|image_size2  =  
 
|image_size2  =  
 
|caption      =  
 
|caption      =  
|date          = August 27, 2012 – August 30, 2012
+
|date          =  
|city          = Tampa, Florida
+
|city          =  
|venue        = Tampa Bay Times Forum
+
|venue        =  
|chair         = TBD
+
|convention_chair         =  
|keynote_speaker                = TBD
+
|keynote_speaker                =  
|presidential_nominee            = Mitt Romney (presumptive)
+
|presidential_nominee            =
|presidential_nominee_state      = Massachusetts
+
|presidential_nominee_state      =
|vice_presidential_nominee      = Marco Rubio
+
|vice_presidential_nominee      =
|vice_presidential_nominee_state = Florida
+
|vice_presidential_nominee_state =
 
|othercandidates                =
 
|othercandidates                =
|totaldelegates                  = 2,286
+
|totaldelegates                  =  
|votesneeded                    = 1,144[2] (50% of total + 1)
+
|votesneeded                    =  
|ballots                        = TBD
+
|ballots                        =  
}}
+
}}</pre>
  
</pre>
+
== Parameters ==
Explanation
 
 
<pre>
 
<pre>
 
|logo          = Convention logo (optional) Note: Width is automatically set to 50px.
 
|logo          = Convention logo (optional) Note: Width is automatically set to 50px.
Line 52: Line 54:
 
|ballots              = Number of ballots taken for the presidential nomination.
 
|ballots              = Number of ballots taken for the presidential nomination.
 
</pre>
 
</pre>
{{Infobox national political convention
+
 
 +
== Example ==
 +
{{Infobox National Political Convention
 
| year = 1996
 
| year = 1996
 
| party = Republican
 
| party = Republican
 
+
| logo =  
| logo =
 
 
| image = Bob_Dole,_PCCWW_photo_portrait.JPG
 
| image = Bob_Dole,_PCCWW_photo_portrait.JPG
| image2 = JackKempCropped.jpg
+
| image2 = Jack Kemp official portrait.jpg
 
| image_size2 = 92
 
| image_size2 = 92
 
+
| caption = Nominees <br> Dole and Kemp
| date = August 12 - August 15
+
| date = August 12–August 15, 1996
 +
| keynote_speaker = [[Susan Molinari]]
 
| venue = [[San Diego Convention Center]]
 
| venue = [[San Diego Convention Center]]
 
| city = [[San Diego, California]]
 
| city = [[San Diego, California]]
 
+
| presidential_nominee = [[Bob Dole]]
| presidential_nominee = Sen. [[Bob Dole]]
 
 
| presidential_nominee_state = [[Kansas]]
 
| presidential_nominee_state = [[Kansas]]
 
| vice_presidential_nominee = [[Jack Kemp]]
 
| vice_presidential_nominee = [[Jack Kemp]]
| vice_presidential_nominee_state = [[New York]]
+
| vice_presidential_nominee_state = [[New York (state)|New York]]
 
 
 
| totaldelegates = 1,975
 
| totaldelegates = 1,975
 
| votesneeded = 1,007
 
| votesneeded = 1,007
 +
| previous_year = 1992
 +
| next_year = 2000
 
}}
 
}}
 
Here's an example using information for the [[1996 Republican National Convention]]:
 
Here's an example using information for the [[1996 Republican National Convention]]:
 
<pre>
 
<pre>
| year       = 1996
+
| year = 1996
| party       = Republican
+
| party = Republican
| image       = Bob_Dole,_PCCWW_photo_portrait.JPG
+
| logo =
| image2     = JackKempCropped.jpg
+
| image = Bob_Dole,_PCCWW_photo_portrait.JPG
 +
| image2 = Jack Kemp official portrait.jpg
 
| image_size2 = 92
 
| image_size2 = 92
| date       = August 12 - August 15
+
| caption = Nominees <br> Dole and Kemp
| venue       = [[San Diego Convention Center]]
+
| date = August 12–August 15, 1996
| city       = [[San Diego, California]]
+
| keynote_speaker = [[Susan Molinari]]
| presidential_nominee           = Sen. [[Bob Dole]]
+
| venue = [[San Diego Convention Center]]
| presidential_nominee_state     = [[Kansas]]
+
| city = [[San Diego, California]]
| vice_presidential_nominee       = [[Jack Kemp]]
+
| presidential_nominee = [[Bob Dole]]
| vice_presidential_nominee_state = [[New York]]
+
| presidential_nominee_state = [[Kansas]]
| totaldelegates                 = 1,975
+
| vice_presidential_nominee = [[Jack Kemp]]
| votesneeded                     = 1,007
+
| vice_presidential_nominee_state = [[New York (state)|New York]]
 +
| totaldelegates = 1,975
 +
| votesneeded = 1,007
 +
| previous_year = 1992
 +
| next_year = 2000
 
</pre>
 
</pre>
  
 
{{Organization infoboxes}}
 
{{Organization infoboxes}}
 +
 +
<includeonly>{{Sandbox other||
 +
<!-- Categories below this line, please; interwikis at Wikidata -->
 +
[[Category:Politics and government infobox templates|National political convention]]
 +
}}</includeonly>

Latest revision as of 20:33, 25 April 2020

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

1996 Republican National Convention
Bob Dole, PCCWW photo portrait.JPG Jack Kemp official portrait.jpg
Nominees
Dole and Kemp
Convention
Date(s)August 12–August 15, 1996
CitySan Diego, California
VenueSan Diego Convention Center
Keynote speakerSusan Molinari
Candidates
Presidential nomineeBob Dole of Kansas
Vice presidential nomineeJack Kemp of New York
Voting
Total delegates1,975
Votes needed for nomination1,007
‹ 1992  ·  2000 ›

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