Template talk:Infobox U.S. congressional district
This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||||||||||||
|
time frame information
[edit]I think some additional information would be desirable in the template, to clearly indicate how long the district has had the current boundaries. Though this could get confusing, as many districts undergo minor boundary adjustments every ten years. But sometimes, the districts in a state undergo a radical realignment. For example, in Michigan in 1993, the 1st and 11th essentially flip-flopped between the U.P. and the Metro Detroit area. older ≠ wiser 23:35, 21 January 2007 (UTC)
- I was thinking the same thing, so I could add infoboxes for California's old districts going as far back as possible, since for example the 36th district changes from being a San Bernardino-based district in the 1980s to a Manhattan Beach/Venice-based district in the 1990s and having a Venice representative (Jane Harman) succeed a San Bernardino representative (George E. Brown) makes no sense since Brown continued to serve until 1998.
- I made a page on the evolution of California's congressional districts. It would be cool to see similar pages for the other states, though I understand it may not be easy to apply to states that lost districts, since California has yet to lose a district. Socal gal at heart (talk) 03:36, 25 April 2008 (UTC)
Sources?
[edit]Is there a source of the blue collar and white color info? Also is there a source for the cpvi number? The census numbers can be found easily at the US Census bureau, but these seem to be a bit harder to find. Thanks for the links in advance. --Dual Freq 01:51, 7 February 2007 (UTC)
- I found the Cook PVI indices at dKosopedia. I was hesitant about adding a partisan site as a reference, but I couldn't find the PVI's anywhere else. Socal gal at heart (talk) 03:31, 25 April 2008 (UTC)
Georgia and disambiguation
[edit]When "Georgia" is input to the state field of this infobox., it generates a link to Georgia, which is a disambiguation page. It should link to Georgia (U.S. state). Replacing "Georgia" with "Georgia (U.S. state)" does generate the correct link, but it displays as "Georgia (U.S. state)", and the display is not-responsive to piping (i.e., "Georgia (U.S. state)|Georgia" displays as "Georgia (U.S. state)". I would be grateful if this could be fixed. DuncanHill (talk) 10:20, 27 May 2008 (UTC)
- Fixed. Someone removed the automatic disambiguation for the state parameter. — Edokter • Talk • 22:23, 27 May 2008 (UTC)
- Thank you! DuncanHill (talk) 22:25, 27 May 2008 (UTC)
Representative and party
[edit]Should we add a section containing the person representing the district and his/her party to the infobox? I've seen it in the Canadian and British infoboxes, and it seems appropriate here too. —Kurykh 04:22, 30 July 2008 (UTC)
- Rudimentary version at User:Kurykh/Sandbox. It's a simple addition of
{{#if: {{{representative|}}} |<!--then:--> ! [[Member of Congress|Representative]] {{!}} {{{representative}}} ({{#switch:{{{party}}} |Democratic=[[Democratic Party (United States)|D]] |Republican=[[Republican Party (United States)|R]] |Independent=[[Independent (politics)|I]] }}) {{!-}} }}
- It's a bit crude, and I tried tweaking it to add a colored box to the left of the representative's name a la the Canadian infobox, but without success. Comments? —Kurykh 05:02, 30 July 2008 (UTC)
Due to lack of comments, I'm going to be bold and implement it. —Kurykh 23:59, 6 August 2008 (UTC)
Tons of unnecessary disambiguation and broken links
[edit]Why? The only state that needs (U.S. state) to disambiguate it is Georgia, so why is it automatically added to all of these infoboxes? E.g. Puerto Rico's At-large congressional district, which creates a redlink to Puerto Rico (U.S. state). In addition to the fact that this is entirely unnecessary, it is also inaccurate; Puerto Rico is not a state at all, but a commonwealth in association with the United States. Can someone fix this? —Justin (koavf)❤T☮C☺M☯ 06:01, 20 September 2008 (UTC)
- This should be fixed now.DCmacnut<> 03:10, 17 October 2008 (UTC)
areas
[edit]Could the Area lines allow for automatic conversion via the convert template? And I don't like mi² at all; it may be familiar in a few technical fields, although most scientists and engineers use metric and not miles, but just takes the average reader aback. Part of it is just a typographical quirk because "i" is a thin letter with a dot on top, so at the reduced scale of the Infobox, "mi²" looks too much like "m²". "Sq mi" or "square miles" is much better. (I learned on the Manual of Style date & number talk page, however, that while sq km used to be clear to English-speakers, km² is apparently the only familiar form nowadays.) —— Shakescene (talk) 04:34, 30 May 2009 (UTC)
Piped links for residence field
[edit]Is there any way to pipe the links in the residence field? Currently, Ohio's 8th congressional district is linking to West Chester, Ohio, which is a disambiguation page. -LtNOWIS (talk) 00:27, 16 November 2010 (UTC)
- And again for NY-29. This is pretty common for parts of the country with townships. -LtNOWIS (talk) 11:57, 4 December 2010 (UTC)
Median income?
[edit]Is "median income" supposed to be Median Household Income? --Ken Gallager (talk) 14:25, 3 January 2013 (UTC)
white hispanics?
[edit]see Puerto_Rico's_at-large_congressional_district the sum of the percentage is higher than 100% (see talk) how to tally mostly white hispanics? https://www.cia.gov/library/publications/the-world-factbook/geos/rq.html James Michael DuPont (talk) 13:23, 17 June 2013 (UTC)
Adding Party Registration figures?
[edit]Granted, this is only applicable to about half of U.S. states, but it might be nice to add 'parameter' fields to the Infobox for: % voters registered Democratic, % voters registered Republican, and % voters registered "other" (though this last one could be split in to "% voters registered in third parties" and "% voters registered independent"). I probably am not good enough with template code to add these to the Infobox myself, but if there's interest, I can think of a number of articles in which these figures could be added to the Infobox as soon as those parameters are put in to the code. --IJBall (talk) 08:39, 20 December 2014 (UTC)
Disambiguation fix needed.
[edit]Please fix this template so that links to New York pipe through New York (state), per consensus in the discussion at Talk:New York#Proposed action to resolve incorrect incoming links. Cheers! bd2412 T 18:36, 17 September 2016 (UTC)
- I think I have done it right. Please correct me if needed. Cheers! bd2412 T 03:42, 18 September 2016 (UTC)
Ethnicity
[edit]The documentation said "percent native hawaiian" and "percent more than one race" existed(ie documented) but they were not implemented. I've taken a stab at implementing them. Ahwiv (talk) 01:42, 18 April 2017 (UTC)
- Please see Wikipedia:Help_desk#Texas'_30th_Congressional_District_election,_2018. The infobox shows a set of ethnic groups apparently adding up to well over 100% of the total. Would it be better to reorganise this part of the template to make it clear that the "Hispanic" classification is separate to the "race" classification?: Noyster (talk), 11:43, 7 March 2018 (UTC)
Should I add Samoans?
[edit]American Samoa's at-large congressional district has a very, very large category of "other", probably Samoans. Should this template have a field for Samoans, or should they just be under "other", "Native American", or "Asian"? — Preceding unsigned comment added by DemonDays64 (talk • contribs) 23:59, 6 July 2019 (UTC)
Does rural/urban distribution in the refer to population or land distribution?
[edit]The census publishes urban/rural percentages for both population and land area [1]. Which should be used? userdude 07:04, 21 November 2019 (UTC)
How about 'Ethnicity/race', not just 'Ethnicity', as a header?
[edit]I encountered this concern while editing NJ 3rd's page. I've just addressed my concern at a Wikipedia 'Race and ethnicity' talk page and won't repeat it all here. However, if no good arguments emerge here or there contrary to my idea, I think I'll proceed to try to make the change as proposed in my title question. The issue of footnoting the line-percentages, also mentioned a little at the 'Race and ethnicity' page, I'd try to address too -- though it may be more than I can handle technically. Thanks. Swliv (talk) 00:06, 7 July 2020 (UTC)
Ethencity order
[edit]Following an observation about bias at the help desk (Wikipedia:Help desk#Jonn Lewis page) does anybody know if the entries can be ordered to reflect the size of the percentages, thanks. MilborneOne (talk) 11:33, 18 July 2020 (UTC)
- With a lua module. The above mentioned discussion refers to this template at Georgia's 5th congressional district. The template at that page has
| percent white = 31.95 | percent black = 57.7 | percent asian = 4.61 | percent native american = 0.52 | percent hispanic = 6.39 | percent other race =
- I have hacked a module sandbox at Module:Sandbox/trappist the monk/ethnicity sort. To call that use:
{{#invoke:Sandbox/trappist the monk/ethnicity sort|ethnicity_sort|{{{percent white|}}}|{{{percent black|}}}|{{{percent asian|}}}|{{{percent hispanic|}}}|{{{percent native american|}}}|{{{percent native hawaiian|}}}|{{{percent more than one race|}}}|{{{percent other race|}}} }}
- Using the values listed above, here is an example:
{{#invoke:Sandbox/trappist the monk/ethnicity sort|ethnicity_sort|31.95|57.7|4.61|6.39|0.52|||}}
- 57.7% Black
- 31.95% White
- 6.39% Hispanic
- 4.61% Asian
- 0.52% Native American
- —Trappist the monk (talk) 23:12, 18 July 2020 (UTC)
- @Trappist the monk: Excellent! I sync'd the template sandbox (Template:Infobox U.S. congressional district/sandbox) with the current live code, implemented your module in it (replacing
|data6=
with{{Unbulleted list|...}}
|data6=
), and created Template:Infobox U.S. congressional district/testcases with example usage from some articles. This revealed a problem. In the third example (California 51st), we have{{#invoke:Sandbox/trappist the monk/ethnicity sort|...}}
|percent other race=2.2<ref>...</ref>
. It does not render this item unless I remove the cite. It can be argued that the template should support cites differently, since they appear incorrectly between the number and the '%', but there does seem to be a fair amount of usage of this currently out there. —[AlanM1 (talk)]— 00:42, 19 July 2020 (UTC)- I won't be able to do anything about this until maybe sometime tomorrow at the earliest. It occurs to me that if this mechanism is adopted, it might be best to create
|ethnicity-ref=
or some such that the module would append to the end of the 'first-listed' ethnicity. I could write an awb script to move existing misplaced references. - —Trappist the monk (talk) 01:11, 19 July 2020 (UTC)
- I have added
{{{ethnicity ref|}}}
to{{Infobox U.S. congressional district/sandbox}}
and tweaked the module to append the value assigned to|ethnicity ref=
the end of the first-listed ethnicity. See this in the ~/testcases. - —Trappist the monk (talk) 17:54, 19 July 2020 (UTC)
- I have added
- I won't be able to do anything about this until maybe sometime tomorrow at the earliest. It occurs to me that if this mechanism is adopted, it might be best to create
- @Trappist the monk: Excellent! I sync'd the template sandbox (Template:Infobox U.S. congressional district/sandbox) with the current live code, implemented your module in it (replacing
- There having been no further comment, I have moved my sandbox module to Module:Infobox/utilities, updated the sandbox, and updated the live version from the sandbox.
- As I write this, in those infoboxen that have references somewhere in the ethnicity list (approximately 95 articles), an ethnicity that has a reference does not display. I have an awb script that will move the references into
|ethnicity ref=
which I shall run pretty much as soon as I finish typing this. - —Trappist the monk (talk) 18:35, 22 July 2020 (UTC)
- @Trappist the monk: Of course, I concur. (Sorry for not responding earlier. Real life, limited stack space, etc. are impacting my ability to contribute meaningfully. ) —[AlanM1 (talk)]— 00:11, 23 July 2020 (UTC)
- @Trappist the monk: I see that the "Distribution" (urban vs. rural) suffers from the same problem with the ref stuck before the '%' (e.g., Georgia's 5th congressional district) which could be moved to a
|distribution ref=
. Though I do use AWB, I've only used it in a semi-auto fashion with my own set of regexes for minor things, and not done any scripting. I don't think I'd trust myself to get it right, especially not at the moment. Feel like doing that one? —[AlanM1 (talk)]— 00:19, 23 July 2020 (UTC)- Because the distribution and occupation fields of the infobox are also unbulleted lists, they can both suffer from the sorting issue that was the problem with ethnicity. I'll tweak the module to support them and
|distribution ref=
and|occupation ref=
. - —Trappist the monk (talk) 10:18, 23 July 2020 (UTC)
- ~/sandbox and live versions upddated. There are about 157 articles that have references attached to the distribution list; none with references attached to the occupation list. I've tweaked my awb script to move the distribution-list references into
|distribution ref=
. As with|ethnicity ref=
, these articles are broken until the script gets round to fixing them. - —Trappist the monk (talk) 13:33, 23 July 2020 (UTC)
- ~/sandbox and live versions upddated. There are about 157 articles that have references attached to the distribution list; none with references attached to the occupation list. I've tweaked my awb script to move the distribution-list references into
- Because the distribution and occupation fields of the infobox are also unbulleted lists, they can both suffer from the sorting issue that was the problem with ethnicity. I'll tweak the module to support them and
Georgia's flag
[edit]@Bluealbion: You have the wrong flag displaying for Georgia. See Georgia's 14th congressional district. ― Tartan357 Talk 21:28, 28 November 2021 (UTC)
I manually overrode each page to now display the correct flag, sorry about that the code pulls automatically from the Georgia (country) flag. Does anyone know how to get a more permanent fix in the code so that is will always pull from the state flag?Bluealbion (talk) 23:04, 28 November 2021 (UTC)
- Template-Class U.S. Congress articles
- NA-importance U.S. Congress articles
- WikiProject U.S. Congress places
- Template-Class United States articles
- NA-importance United States articles
- Template-Class United States articles of NA-importance
- Template-Class United States Government articles
- NA-importance United States Government articles
- WikiProject United States Government articles
- WikiProject United States articles