Template:Infobox U.S. congressional district

From ModelUSGov Wiki
Jump to navigation Jump to search
{{{state}}}'s {{{district number}}}th congressional district
[[List of United States Representatives from {{{state}}}|Representative]]
  {{{representative}}}
Template documentation[view] [edit] [history] [purge]

This template is used to include lots of statistical information about a United States congressional district in a neat table.

Usage[edit source]

California's {{{district number}}}th congressional district
[[File:{{{image name}}}|{{{image width}}}|alt={{{image alt}}}|{{{image alt}}}]]
{{{image caption}}}
Member
  {{{representative}}}
Area123 sq mi (320 km2)
Population ({{{population year}}}){{{population}}}
Median household
income
{{{median income}}}
Cook PVI{{{cpvi}}}
Created[[{{{created}}} United_States_Census|{{{created}}} Census]]
Eliminated[[{{{eliminated}}} United_States_Census|{{{eliminated}}} Census]]
Years{{{years}}}

Copy and paste the template below:

{{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                       = 
}}

Usage for Obsolete Congressional Districts[edit source]

Add the following fields to use this template in articles for obsolete congressional districts.

| obsolete                   = yes
      <!--required for other fields to display properly. All other fields are optional.-->
      
| created                    = 
| eliminated                 = 
| years                      = 
      

Notes[edit source]

  • 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[edit source]

Below are three examples, and what they look like.


Alabama's 1st congressional district
Alabama1st.JPG
District map as of 2002
Representative
  {{{representative}}}
Area7,182 sq mi (18,600 km2)
Distribution
  • 64.4% urban
  • 35.6% rural
Population (2000)635,300
Median household
income
34,739
Ethnicity
Occupation
Cook PVIR+12

An example with all fields filled in:

{{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
}}
Alabama's 1st congressional district
Alabama1st.JPG
Representative
  {{{representative}}}
Area7,182 sq mi (18,600 km2)
Population ()635,300
Median household
income
34,739

An example with few fields filled in:

{{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
}}
Alabama's 10th congressional district
Obsolete
Representative
  {{{representative}}}
Population (1920)170,857
Created1913 Census
Eliminated1933 Census
Years1913–1933

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
}}


TemplateData[edit source]

Extended content
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Infobox U.S. congressional district

<templatedata> { "description": "An Infobox for Congressional districts represented in the United States House of Representatives.", "params": { "state": { "label": "State", "description": "The state the district is part of", "example": "Connecticut", "type": "wiki-page-name", "required": true }, "district number": { "label": "District number", "description": "The number of the district", "example": "1", "type": "string", "suggested": true }, "member type": {}, "representative": { "label": "Representative", "description": "The name of the representative, optionally wikilinked", "example": "'Template:Representative', 'Adam Schiff'", "type": "string" }, "party": { "label": "Representative's party", "description": "The political party the district's current representative is a member of", "example": "'Template:Representative', 'Democratic'", "type": "content", "suggested": true }, "residence": { "label": "Residence", "description": "The residence of the district's representative", "example": "'Template:Representative', 'Burbank'", "type": "content", "suggested": true }, "cpvi": { "label": "Cook Partisan Voting Index", "description": "The district's Cook Partisan Voting Index, a ranking of likely voting by party and margin of victory", "example": "D+23[1]", "type": "content", "suggested": true }, "image name": { "label": "Map image", "description": "a map of the region, or a map with the region highlighted within a parent region", "type": "wiki-file-name" }, "image width": { "label": "Image width", "description": "If used, 'px' must be specified; default is 250px.", "type": "string" }, "image caption": { "label": "Map caption", "type": "content", "description": "Caption for the image displayed" }, "image alt": { "label": "Map alternate text", "type": "string", "description": "Hover text for the image displayed" }, "created": { "label": "Year established", "type": "string", "description": "Year the district was created", "suggested": true }, "eliminated": { "label": "Year eliminated", "type": "string", "description": "Date the district stopped" }, "years": { "label": "Years active", "type": "string", "description": "Year range active" }, "obsolete": { "label": "Obsolete?", "type": "string", "description": "'yes' if the district is no longer active" }, "english area": { "label": "Total area (sq. mi)", "description": "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.", "type": "number" }, "metric area": { "label": "Total area (sq. km)", "description": "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.", "type": "number" }, "population": { "label": "Population", "description": "Population, preferably consisting of digits only (without any commas)", "type": "number", "example": "70000", "suggested": true }, "population year": { "label": "Population total's year", "description": "The year for the population total (usually a census year)", "type": "number", "example": "2000" }, "median income": { "label": "Median income", "description": "The district's median income in dollars", "type": "string" }, "disamb": { "label": "Disambiguation" }, "percent urban": { "type": "number", "example": "60.4" }, "percent rural": { "type": "number", "example": "10.1" }, "percent white": { "type": "number", "example": "63.2" }, "percent black": { "type": "number", "example": "6.9" }, "percent asian": { "type": "number", "example": "12.3" }, "percent hispanic": { "type": "number", "example": "25.7" }, "percent native american": { "type": "number", "example": "1.0" }, "percent native hawaiian": { "type": "number", "example": "0.4" }, "percent more than one race": { "type": "number" }, "percent other race": { "type": "number" }, "percent blue collar": { "type": "number" }, "percent white collar": { "type": "number" }, "percent gray collar": { "type": "number" }, "percent grey collar": { "type": "number" } }, "format": "Template:\n\n" } </templatedata>

Tracking category[edit source]

See also[edit source]

  1. "Partisan Voting Index – Districts of the 115th Congress" (PDF). The Cook Political Report. April 7, 2017. Retrieved April 7, 2017.