Jump to content

Template talk:USCongDistState

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

TfD debate

[edit]

This template survived a debate at TfD. The discussion can be found here. -Splashtalk 01:06, 25 November 2005 (UTC)[reply]

Don't use templates within other templates. You'll need to find another method. -- Netoholic @ 03:36, 17 January 2006 (UTC)[reply]

[edit]

The 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 (talkcontribs) 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)[reply]

Ragarding s's for states ending with letter s

[edit]

Discussion 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)[reply]

Seems to me the answer is here.

Senators

[edit]

Should the list of senators from each state go under "See also"? I think so. Any objections? --zenohockey 00:01, 11 December 2006 (UTC)[reply]

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)[reply]

Category application

[edit]

A 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)[reply]

Broken

[edit]

Help 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)TCM00:51, 22 September 2008 (UTC)[reply]

Current districts

[edit]

On 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)[reply]

  • 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)[reply]
  • 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)[reply]

Edit-semiprotected template request

[edit]

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)[reply]

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)[reply]
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)[reply]
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)[reply]
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)[reply]
[edit]

Although 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)[reply]

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)[reply]
@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)[reply]
#ifexist causes a WhatLinksHere entry. The template has multiple #ifexist:{{{current}}}. PrimeHunter (talk) 03:08, 8 December 2014 (UTC)[reply]
@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)[reply]
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 of
{{#ifexist:{{{current}}}|{{#ifexpr:{{{current}}}>1|s|}}|{{#ifexist:{{{districts}}}|{{#ifexpr:{{{districts}}}>1|s|}}|}}}}
were altered to
{{#if:{{{current|}}}|{{#ifexpr:{{{current}}}>1|s|}}|{{#if:{{{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)[reply]
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)[reply]
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)[reply]
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)[reply]
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)[reply]