Difference between revisions of "Template:Infobox United States Congress/doc"
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=| | + | {{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 = | + | | image = |
| − | | imagename = | + | | image_size = |
| − | | imagedate = | + | | image_alt = |
| + | | imagename = | ||
| + | | imagedate = | ||
| start = | | start = | ||
| end = | | end = | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| vp = | | vp = | ||
| pro tem = | | pro tem = | ||
| Line 33: | Line 23: | ||
| senators = | | senators = | ||
| reps = | | reps = | ||
| − | | delegates = | + | | 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 | | + | | 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. |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
}} | }} | ||
== Example == | == Example == | ||
{{Infobox 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 | |
| − | | vp = [[ | + | |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 |
| − | | | + | |sessionstart2 = January 3, 2008 |
| − | | | + | |sessionend2 = January 3, 2009 |
}} | }} | ||
| Line 100: | Line 105: | ||
<pre style="overflow: auto;"> | <pre style="overflow: auto;"> | ||
{{Infobox 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 | |
| − | | vp = [[ | + | |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 |
| − | | | + | |sessionstart2 = January 3, 2008 |
| − | | | + | |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 | + | [[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:Templates that add a tracking category]] | [[Category:Templates that add a tracking category]] | ||
}}</includeonly> | }}</includeonly> | ||
Latest revision as of 20:45, 4 October 2020
| This is a documentation subpage for Template:Infobox United States Congress. It contains usage information, categories and other content that is not part of the original template page. |
| This template uses Lua: |
Contents
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]] | |
![]() United States Capitol (2007) | |
January 3, 2007 – January 3, 2009 | |
| Members | 100 senators 435 representatives 5 non-voting delegates |
| Senate Majority | Democratic (coalition) |
| Senate President | Dick Cheney (R) |
| House Majority | Democratic |
| House Speaker | Nancy 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
