Template talk:USCongDistState
This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||||||||||||
|
TfD debate
editThis template survived a debate at TfD. The discussion can be found here. -Splashtalk 01:06, 25 November 2005 (UTC)
Don't use templates within other templates. You'll need to find another method. -- Netoholic @ 03:36, 17 January 2006 (UTC)
- If you don't like how these templates used meta-templates, then come up with a better solution instead of just nuking them. —Mark Adler (markles) 04:34, 17 January 2006 (UTC)
- The solution is to use one template per state, converting those templates to include everything needed. See my recent change to Template:USCongDistStateCA. -- Netoholic @ 04:50, 17 January 2006 (UTC)
Link to govtrack map broken for some states
editThe link to the govtrack.us congressional district maps are broken for states with spaces in the names. For instance, for New Jersey, the link winds up only having "state=New", which the govtrack site is unable to process.—The preceding unsigned comment was added by 71.250.37.29 (talk • contribs) 22:30, 7 November 2006 (UTC-5)
- I added an overriding optional arg to the tpl named "abbrev" in which the state postal abbreviation can be given. Providing this in the templates for states with spaces in their names fixes this problem (govtrack prefers postal abbreviations). See for example the fixed {{USCongDistStateSD}}. - Keith D. Tyler ¶ (AMA) 21:38, 9 January 2007 (UTC)
Ragarding s's for states ending with letter s
editDiscussion of this issue is taking place at Template talk:USCongDistStateIL (there are also some related comments at Template talk:USCongDistStateList). MisfitToys 19:59, 17 November 2006 (UTC)
- Seems to me the answer is here.
Senators
editShould the list of senators from each state go under "See also"? I think so. Any objections? --zenohockey 00:01, 11 December 2006 (UTC)
- Go ahead.—Markles 12:02, 11 December 2006 (UTC)
- Done. My edit also made the elements that aren't state-specific (United States congressional districts - Congressional apportionment - Redistricting - Gerrymandering), plus the GovTrack.us map link, smaller. It should fit nicely on all sizes of screens. --zenohockey 06:12, 12 December 2006 (UTC)
Category application
editA category should not be assigned automatically by this template. Therefore all of the automatic categories must be replaced first by manual categories ([[Category:Congressional districts of Foo]]) and then the category code taken out of this template. That's a lot of work (approx. 600 articles, but it can be done slowly.—Markles 18:56, 10 January 2008 (UTC)
Broken
editHelp please The template for the Northern Mariana Islands, {{USCongDistStateMP}}, results in a map link of:
http://www.govtrack.us/congress/findyourreps.xpd?state=Northern
Which goes nowhere. Can someone fix this? —Justin (koavf)❤T☮C☺M☯ 00:51, 22 September 2008 (UTC)
- I'll see what I can do.—Markles 01:54, 22 September 2008 (UTC)
Current districts
editOn many (most) of the templates, the "Current districts" list isn't used. See {{USCongDistStateMA}} versus {{USCongDistStateNY}}. The list of obsolete districts effectively tells which are current, so the "Current districts" is essentially duplicate. Let's remove the "Current district" list, and save some space. --William Allen Simpson (talk) 13:49, 12 April 2009 (UTC)
- I just haven't found a good way to implement it. What space is wasted that needs to be saved?—Markles 23:09, 12 April 2009 (UTC)
- I meant that it seems to be a new experiment. I've now gone through all 50+ of them, and only MA and IL ({{USCongDistStateIL}}) are using this. IMHO, seems to waste the line, and of course wastes a lot of template thrashing generating the list. The existing "All districts" followed by the list of obsolete districts does a good job, very clear, easy to understand. --William Allen Simpson (talk) 15:57, 13 April 2009 (UTC)
Edit-semiprotected template request
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Current, the list1 parameter of {{Navbox}} includes a hard-coded wikilink to Redistricting. Please replace that with conditional logic that chooses the wikilink depending on the state. As of the time of this request, there are two states for which the result should be state-specific: Redistricting in Arizona and Redistricting in Pennsylvania; for all other states, the resulting wikilink should still be Redistricting.
Since this template is part of a series of systematically-named articles, feel free to take advantage of the naming convention that ensures affected article names begin with state names, as seen here.
Thanks in advance. 67.101.5.237 (talk) 07:56, 10 February 2012 (UTC)
- Can you please propose the complete exact code you request? If it's OK, I'll make the edit.—GoldRingChip 11:49, 10 February 2012 (UTC)
- Could the anon user please complete GoldRingChip's request so this page can be removed from the request category. If not it will have to go uncompleted as the interface thinks it's a really old request and is flagged up as such. --andy4789 ★ · (talk? contribs?) 16:41, 11 February 2012 (UTC)
- I've "turned off" the request while we are waiting for a response. That way all of the editors who service the edit semi-protected requests don't waste time coming here to see if there is work to do. Please follow the directions in the small template to reactivate your request. Thanks, Celestra (talk) 16:54, 12 February 2012 (UTC)
- I tried to recruit someone to do the work, first here at Talk:WikiProject Templates and then on the talk page of the newest member of that project, but neither new member Rubenerd nor any of the 113 talk watchers there bothered to reply. Perhaps a registered editor might have better luck getting a volunteer? 67.101.5.62 (talk) 07:12, 19 February 2012 (UTC)
- I think it depends on where you post. I watch WP:VPT, WP:RT and various request categories, which is how I found this one. I would have done it sooner if it hadn't been turned off before I saw it originally, but that's standard practice when you're waiting on input from the requester. On requests to templates that require some templating knowledge, maybe they should be left open if the requester says they can't provide the needed code. At any rate, I made the change and sorry it took so long! — Bility (talk) 08:28, 19 February 2012 (UTC)
- I tried to recruit someone to do the work, first here at Talk:WikiProject Templates and then on the talk page of the newest member of that project, but neither new member Rubenerd nor any of the 113 talk watchers there bothered to reply. Perhaps a registered editor might have better luck getting a volunteer? 67.101.5.62 (talk) 07:12, 19 February 2012 (UTC)
- I've "turned off" the request while we are waiting for a response. That way all of the editors who service the edit semi-protected requests don't waste time coming here to see if there is work to do. Please follow the directions in the small template to reactivate your request. Thanks, Celestra (talk) 16:54, 12 February 2012 (UTC)
- Could the anon user please complete GoldRingChip's request so this page can be removed from the request category. If not it will have to go uncompleted as the interface thinks it's a really old request and is flagged up as such. --andy4789 ★ · (talk? contribs?) 16:41, 11 February 2012 (UTC)
Request help removing incorrect links
editAlthough Special:WhatLinksHere/16 includes Template:USCongDistStateOH and many Ohio congressional district articles, I can't find the link to 16. Could someone please help me with this? Thanks! GoingBatty (talk) 01:13, 8 December 2014 (UTC)
- From some quick testing, the template is just Template:USCongDistState with some terms filled in, including
current=16
. Changing this value to 15 drops it off of the WhatLinksHere/16 and puts it into WhatLinksHere/15. Illinois, with 18 districts, appears in WhatLinksHere/18. There are multiple ParserFunctions in USCongDistState calling current that I can't unravel. Nanonic (talk) 01:45, 8 December 2014 (UTC)- @GoldRingChip: Since you've worked on this template quite a bit, could you please help with this? Thanks! GoingBatty (talk) 02:54, 8 December 2014 (UTC)
#ifexist
causes a WhatLinksHere entry. The template has multiple#ifexist:{{{current}}}
. PrimeHunter (talk) 03:08, 8 December 2014 (UTC)- @PrimeHunter: Thanks! Is there a different way to code this template that doesn't generate the incorrect WhatLinksHere entries? Thanks! GoingBatty (talk) 03:34, 8 December 2014 (UTC)
- The problem came in on 15 October 2013 with this series of edits by GoldRingChip (talk · contribs). I think that they were trying to amend links on-the-fly by using a plural only when appropriate, misunderstanding how
{{#ifexist:}}
works: I get the impression that this parser function is being used to test if the parameter has been supplied or not - that is one use of{{#if:}}
. Thus, if each instance ofwere altered to{{#ifexist:{{{current}}}|{{#ifexpr:{{{current}}}>1|s|}}|{{#ifexist:{{{districts}}}|{{#ifexpr:{{{districts}}}>1|s|}}|}}}}
it may work as intended, and fix the original problem here too. --Redrose64 (talk) 13:02, 8 December 2014 (UTC){{#if:{{{current|}}}|{{#ifexpr:{{{current}}}>1|s|}}|{{#if:{{{districts|}}}|{{#ifexpr:{{{districts}}}>1|s|}}|}}}}
- Yup, that was me. My mistake, I'm afraid. Thanks for catching it and alerting me.
Do you want me to try to fix it, or do y'all want to handle it?—GoldRingChip 15:02, 8 December 2014 (UTC)- I made the suggested substitution, but it still shows up in Special:WhatLinksHere/16. You were right that my intent was to find plurals. Why didn't your solution work?—GoldRingChip 15:14, 8 December 2014 (UTC)
- Probably because you only edited the template, so it will take the transcluding pages some time to work through the job queue. Go to any page at Special:WhatLinksHere/16 that you are sure uses
{{USCongDistState}}
, and WP:NULLEDIT the page - if you then refresh Special:WhatLinksHere/16, you should find that the page that you nulledited no longer shows. It's tedious doing that for all the pages affected, which is why we have the job queue. --Redrose64 (talk) 15:28, 8 December 2014 (UTC)- Thanks, problem solved. I purged the pages, but that didn't do it. Now I know to Null Edit it next time. Thanks for noticing this and for keeping me honest!—GoldRingChip 18:36, 9 December 2014 (UTC)
- Probably because you only edited the template, so it will take the transcluding pages some time to work through the job queue. Go to any page at Special:WhatLinksHere/16 that you are sure uses
- I made the suggested substitution, but it still shows up in Special:WhatLinksHere/16. You were right that my intent was to find plurals. Why didn't your solution work?—GoldRingChip 15:14, 8 December 2014 (UTC)
- Yup, that was me. My mistake, I'm afraid. Thanks for catching it and alerting me.
- The problem came in on 15 October 2013 with this series of edits by GoldRingChip (talk · contribs). I think that they were trying to amend links on-the-fly by using a plural only when appropriate, misunderstanding how
- @PrimeHunter: Thanks! Is there a different way to code this template that doesn't generate the incorrect WhatLinksHere entries? Thanks! GoingBatty (talk) 03:34, 8 December 2014 (UTC)
- @GoldRingChip: Since you've worked on this template quite a bit, could you please help with this? Thanks! GoingBatty (talk) 02:54, 8 December 2014 (UTC)