Difference between revisions of "Template:Infobox United States Congress/doc"

From blackwiki
Jump to navigation Jump to search
imported>Vanisaac
m (→‎Tracking category: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
imported>Funandtrvl
(sync w/template, add missing parameters, correction to example to show the correct congress #.)
 
Line 4: Line 4:
  
 
== Usage ==
 
== Usage ==
{{Parameter names example|_template=| delegates | end | h-majority | image | image_alt | image_size | imagedate | imagename | ordinal= | pro tem | reps | s-majority | senators | sessionend1 | sessionend2 | sessionend3 | sessionend4 | sessionend5 | sessionend6 | sessionend7 | sessionend8 | sessionnumber1 | sessionnumber2 | sessionnumber3 | sessionnumber4 | sessionnumber5 | sessionnumber6 | sessionnumber7 | sessionnumber8 | sessionstart1 | sessionstart2 | sessionstart3 | sessionstart4 | sessionstart5 | sessionstart6 | sessionstart7 | sessionstart8 | speaker | start | vp}}
+
{{Parameter names example |_template= | ordinal= | image | image_size | image_alt | imagename | imagedate | start | end | vp | pro tem | speaker | senators | reps | delegates | s-majority | h-majority | sessionend1 | sessionend2 | sessionend3 | sessionend4 | sessionend5 | sessionend6 | sessionend7 | sessionend8 | sessionnumber1 | sessionnumber2 | sessionnumber3 | sessionnumber4 | sessionnumber5 | sessionnumber6 | sessionnumber7 | sessionnumber8 | sessionstart1 | sessionstart2 | sessionstart3 | sessionstart4 | sessionstart5 | sessionstart6 | sessionstart7 | sessionstart8  
 +
}}
  
<pre style="overflow: auto;">
+
Please note that all parameters are optional:
 +
<pre style="overflow:auto;">
 
{{Infobox United States Congress
 
{{Infobox United States Congress
 
| ordinal        =  
 
| ordinal        =  
| image          = (optional)
+
| image          =  
| imagename      = (optional)
+
| image_size    =
| imagedate      = (optional)
+
| image_alt      =
 +
| imagename      =  
 +
| imagedate      =  
 
| start          =  
 
| start          =  
 
| end            =  
 
| end            =  
 
| sessionnumber1 =
 
| sessionstart1  =
 
| sessionend1    =
 
| sessionnumber2 = (optional)
 
| sessionstart2  = (optional)
 
| sessionend2    = (optional)
 
| sessionnumber3 = (optional)
 
| sessionstart3  = (optional)
 
| sessionend3    = (optional)
 
| sessionnumber4 = (optional)
 
| sessionstart4  = (optional)
 
| sessionend4    = (optional) (up to eight sessions)
 
 
 
| vp            =  
 
| vp            =  
 
| pro tem        =  
 
| pro tem        =  
Line 33: Line 23:
 
| senators      =  
 
| senators      =  
 
| reps          =  
 
| reps          =  
| delegates      = (optional)
+
| delegates      =  
 
| s-majority    =  
 
| s-majority    =  
 
| h-majority    =  
 
| h-majority    =  
 +
 +
| sessionnumber1 =
 +
| sessionstart1  =
 +
| sessionend1    =
 +
| sessionnumber2 =
 +
| sessionstart2  =
 +
| sessionend2    =
 +
| sessionnumber3 =
 +
| sessionstart3  =
 +
| sessionend3    =
 +
| sessionnumber4 = <!-- up to | sessionnumber8 = -->
 +
| sessionstart4  = <!-- up to | sessionstart8 = -->
 +
| sessionend4    = <!-- up to | sessionend8 = -->
 
}}
 
}}
 
</pre>
 
</pre>
Line 47: Line 50:
 
| next          | ''Deprecated,'' use "ordinal"<br/>Ordinal number of the next Congress
 
| next          | ''Deprecated,'' use "ordinal"<br/>Ordinal number of the next Congress
 
| image          | File name of image (optional).  The default is a recent photo of the U.S. Capitol.
 
| image          | File name of image (optional).  The default is a recent photo of the U.S. Capitol.
| imagename      | Date of the image (optional).  The default is <nowiki>[[United States Capitol]]</nowiki>.
+
| image_size    | Default is 220px.
| imagedate      | Date of the image (optional).
+
| image_alt      | Alternate name for photo, per WP:ACCESS.
 +
| imagename      | Alternate name for photo.  The default is <nowiki>[[United States Capitol]]</nowiki>.
 +
| imagedate      | Date of the image (optional). Default is 2002.
 
| start          | First possible day of the Congress (not necessarily the first day of the first session)
 
| start          | First possible day of the Congress (not necessarily the first day of the first session)
 
| end            | Last possible day of the Congress (not necessarily the last day of the last session)
 
| end            | Last possible day of the Congress (not necessarily the last day of the last session)
 +
| vp            | President of the Senate (Vice President of the United States)
 +
| pro tem        | President pro tempore of the Senate
 +
| speaker        | Speaker of the House
 +
| senators      | Total number of seats in the Senate, with no vacancies
 +
| reps          | Total number of seats in the House, with no vacancies
 +
| delegates      | Same for delegates (whatever called) from territories, etc. (optional)
 +
| s-majority    | Majority party in the Senate
 +
| h-majority    | Majority party in the House
 
| sessionnumber1 | Type of session (1st or Special)
 
| sessionnumber1 | Type of session (1st or Special)
 
| sessionstart1  | First day of the first session
 
| sessionstart1  | First day of the first session
Line 60: Line 73:
 
| sessionstart3  | First day of the third session (optional)
 
| sessionstart3  | First day of the third session (optional)
 
| sessionend3    | Last day of the third session (optional)
 
| sessionend3    | Last day of the third session (optional)
| sessionnumber4 | Type of session for the fourth session (optional)
+
| sessionnumber4 | Type of session for the fourth session (optional). Goes up to sessionnumber8.
| sessionstart4  | First day of the fourth session (optional)
+
| sessionstart4  | First day of the fourth session (optional). Goes up to sessionstart8.
| sessionend4    | Last day of the fourth session (optional)
+
| sessionend4    | Last day of the fourth session (optional). Goes up to sessionend8.
| vp            | President of the Senate (Vice President of the United States)
 
| pro tem        | President pro tempore of the Senate
 
| speaker        | Speaker of the House
 
| senators      | Total number of seats in the Senate, with no vacancies
 
| reps          | Total number of seats in the House, with no vacancies
 
| delegates      | Same for delegates (whatever called) from territories, etc. (optional)
 
| s-majority    | Majority party in the Senate
 
| h-majority    | Majority party in the House
 
 
}}
 
}}
  
 
== Example ==
 
== Example ==
 
{{Infobox United States Congress
 
{{Infobox United States Congress
| ordinal        = 109
+
|image         = Capitol Building Full View.jpg
| start         = January 3, 2007
+
|imagedate      = 2007
| end            = January 3, 2009
+
|ordinal        = 110
 
+
|start          = January 3, 2007
| sessionnumber1 = 1st
+
|end            = January 3, 2009
| sessionstart1  = January 4, 2007
+
|vp            = [[Dick Cheney]] ([[Republican Party (United States)|R]])
| sessionend1    = December 19, 2007
+
|pro tem        = [[Robert Byrd]] ([[Democratic Party (United States)|D]])
| sessionnumber2 = 2nd
+
|speaker        = [[Nancy Pelosi]] ([[Democratic Party (United States)|D]])
| sessionstart2  = January 3, 2008
+
|senators      = 100
| sessionend2    = January 3, 2009<ref>[http://clerk.house.gov/floorsummary/floor.html?day=20090103&today=20090425 Legislative Activities], via clerk.house.gov. Accessed April 25, 2009.  [https://web.archive.org/web/20110610234712/http://clerk.house.gov/floorsummary/floor.html?day=20090103&today=20090425 Archived] Apri 29, 2009</ref>
+
|reps          = 435
 
+
|delegates      = 5
| vp            = [[Richard Cheney]] ([[Republican Party (United States)|R]])
+
|h-majority    = [[Democratic Party (United States)|Democratic]]
| pro tem        = [[Robert Byrd]] ([[Democratic Party (United States)|D]])
+
|s-majority    = [[Democratic Party (United States)|Democratic]] (coalition)
| speaker        = [[Nancy Pelosi]] ([[Democratic Party (United States)|D]])
+
|sessionnumber1 = 1st
| senators      = 100
+
|sessionstart1  = January 4, 2007
| reps          = 435
+
|sessionend1    = December 19, 2007
| delegates      = 5
+
|sessionnumber2 = 2nd
| s-majority    = [[Democratic Party (United States)|Democratic Party]] (coalition)
+
|sessionstart2  = January 3, 2008
| h-majority    = [[Democratic Party (United States)|Democratic Party]]
+
|sessionend2    = January 3, 2009
 
}}
 
}}
  
Line 100: Line 105:
 
<pre style="overflow: auto;">
 
<pre style="overflow: auto;">
 
{{Infobox United States Congress
 
{{Infobox United States Congress
| ordinal        = 109
+
|image         = Capitol Building Full View.jpg
| start         = January 3, 2007
+
|imagedate      = 2007
| end            = January 3, 2009
+
|ordinal        = 110
 
+
|start          = January 3, 2007
| sessionnumber1 = 1st
+
|end            = January 3, 2009
| sessionstart1  = January 4, 2007
+
|vp            = [[Dick Cheney]] ([[Republican Party (United States)|R]])
| sessionend1    = December 19, 2007
+
|pro tem        = [[Robert Byrd]] ([[Democratic Party (United States)|D]])
| sessionnumber2 = 2nd
+
|speaker        = [[Nancy Pelosi]] ([[Democratic Party (United States)|D]])
| sessionstart2  = January 3, 2008
+
|senators      = 100
| sessionend2    = January 3, 2009<ref>[http://clerk.house.gov/floorsummary/floor.html?day=20090103&today=20090425 Legislative Activities], via clerk.house.gov. Accessed April 25, 2009.  [https://web.archive.org/web/20110610234712/http://clerk.house.gov/floorsummary/floor.html?day=20090103&today=20090425 Archived] Apri 29, 2009</ref>
+
|reps          = 435
 
+
|delegates      = 5
| vp            = [[Richard Cheney]] ([[Republican Party (United States)|R]])
+
|h-majority    = [[Democratic Party (United States)|Democratic]]
| pro tem        = [[Robert Byrd]] ([[Democratic Party (United States)|D]])
+
|s-majority    = [[Democratic Party (United States)|Democratic]] (coalition)
| speaker        = [[Nancy Pelosi]] ([[Democratic Party (United States)|D]])
+
|sessionnumber1 = 1st
| senators      = 100
+
|sessionstart1  = January 4, 2007
| reps          = 435
+
|sessionend1    = December 19, 2007
| delegates      = 5
+
|sessionnumber2 = 2nd
| s-majority    = [[Democratic Party (United States)|Democratic Party]] (coalition)
+
|sessionstart2  = January 3, 2008
| h-majority    = [[Democratic Party (United States)|Democratic Party]]
+
|sessionend2    = January 3, 2009
 
}}
 
}}
 
</pre>
 
</pre>
Line 130: Line 135:
 
<includeonly>{{Sandbox other||
 
<includeonly>{{Sandbox other||
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:United States Congress templates|Infobox]]
+
[[Category:Politics and government infobox templates|United States Congress]]
 +
[[Category:United States Congress templates]]
 
[[Category:United States government infobox templates|Congress]]
 
[[Category:United States government infobox templates|Congress]]
[[Category:Politics and government infobox templates]]
 
 
[[Category:Templates that add a tracking category]]
 
[[Category:Templates that add a tracking category]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 20:45, 4 October 2020

Usage

Template:Parameter names example

Please note that all parameters are optional:

{{Infobox United States Congress
| ordinal        = 
| image          = 
| image_size     =
| image_alt      =
| imagename      = 
| imagedate      = 
| start          = 
| end            = 
| vp             = 
| pro tem        = 
| speaker        = 
| senators       = 
| reps           = 
| delegates      = 
| s-majority     = 
| h-majority     = 

| sessionnumber1 = 
| sessionstart1  = 
| sessionend1    = 
| sessionnumber2 = 
| sessionstart2  = 
| sessionend2    = 
| sessionnumber3 = 
| sessionstart3  = 
| sessionend3    = 
| sessionnumber4 = <!-- up to | sessionnumber8 = -->
| sessionstart4  = <!-- up to | sessionstart8 = -->
| sessionend4    = <!-- up to | sessionend8 = -->
}}

Parameters

Script error: No such module "aligned table".

Example

Template:Ordinal United States Congress
[[Template:Ordinal United States Congress|Template:Ordinal]] ←
→ [[Template:Ordinal United States Congress|Template:Ordinal]]
Capitol Building Full View.jpg

January 3, 2007 – January 3, 2009
Members100 senators
435 representatives
5 non-voting delegates
Senate MajorityDemocratic (coalition)
Senate PresidentDick Cheney (R)
House MajorityDemocratic
House SpeakerNancy Pelosi (D)
Sessions
1st: January 4, 2007 – December 19, 2007
2nd: January 3, 2008 – January 3, 2009

Here's an example using information for the 110th United States Congress:

{{Infobox United States Congress
|image          = Capitol Building Full View.jpg
|imagedate      = 2007
|ordinal        = 110
|start          = January 3, 2007
|end            = January 3, 2009
|vp             = [[Dick Cheney]] ([[Republican Party (United States)|R]])
|pro tem        = [[Robert Byrd]] ([[Democratic Party (United States)|D]])
|speaker        = [[Nancy Pelosi]] ([[Democratic Party (United States)|D]])
|senators       = 100
|reps           = 435
|delegates      = 5
|h-majority     = [[Democratic Party (United States)|Democratic]]
|s-majority     = [[Democratic Party (United States)|Democratic]] (coalition)
|sessionnumber1 = 1st
|sessionstart1  = January 4, 2007
|sessionend1    = December 19, 2007
|sessionnumber2 = 2nd
|sessionstart2  = January 3, 2008
|sessionend2    = January 3, 2009
}}

Tracking category

Template:Organization infoboxes