Template:Infobox United States legislative district
Revision as of 18:42, 30 January 2021 by imported>Asdasdasdff (standardizing colorbar width)
| |||
[[Category:Infobox templates|Template:Remove first word]]
| This template uses Lua: |
Template:Parameter names example
Contents
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 Template:Ordinal State House of Representatives District | |||||
|---|---|---|---|---|---|
| Representative |
| ||||
| Registration | 46% Republican 46% Democratic 2% No party preference | ||||
| Demographics | 60% 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 voters | 25000 | ||||
{{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 Template:Ordinal State Senate District | |||||
|---|---|---|---|---|---|
| Senator |
| ||||
| Registration | 75% Democratic 10% Republican 10% No party preference | ||||
| Demographics | 90% 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 voters | 12500 | ||||
| Created | 1972 | ||||
{{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
}}
| The above documentation is transcluded from Template:Infobox United States legislative district/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |