Template:Infobox United States legislative district/doc: Difference between revisions

From The Global Wiki
Jump to navigation Jump to search
en>Asdasdasdff
mNo edit summary
 
m (1 revision imported)
 
(No difference)

Latest revision as of 01:15, 18 January 2023

Script error: No such module "Parameter names example".


Usage

This template is used to include lots of statistical information about a district in a neat table. Here is how it's used:

Copy and paste the template below:

{{Infobox legislative district
|state=
|district=
|chamber=
|image=
|representative=
|party=
|residence=
|residence_link=
|incumbentsince=
|Democratic=
|Republican=
|NPP=
|Green=
|WFP=
|percent_white=
|percent_black=
|percent_hispanic=
|percent_asian=
|percent_native_american=
|percent_pacific_islander=
|percent_multiracial=
|percent_other_race=
|population=
|population_year=
|voting_age=
|citizen_voting_age=
|registered=
|created=
|eliminated=
|notes=
}}

Notes

  • Only the state, district, and chamber 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.
  • state is the name of a U.S state
  • district is the number of a legislative district without the ordinal suffix (no "-st", "-nd", "-rd", or "-th")
  • chamber is either House of Representatives, Senate, or Assembly
  • You should not include units for any parameter, such as percent signs (%). These are provided for you.
  • percent_remainder_of_multiracial is deprecated. You should use percent_multiracial instead.

Examples

House district

Connecticut's Script error: No such module "Ordinal". State
House of Representatives
district
File:Flag of Connecticut.svg
Representative<td width="5px" style="background:Script error: No such module "Political party"."> 
John Smith
ISpringfield
since January 1, 2009
Registration46% Republican
46% Democratic
2% No party preference
Demographics60% White
15% Black
10% Hispanic
7.5% Asian
7.5% Native American
0% Hawaiian/Pacific Islander
0% Other
Population (2010)
 • Voting age
 • Citizens of voting age
200000
31000
30000
Registered voters25000
{{Infobox legislative district
| state=Connecticut
| district=3
| chamber=House of Representatives
| image =
| representative = John Smith
| party = Independent
| residence = Springfield
| incumbentsince= January 1, 2009
| Democratic=46
| Republican=46
| NPP=2
| Green=3
| WFP=3
| percent_white = 60
| percent_black = 15
| percent_hispanic = 10
| percent_asian = 7.5
| percent_native_american = 7.5
| percent_pacific_islander = 0
| percent_other_race = 0
| percent_multiracial = 0
| population = 200000
| population_year = 2010
| voting_age = 31000
| citizen_voting_age = 30000
| registered = 25000
}}

Senate

Wisconsin's Script error: No such module "Ordinal".
State Senate district
File:Flag of Wisconsin.svg
Senator<td width="5px" style="background:Script error: No such module "Political party"."> 
Fred Sled
GFranklin
since January 1, 2011
Registration75% Democratic
10% Republican
10% No party preference
Demographics90% White
1% Black
8% Hispanic
.5% Asian
.5% Native American
0% Hawaiian/Pacific Islander
0% Other
Population (2010)
 • Voting age
 • Citizens of voting age
100000
15050
15000
Registered voters12500
Created1972
{{Infobox legislative district
|state=Wisconsin
|district=21
|chamber=Senate
|image=
|representative=Fred Sled
|party=Green
|residence=Franklin
|residence_link= Franklin, Milwaukee County, Wisconsin
|Democratic=75
|Republican=10
|incumbentsince= January 1, 2011
|NPP=10
|WFP=5
|percent_white=90
|percent_black=1
|percent_hispanic=8
|percent_asian=.5
|percent_native_american=.5
|percent_pacific_islander=0
|percent_other_race=0
|percent_multiracial=0
|population=100000
|population_year=2010
|voting_age=15050
|citizen_voting_age=15000
|registered=12500
|created= 1972
}}