{{Infobox U.S. congressional district
| state =
| district number =
| image name =
| image width =
| image caption =
| member type =
<!-- if delegate or resident commissioner -->
| representative =
<!-- Must be current; otherwise empty. -->
| party =
| residence =
<!-- City only (without the state) -->
| disamb =
<!-- County or other portion of residence article name -->
| english area =
| metric area =
| percent urban =
| percent rural =
| population =
| population year =
| median income =
| ethnicity ref =
| percent white =
| percent black =
| percent asian =
| percent native american =
| percent native hawaiian =
| percent hispanic =
| percent other race =
| percent more than one race =
| percent blue collar =
| percent white collar =
| percent gray collar =
| cpvi =
}}
| obsolete = yes
<!--required for other fields to display properly. All other fields are optional.-->
| created =
| eliminated =
| years =
Notes
Only the state and district number fields are required. All other fields are optional, and the table has logic to display the data correctly even when some fields are missing. (However, if the first field in a category is missing, all fields in that category will be assumed empty. For example, if percent blue collar is missing, any value in percent white collar will be ignored.)
You should not include units, percent signs (%), or dollar signs ($) in your fields. These are provided for you.
For obsolete districts, the field obsolete is required, and must be yes in order for the remainder of the fields to display. This ensures that fields unique to obsolete districts will not be displayed on existing congressional districts.
Examples
Below are three examples, and what they look like.
{{Infobox U.S. congressional district
| state = Alabama
| district number = 1
| image name = Alabama1st.JPG
| image width = 250
| image caption = District map as of 2002
| english area = 7,182
| metric area = 2,322
| percent urban = 64.4
| percent rural = 35.6
| population = 635,300
| population year = 2000
| median income = 34,739
| percent white = 67.8
| percent black = 28
| percent asian = 1
| percent native american = 1
| percent native hawaiian = 0.05
| percent hispanic = 1.3
| percent other race = 1
| percent more than one race = 1.91
| percent blue collar = 29.7
| percent white collar = 54.5
| percent gray collar = 15.6
| cpvi = R+12
}}
{{Infobox U.S. congressional district
| state = Alabama
| district number = 1
| image name = Alabama1st.JPG
| english area = 7,182
| population = 635,300
| median income = 34,739
}}
An example for an obsolete congressional district:
{{Infobox U.S. congressional district
| state = Alabama
| district number = 10
| obsolete = yes
| created = 1913
| eliminated = 1933
| years = 1913–1933
| population = 170,857
| population year = 1920
}}
The district's Cook Partisan Voting Index, a ranking of likely voting by party and margin of victory
Example
D+23<ref name=Cook>{{cite web|url=http://cookpolitical.com/file/Arranged_by_State_District.pdf|title=Partisan Voting Index – Districts of the 115th Congress|publisher=The Cook Political Report|date=April 7, 2017|accessdate=April 7, 2017}}</ref>
Content
suggested
Map image
image name
a map of the region, or a map with the region highlighted within a parent region
File
optional
Image width
image width
If used, 'px' must be specified; default is 250px.
String
optional
Map caption
image caption
Caption for the image displayed
Content
optional
Map alternate text
image alt
Hover text for the image displayed
String
optional
Year established
created
Year the district was created
String
suggested
Year eliminated
eliminated
Date the district stopped
String
optional
Years active
years
Year range active
String
optional
Obsolete?
obsolete
'yes' if the district is no longer active
String
optional
Total area (sq. mi)
english area
Total area in square miles. Symbol: sq mi. Value must be entered in 'raw format', no commas or spaces. Auto-converted to display square kilometers if 'metric area' is empty.
Number
optional
Total area (sq. km)
metric area
Total area in square km. Symbol: sq km. Value must be entered in 'raw format', no commas or spaces. Auto-converted to display square miles if 'english area' is empty.
Number
optional
Population
population
Population, preferably consisting of digits only (without any commas)
Example
70000
Number
suggested
Population total's year
population year
The year for the population total (usually a census year)