Template:Infobox United States legislative district/sandbox
Appearance
|
This is the template sandbox page for Template:Infobox United States legislative district (diff). See also the companion subpage for test cases. |
This template uses Lua: |
[[File:{{{image}}}|{{{image width}}}|alt={{{image alt}}}]] | |||
[[{{{state}}} {{{chamber}}}|]] |
| ||
---|---|---|---|
Registration | 5% Republican 5% Democratic 75% No party preference | ||
Demographics | 2% White 5% Black 7% Hispanic 34% Asian 20% Native American 4% Hawaiian/Pacific Islander 26% Other | ||
Population ({{{population_year}}}) • Voting age • Citizens of voting age | {{{population}}} {{{voting_age}}} {{{citizen_voting_age}}} | ||
Registered voters | {{{registered}}} | ||
Notes | {{{notes}}} |
Usage
[edit]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=
|rep_chamber=<!-- Do NOT use if there is only one member for this district or if this district does not span across both legislatures. Can be repeated up to 10 more times by adding any number between 1-10 at the end -->
|representative=<!-- Can be repeated up to 10 more times by adding any number between 1-10 at the end (e.g. "representative1") -->
|party=<!-- Can be repeated up to 10 more times by adding any number between 1-10 at the end -->
|residence=<!-- Can be repeated up to 10 more times by adding any number between 1-10 at the end -->
|residence_link=<!-- Can be repeated up to 10 more times by adding any number between 1-10 at the end -->
|incumbentsince=<!-- Can be repeated up to 10 more times by adding any number between 1-10 at the end -->
|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=
|registered_year=
|created=
|eliminated=
|notes=
}}
Notes
[edit]- 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.
- For multi-member districts, you can repeat the parameters for the representative up to 11 times.
- For districts spanning both legislatures (Arizona, Idaho, New Jersey, North Dakota, South Dakota, and Washington), use rep_chamber for each representative to signify which chamber they serve in.
Examples
[edit]House district
[edit]Connecticut's 3rd 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 0% Multiracial | ||||
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
[edit]Wisconsin's 21st 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 0% Multiracial | ||||
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
}}
Legislature
[edit]Washington's 47th legislative district | |||||
---|---|---|---|---|---|
Senator |
| ||||
Representative |
| ||||
| |||||
Registration | 45% Democratic 40% Republican 15% No party preference | ||||
Demographics | 60% White 15% Black 15% Hispanic 5% Asian 2% Native American 2% Hawaiian/Pacific Islander .5% Other .5% Multiracial | ||||
Population (2010) • Voting age • Citizens of voting age | 1000000 215155 210000 | ||||
Registered voters | 200500 | ||||
Created | 1980 |
{{Infobox United States legislative district
|state=Washington
|district=47
|chamber=Legislature
|rep_chamber=Senate
|representative=John Doe
|party=Independent
|residence=Seattle
|incumbentsince=December 1, 2022
|rep_chamber1=House of Representatives
|representative1=John Smith
|party1=Democratic
|residence1=Auburn
|incumbentsince1=January 14, 2019
|rep_chamber2=House of Representatives
|representative2=Jane Smith
|party2=Republican
|residence2=Bellevue
|incumbentsince2=November 19, 2010
|Democratic=45
|Republican=40
|NPP=15
|WFP=5
|percent_white=60
|percent_black=15
|percent_hispanic=15
|percent_asian=5
|percent_native_american=2
|percent_pacific_islander=2
|percent_other_race=.5
|percent_multiracial=.5
|population=1000000
|population_year=2010
|voting_age=215155
|citizen_voting_age=210000
|registered=200500
|created=1980
}}