Langbahn Team – Weltmeisterschaft

Template talk:US House succession box: Difference between revisions

Content deleted Content added
m Fixed Lint errors on this page (html5 obsolete "font" tags replaced for "span style")
m Obsolete HTML tags "tt" swapped out for "code". Project Lint
Line 353: Line 353:
::::Oh, you mean it won't work just by doing edit/preview? –[[User:CWenger|CWenger]] ([[User talk:CWenger|<span style="font-family:Webdings"><big>^</big></span>]] • [[Special:Contributions/CWenger|<span style="font-family:Webdings"><big>@</big></span>]]) 18:44, 25 April 2011 (UTC)
::::Oh, you mean it won't work just by doing edit/preview? –[[User:CWenger|CWenger]] ([[User talk:CWenger|<span style="font-family:Webdings"><big>^</big></span>]] • [[Special:Contributions/CWenger|<span style="font-family:Webdings"><big>@</big></span>]]) 18:44, 25 April 2011 (UTC)
::::: Exactly. —[[User talk:Markles|Markles]] 19:15, 25 April 2011 (UTC)
::::: Exactly. —[[User talk:Markles|Markles]] 19:15, 25 April 2011 (UTC)
::::::OK, I got the sandbox working, and it seems to be as easy as just adding <tt><nowiki>{{#ifexpr: {{Str find|{{{start}}}| }} >= 0 |&nbsp;|}}</nowiki></tt> on both sides of the en dash in the years tag. I don't know what kind of performance impact this will have. How can we determine that? –[[User:CWenger|CWenger]] ([[User talk:CWenger|<span style="font-family:Webdings"><big>^</big></span>]] • [[Special:Contributions/CWenger|<span style="font-family:Webdings"><big>@</big></span>]]) 00:58, 26 April 2011 (UTC)
::::::OK, I got the sandbox working, and it seems to be as easy as just adding <code><nowiki>{{#ifexpr: {{Str find|{{{start}}}| }} >= 0 |&nbsp;|}}</nowiki></code> on both sides of the en dash in the years tag. I don't know what kind of performance impact this will have. How can we determine that? –[[User:CWenger|CWenger]] ([[User talk:CWenger|<span style="font-family:Webdings"><big>^</big></span>]] • [[Special:Contributions/CWenger|<span style="font-family:Webdings"><big>@</big></span>]]) 00:58, 26 April 2011 (UTC)
::::::: What do you mean by "performance impact"?—[[User talk:Markles|Markles]] 02:09, 26 April 2011 (UTC)
::::::: What do you mean by "performance impact"?—[[User talk:Markles|Markles]] 02:09, 26 April 2011 (UTC)
::::::::What Martin was saying above, if the parser function is expensive it could cause pages to load more slowly. I have no idea how to measure this though. –[[User:CWenger|CWenger]] ([[User talk:CWenger|<span style="font-family:Webdings"><big>^</big></span>]] • [[Special:Contributions/CWenger|<span style="font-family:Webdings"><big>@</big></span>]]) 06:02, 26 April 2011 (UTC)
::::::::What Martin was saying above, if the parser function is expensive it could cause pages to load more slowly. I have no idea how to measure this though. –[[User:CWenger|CWenger]] ([[User talk:CWenger|<span style="font-family:Webdings"><big>^</big></span>]] • [[Special:Contributions/CWenger|<span style="font-family:Webdings"><big>@</big></span>]]) 06:02, 26 April 2011 (UTC)
Line 359: Line 359:
::::::::::Wouldn't it make more sense to try the change, and go back if there turns out to be a performance impact? I mean, we are not talking about it breaking the page, just a slight delay in load time. I can't imagine it being significant anyway, as the function just has to check at most the first 10 characters. –[[User:CWenger|CWenger]] ([[User talk:CWenger|<span style="font-family:Webdings"><big>^</big></span>]] • [[Special:Contributions/CWenger|<span style="font-family:Webdings"><big>@</big></span>]]) 17:33, 26 April 2011 (UTC)
::::::::::Wouldn't it make more sense to try the change, and go back if there turns out to be a performance impact? I mean, we are not talking about it breaking the page, just a slight delay in load time. I can't imagine it being significant anyway, as the function just has to check at most the first 10 characters. –[[User:CWenger|CWenger]] ([[User talk:CWenger|<span style="font-family:Webdings"><big>^</big></span>]] • [[Special:Contributions/CWenger|<span style="font-family:Webdings"><big>@</big></span>]]) 17:33, 26 April 2011 (UTC)
::::::::::: OK, I'll go with it. Is [[Template:USRepSuccessionBox/sandbox]] in the correct form?—[[User talk:Markles|Markles]] 19:05, 26 April 2011 (UTC)
::::::::::: OK, I'll go with it. Is [[Template:USRepSuccessionBox/sandbox]] in the correct form?—[[User talk:Markles|Markles]] 19:05, 26 April 2011 (UTC)
::::::::::::I appreciate it. I just optimized it in the sandbox so it is good to go. While you're at it, I noticed some of the template code displayed differs from what is actually used. For instance, the top example (Newt Gingrich) has a tag of <tt>years= 1979 – 1999</tt> (with spaces) but when the template is actually invoked it is <tt>years= 1979–1999</tt> (without spaces). Could you make those consistent? In all cases the bottom version is correct. Thanks. –[[User:CWenger|CWenger]] ([[User talk:CWenger|<span style="font-family:Webdings"><big>^</big></span>]] • [[Special:Contributions/CWenger|<span style="font-family:Webdings"><big>@</big></span>]]) 19:15, 26 April 2011 (UTC)
::::::::::::I appreciate it. I just optimized it in the sandbox so it is good to go. While you're at it, I noticed some of the template code displayed differs from what is actually used. For instance, the top example (Newt Gingrich) has a tag of <code>years= 1979 – 1999</code> (with spaces) but when the template is actually invoked it is <code>years= 1979–1999</code> (without spaces). Could you make those consistent? In all cases the bottom version is correct. Thanks. –[[User:CWenger|CWenger]] ([[User talk:CWenger|<span style="font-family:Webdings"><big>^</big></span>]] • [[Special:Contributions/CWenger|<span style="font-family:Webdings"><big>@</big></span>]]) 19:15, 26 April 2011 (UTC)
::::::::::::: The example is from {{tl|USRepSuccessionBox/doc}}, which uses {{tl|USRepSuccessionBox}}. Is that the problem? If so, then it should work when {{tl|USRepSuccessionBox}} is changed. Or is there something else going on?—[[User talk:Markles|Markles]]
::::::::::::: The example is from {{tl|USRepSuccessionBox/doc}}, which uses {{tl|USRepSuccessionBox}}. Is that the problem? If so, then it should work when {{tl|USRepSuccessionBox}} is changed. Or is there something else going on?—[[User talk:Markles|Markles]]
::::::::::::::Nevermind on the last part, just realized [[Template:USRepSuccessionBox/doc]] is unprotected, so I fixed it myself. –[[User:CWenger|CWenger]] ([[User talk:CWenger|<span style="font-family:Webdings"><big>^</big></span>]] • [[Special:Contributions/CWenger|<span style="font-family:Webdings"><big>@</big></span>]]) 19:58, 26 April 2011 (UTC)
::::::::::::::Nevermind on the last part, just realized [[Template:USRepSuccessionBox/doc]] is unprotected, so I fixed it myself. –[[User:CWenger|CWenger]] ([[User talk:CWenger|<span style="font-family:Webdings"><big>^</big></span>]] • [[Special:Contributions/CWenger|<span style="font-family:Webdings"><big>@</big></span>]]) 19:58, 26 April 2011 (UTC)

Revision as of 05:26, 23 November 2022

WikiProject iconUnited States: Government Template‑class
WikiProject iconThis template is within the scope of WikiProject United States, a collaborative effort to improve the coverage of topics relating to the United States of America on Wikipedia. If you would like to participate, please visit the project page, where you can join the ongoing discussions.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.
Taskforce icon
This template is supported by WikiProject U.S. Government.
WikiProject iconU.S. Congress Template‑class
WikiProject iconThis template is within the scope of WikiProject U.S. Congress, a collaborative effort to improve the coverage of the United States Congress on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.
This template is about one (or many) person(s).

Congress-person title in SuccessionBox

Moved from User Talk:Markles
  • You're right: it is clunky. I don't know if there's a better title, though. It's a compromise between accurate and concise as well as I could imagine at the time I created the template. I suppose Representative of Maryland's 8th congressional district would work, but I'm not thrilled about it. There's been a bit of discussion already about calling someone a "Representative" or a "Member of the house of reps…" How about you move this discussion (and copy our bits too) to Template_talk:USRepSuccessionBox, and see if anyone else has any thoughts? After all, it's not up to me: Wikipedia is a consensus-run vehicle.—Markles 19:13, 12 May 2006 (UTC)[reply]

Multi-member At-Large district

New Jersey was constituted as a single at-large district for periods of time in the early to mid 1800s. What is the best way to use this template to show that multiple members preceded, succeeded and served alongside a particular member. See Charles C. Stratton for my attempts to address this. Stratton also has another twist, in that after his final term in the House, New Jersey switched over to separate districts. How would his successors be shown? Any assistance would be greatly appreciated. Alansohn 16:39, 6 July 2006 (UTC)[reply]

  • Agreed. Many states have adopted a "General Ticket" at different times; these are not true "At-Large" districts, as those are typically one Rep. from one state districts, not multiple Reps from one state. It would be helpful to have the option of at least noting someone as from a GT district instead of AL, as that can be confusing. --Mrfeek (talk) 07:05, 1 February 2009 (UTC)[reply]

This succession box needs improvement

The present design of USRepSuccessionBox is unnecessarily wide, and contains many more words than are needed. The notes above call it "bulky" and "clunky," so let's fix it. It seems to me the box is really unnecessary, but if there must be one please consider having it simplified, perhaps more like what's below. stilltim 01:41, 20 October 2006 (UTC)[reply]

Political offices
Preceded by U.S. Representative from Delaware
(at-large)

January 3 1993 – present
Incumbent

It's much better to have United States in the title than U.S. It makes it look more official. I personally like it. American Patriot 1776 14:01, 20 October 2006 (UTC)[reply]

Oppose

  • It's only as wide as {{start}} and its corresponding templates require.
  • To make it less wide, you could remove unnecessary middle initials.
  • A "U.S. Representative" is not the same as "Member of the U.S. House of Representatives." John Bolton is a U.S. Representative, Tom Carper is not.
  • Adding "Political Offices" makes it more bulky/clunky.
  • Markles 16:22, 20 October 2006 (UTC)[reply]

cleanliness

Someone just took this box off Sue Kelly [1] to make it look cleaner. I think it looks better, but the links are less than ideal. The current layout, with single words hanging on their own line, is not good either. Anyone have ideas for improvement? Night Gyr (talk/Oy) 01:27, 12 November 2006 (UTC)[reply]

In the US, I'm pretty sure we call them simply Representatives, and not Members of the House of Representatives, so it would make sense to shorten it up that way. Night Gyr (talk/Oy) 01:29, 12 November 2006 (UTC)[reply]

  • Sometimes we call them that, it's true. However, that's not actually what they are. They are not U.S. Representatives, they are members of the US House of Reps. Sadly, that means Wiki articles get a bit wordier, but accuracy is more important than brevity.—Markles 02:15, 12 November 2006 (UTC)[reply]
  • Communicating accurately depends on understanding, and understanding sometimes prefers brevity. News organizations, members of the House of Representatives, and the House of Representatives itself, refer to its members, simply as "Representatives." Perhaps they believe, as I do, that while the longer description is technically correct, it is so long as to distract, if not confuse, while the abbreviated one is more than sufficient for clear understanding. I believe it is WP policy to follow the common practice of the subject in its naming conventions, as documented in their publications, and certainly, in this case, that is to describe these people as "Representatives," nothing more. Just visit the House website. Please give these points serious consideration. stilltim 04:19, 12 November 2006 (UTC)[reply]
  • I don't agree entirely, Stilltim, but I think I've been outvoted here. So I've changed "Member of the U.S. House of Representatives" to "U.S. Representative."—Markles 20:54, 12 November 2006 (UTC)[reply]

"district_ord" parameter

We don't need to include "district_ord" as a parameter. I had used it in early versions of this template, but I have since constructed this template such that it is now superfluous. It's not harmful, but you don't need to include it any more.—Markles 11:34, 14 December 2006 (UTC)[reply]

Which article to link to

United States Congressional
Delegations from X state
List of United States
Representatives from X state
Comments
Alabama Alabama Unique
Alaska Alaska Complete
Arizona Arizona Complete
Arkansas Arkansas List article contains 4 people
California California List article has unique content
Colorado Colorado List article has unique content
Connecticut Connecticut List article contains 5 people
Delaware Delaware List article has unique content
Florida Florida List article redirects to Delegations article
Georgia Georgia List article contains 13 people
Hawaii Hawaii Complete
Idaho Idaho List article contains 2 people
Illinois Illinois List article contains 19 people
Indiana Indiana List article contains 9 people
Iowa Iowa List article contains 5 people
Kansas Kansas List article contains 4 people
Kentucky Kentucky List article contains 6 people
Louisiana Louisiana List article contain 7 people
Maine Maine List article contains 2 people
Maryland Maryland List article contains 8 people
Massachusetts Massachusetts Complete
Michigan Michigan List article contains subset of content in Delegations article
Minnesota Minnesota List article contains 24 people
Mississippi Mississippi List article contains subset of content in Delegations article
Missouri Missouri List contains 8 people
Montana Montana List article contains 1 person
Nebraska Nebraska List article contains subset of content in Delegations article
Nevada Nevada List contains 3 people
New Hampshire New Hampshire List contains 2 people
New Jersey New Jersey List article contains subset of content in Delegations article
New Mexico New Mexico List contains 3 people
New York New York Complete
North Carolina North Carolina List article contains subset of content in Delegations article
North Dakota North Dakota List article contains subset of content in Delegations article
Ohio Ohio List article contains subset of content in Delegations article
Oklahoma Oklahoma List contains 5 people
Oregon Oregon List contains ALL people
Pennsylvania Pennsylvania List contains ALL people
Rhode Island Rhode Island List contains all people
South Carolina South Carolina List contains 6 people
South Dakota South Dakota List article contains subset of content in Delegations article
Tennessee Tennessee List contains 9 people
Texas Texas List contains 32 people
Utah Utah List article contains subset of content in Delegations article
Vermont Vermont List contains 4 people
Virginia Virginia List contains 10 people
Washington Washington List contains 9 people
West Virginia West Virginia List contains 3 people
Wisconsin Wisconsin List contains 8 people
Wyoming Wyoming List article redirects to Delegations article
American Samoa American Samoa List article redirects to Delegations article
District of Columbia District of Columbia List article redirects to Delegations article
Guam Guam List article redirects to Delegations article
Puerto Rico Puerto Rico List article redirects to Delegations article

After User:Markles reverted my change to which articles the Template links to, I thought I should look at all of the states (where previously I had concentrated on my own). As the chart above shows, in all but two cases (MA & DE), the much more robust and complete article is the "Delegations" article. In many cases, the "List" article has only the current delegation, a very small number of historical representatives, or virtually no additional information about the people. In EVERY case, the "Delegations" articles are complete and up-to-date. They link to the reps' individual articles, denote party, list ordinal congress', list years of service, list district, and show graphically who they served along-side. They also show the con-current Senate delegations. I propose that the Template:USRepSuccessionBox link to the "Delegations" articles until such time as the "List" articles compete with respect to standardization, completeness, and substantial unique information. --Appraiser 15:34, 19 January 2007 (UTC)[reply]

  • Oppose. Excellent work on presenting the case and doing the analysis. In my opinion, this is the level of analysis that is required for making major changes to these articles and templates. With that said, I am reminded of the saying "Better to light a candle than to curse the darkness." The List articles are mostly not much better than stub quality. HOWEVER, if you go back not even a year ago, the Delegation articles as a whole were barely a little better than stub quality. In one year Delegation articles were populated, and by your observation, substantially completed. Now, Project Congress has quite a few more active members, and certainly the recent election sparked greater interest in the topic. So, if bringing the List articles to substantial completeness was made a project wide priority, how long do you think it will take to bring the List articles to substantial completion? 9 months? 6 months? Given my optimism for the abilties of the project members to make relentless progress on project goals, I see no reason to think that it's worth the trouble to go through these temporary redirections. If you want to talk about the utility of having all three articles for each state, Delegation, Rep List, Senator List then we should have a full blown discussion on the WikiList Workgroup Talk Page.--G1076 16:31, 19 January 2007 (UTC)[reply]
  • Oppose. I see your point, Appraiser. But linking to an incomplete (or even a redlinked) article is not necessarily a bad thing. Just because there's an article with complete information, it isn't necessarily the right article.—Markles 16:52, 19 January 2007 (UTC)[reply]
  • Comment I was asked to comment here, so I won't weigh in with a !vote. My opinion is that as long as we have complete lists in article space the incomplete "List of" articles belong in project or userspace. Eventually the current versions should be replaced by sortable wikitables, and the formatting of the "List of" articles is much more amenable to accomplish this. There are currently two problems with sortable tables, and I'm not sure if anyone is working on resolving them: 1. Currently a name has to be encoded as [[Firstname Lastname|Lastname, Firstname]] to get the name sorting right, and 2. users need to set their date preferences to ISO format: 1999-12-31, to get the date sorting right (also, start and end dates should be split into separate columns). Also, I'm not sure if hand coding is the proper way to do this. A lot of the information is available as machine readable data from ICSPR or voteview.com, so importing them into Excel and converting them into wikicode seems to be a faster way to create complete tables. ~ trialsanderrors 19:28, 19 January 2007 (UTC)[reply]
  • Support I reviewed the comments here, which seem sensible, and most of the pages linked in the above box. I thought carefully about what the best long-term approach might be. The delegations article are well formatted, and include the senate and house information. If at some point the "Lists" articles are better written, and sufficiently informative, they will still only contain the representatives, and will not be comprehensive. So, in my opinion, transitioning to using the "Delegates", and redirecting the lists. Regardless of how much work it might be, the best long-term solution is to use the comprehensive approach used in "delegates". The sortable tables issue, although important, is related to the chosen format, and not the comprehensive versus limited coverage issue. I think it is a non-issue in this case. As G1076 points out, indeed, as we are working on a long-term approach, rather than a patch, discussion on the we Project Talk Page makes sense. In the mean time, redirecting on a case by case basis to the delegate article makes sense to me. Atom 20:14, 19 January 2007 (UTC)[reply]
  • Comment Weighing in a little late... The Delegation articles are much more informative and up-to-date. The List articles definitely need improvement. That said, I think it makes more sense for the template to link to List articles. It seems likely they will be improved in the future and I think it's more logical in terms of usability. However, I would very much like to see a 'See also' link to the corresponding Delegation article on the List page. I checked Arkansas and it didn't have one. I think this would be valuable information to anyone hunting down information on a state's congressional delegation. -- Meersan 16:41, 22 January 2007 (UTC)[reply]
  • Support It seems to me that this is something of a moot point; the articles for current U.S. Representatives already link to the articles for the other current representatives from their state due to their being listed in a separate navigation box. Articles for historical representatives, however, bear very little relation to the current delegation, either in terms of specific members or in terms of which district they represent. I don't think there's any purpose in having an article for a congressman from the 1830s link to a list of the state's current representatives. MisfitToys 21:01, 23 August 2007 (UTC)[reply]
  • Support STILL - Someone has recently changed the link to the "List" articles again. I still maintain that the "Delegations" articles are much more complete (as stated in my original note above). All of the Delegations articles also link to the "daughter articles" (List of Senators and List of Representatives), so I see no reason to change this template to link to a set of articles which is still very incomplete.--Appraiser 21:18, 23 August 2007 (UTC)[reply]

Added New Features!

  • new: This was added to be a variant of before so that the "Preceded by" message in the s-bef box is not shown--i.e. for someone like James Madison. To use the feature, do not include the before parameter. Simply type new= and enter one of the parameters from Template:S-new.
  • startrows: A good example of this would again be James Madison. Including the startrows parameter will change the heighth of ONLY the "Preceeded by" cell. The title and "After" cells will not be changed.
  • reason: This was added to be a variant of the after parameter and will use an s-non code instead of an s-aft code--i.e. using it will remove the "Succeeded by" message. See Bob Dole's first congressional seat to see how I used it. Simply type reason= and enter the reason.
  • endrows: This is just like startrows above. Including this will only change the heighth of the "Succeeded by" cell, so use it wisely.

The biggest change about this, however, is that omitting all of the above features, and the before and after parameters will isolate the title box; or, including only the "before-box" will omit the end box, and vice versa. See James Madison, again! :p Another use of this is if you have a before and after box that are each two rows and need to squeeze one box inbetween. Cheers!! Foofighter20x (talk) 23:01, 18 February 2008 (UTC)[reply]

Planned conversion

In a speedy delete request for a template that redirected here ({{USRep succession box}}, the author of the request stated, "All uses of this redirection have been migrated to target Template:USRepSuccessionBox in preparation for conversion to s-bef/s-ttl/s-aft style." What conversion is planned?—Markles 22:31, 9 November 2009 (UTC)[reply]

As you know (going by the edit history) this template is based on the s-bef/s-ttl/s-aft templates. The WP:SBS project has been working toward a standardised, flexibile, and easy to use set of succession box templates. Most of the non-standard ones have been replaced over the last three years. The 15 which remain are s-bef/s-ttl/s-aft under-the-skin. Four of them are redirects to this template. (They're listed at WP:SBS/T)
As a step toward an eventual standardisation I've replaced all the calls to the redirect at {{USRep succession box}} with direct calls to {{USRepSuccessionBox}}. This should make things easier for a bot to handle when a way of bringing this template to the standard is agreed. This tidy-up has already been done in the past with Template:USRepSuccessionbox, Template:USRepsuccessionbox and Template:USrepsuccessionbox.
{{USRepSuccessionBox}}, {{U.S. Senator box}}, {{TXHouseSuccession box}}, {{TXSenateSuccession box}} are all doing pretty similar things with {{s-ttl}} and parameters such as district, state, and class. Adding a legislature parameter would allow all 4 to be merged into an enhanced s-ttl. That would be one way forward.
Anyway, nothing's going to happen to this template without discussion (pretty obviously, since it's editprotected). But there's no reason to protect all the "spelling variations".
Hope you feel a bit happier with my actions. Bazj (talk) 23:25, 9 November 2009 (UTC)[reply]

Edit request from CWenger, 12 April 2011

Could somebody fix this template such that the date range is not spaced? According to the WP:MOS, this isn't necessary when the end date is "present", such as at Paul Ryan#External links. Thanks. –CWenger (talk) 01:46, 12 April 2011 (UTC) CWenger (talk) 01:46, 12 April 2011 (UTC)[reply]

  • I'm happy to make the change. Thanks for bringing it to my attention. Where is it in the MOS, so I can familiarize myself with it (as I edit other templates, too)?—Markles 01:51, 12 April 2011 (UTC)[reply]
Thanks. It is mentioned in the spacing subsection of MOS:ENDASH. It is not explicitly stated but I would assume that since "present" is a single word the en dash should not be spaced on its account. –CWenger (talk) 03:03, 12 April 2011 (UTC)[reply]
That seems inconsistent to use spaces when it's "1999-2005" but no spaces for "1999–Present." Do I misunderstand this?—Markles 11:06, 12 April 2011 (UTC)[reply]
The en dash should only be spaced when one of the elements it is connecting has a space. So neither of your examples above should be spaced. In the template documentation, the only example that is incorrect is Mike Castle ("1993 – present"). –CWenger (talk) 21:31, 12 April 2011 (UTC)[reply]
So, what you're saying is: Correct: January 3, 1999–present and January 3, 2003–January 3, 2007; Incorrect: January 3, 1999 – present and January 3, 2003 – January 3, 2007?—Markles 22:42, 12 April 2011 (UTC)[reply]
Exactly the opposite:
Correct
  • 2003–2007
  • 2003–present
  • January 3, 2003 – January 3, 2007
  • January 3, 1999 – present
Incorrect
  • 2003 – 2007
  • 2003 – present
  • January 3, 2003–January 3, 2007
  • January 3, 1999–present
Hopefully that clarifies it. –CWenger (talk) 23:06, 12 April 2011 (UTC)[reply]
That does clarify it. But I don't know how to edit the template to use spaces sometimes and not other times.—Markles 15:13, 13 April 2011 (UTC)[reply]
Hmmm, yeah, it looks like Wikipedia lacks a string search or even string length function that could help us here. I guess we are out of luck until Wikipedia adds support for the StringFunctions extension. Thanks for looking at it though. –CWenger (talk) 16:21, 13 April 2011 (UTC)[reply]
Indeed. Keep track of that extension… if it's added at some point in the future, I'd love to hear about it.
(Request answered and denied as not technically possible)Markles 17:20, 13 April 2011 (UTC)[reply]

Edit request from CWenger, 17 April 2011 based on Template:Str find

Hi again. I stumbled upon Template:Str find, which I think that would make this request possible. Do you know how to do this? Unfortunately since the page is under full protection I can't test any solutions...it's too bad you aren't allowed to preview changes without saving them on protected pages. I also tried copying the content to my user subpages to mess with at User:CWenger/USRepSuccessionBox, but I can't figure out how to get the examples to use that instead of the main Template page. –CWenger (^@) 19:35, 17 April 2011 (UTC)[reply]

Interesting. I'll try to look at it soon, but I'm in the middle of a different project right now. Give me some time to look it over.—Markles 20:58, 17 April 2011 (UTC)[reply]
Please try out your code on Template:USRepSuccessionBox/sandbox and test it on Template:USRepSuccessionBox/testcases. If/when a solution is found, please replace the {{editprotected}}. One note from me: it would probably not be a good idea to use an "expensive" parser function in a highly used template as it could cause pages to load more slowly. — Martin (MSGJ · talk) 12:13, 18 April 2011 (UTC)[reply]
I tried editing Template:USRepSuccessionBox/sandbox but it does not seem to have an effect on the examples shown upon preview. Am I missing something? –CWenger (^@) 21:36, 24 April 2011 (UTC)[reply]
Its edit history indicates that that you didn't edit it. Try it again.—Markles 18:43, 25 April 2011 (UTC)[reply]
Oh, you mean it won't work just by doing edit/preview? –CWenger (^@) 18:44, 25 April 2011 (UTC)[reply]
Exactly. —Markles 19:15, 25 April 2011 (UTC)[reply]
OK, I got the sandbox working, and it seems to be as easy as just adding {{#ifexpr: {{Str find|{{{start}}}| }} >= 0 | |}} on both sides of the en dash in the years tag. I don't know what kind of performance impact this will have. How can we determine that? –CWenger (^@) 00:58, 26 April 2011 (UTC)[reply]
What do you mean by "performance impact"?—Markles 02:09, 26 April 2011 (UTC)[reply]
What Martin was saying above, if the parser function is expensive it could cause pages to load more slowly. I have no idea how to measure this though. –CWenger (^@) 06:02, 26 April 2011 (UTC)[reply]
I agree with Martin's point. We ought to weigh the benefit of the spacing against the cost of the parser function dragging down browsers. I don't know how to measure the performance impact either. Still, I think the benefit gained in spacing is tiny. For now, until there's a way to quantify the cost vs. benefit, I suggest we err on the side of caution. Therefore I think we should avoid making this change for the minimal formatting benefit to be gained. I'm sorry if this is disappointing considering the time you've personally spent learning how to do this. Perhaps your new-found knowledge could be implemented elsewhere on a smaller scale, first? If so, let me know how it goes. —Markles 13:04, 26 April 2011 (UTC)[reply]
Wouldn't it make more sense to try the change, and go back if there turns out to be a performance impact? I mean, we are not talking about it breaking the page, just a slight delay in load time. I can't imagine it being significant anyway, as the function just has to check at most the first 10 characters. –CWenger (^@) 17:33, 26 April 2011 (UTC)[reply]
OK, I'll go with it. Is Template:USRepSuccessionBox/sandbox in the correct form?—Markles 19:05, 26 April 2011 (UTC)[reply]
I appreciate it. I just optimized it in the sandbox so it is good to go. While you're at it, I noticed some of the template code displayed differs from what is actually used. For instance, the top example (Newt Gingrich) has a tag of years= 1979 – 1999 (with spaces) but when the template is actually invoked it is years= 1979–1999 (without spaces). Could you make those consistent? In all cases the bottom version is correct. Thanks. –CWenger (^@) 19:15, 26 April 2011 (UTC)[reply]
The example is from {{USRepSuccessionBox/doc}}, which uses {{USRepSuccessionBox}}. Is that the problem? If so, then it should work when {{USRepSuccessionBox}} is changed. Or is there something else going on?—Markles
Nevermind on the last part, just realized Template:USRepSuccessionBox/doc is unprotected, so I fixed it myself. –CWenger (^@) 19:58, 26 April 2011 (UTC)[reply]
Yep, looks great. Thanks. –CWenger (^@) 21:46, 26 April 2011 (UTC)[reply]

Problem with template for Territory of Hawaii on William Paul Jarrett article

There is a problem with the USRepSuccessionBox template for Territory of Hawaii on the William Paul Jarrett article. "Delegate to the U.S. House of Representatives" works correctly, but "from Territory of Hawaii" shows the Territory of Hawaii as a red link. Peaceray (talk) 20:01, 2 March 2013 (UTC)[reply]

It did. Mahalo! Peaceray (talk) 08:41, 3 March 2013 (UTC)[reply]

RfC regarding ceremonial seniority position

The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.


Should the template {{s-prec|usa}} be included in the USRepSuccessionBox? The template can be used to add a seniority box at the bottom of the USRepSuccessionBox, such that the ceremonial seniority of a US congressperson is shown flanked by a "preceded by" person and a "succeeded by" person. Such an addition can be seen in this recent edit to the biography of Representative Barbara Lee. See Template:S-prec#With_parameter for context. Binksternet (talk) 00:17, 27 June 2014 (UTC)[reply]

Discussion

  • No per WP:UNDUE. The ceremonial seniority of a US congressperson is a triviality. The relation is even more trivial between the congressperson and the two others in the "preceded by" and "succeeded by" cells. Such seniority is automatic, not a result of striving or competition or merit. As well, such seniority means very little in the United States, where presidential succession has many people coming before the congressperson. Binksternet (talk) 00:17, 27 June 2014 (UTC)[reply]
  • Support Seniority is indeed a biographical aspect, so I see no reason why not to include it in the infobox. Think of the reader... It is valuable information to know if the congressman/woman is a junior, or not. - Cwobeel (talk) 00:19, 19 July 2014 (UTC)[reply]
  • Support. Seniority matters in committee appointments and is an important aspect that should be included. As Cwobeel rightly pointed out, think of the reader. . .it is valuable information to know if the congressman/woman is a junior or not. SW3 5DL (talk) 06:09, 21 July 2014 (UTC)[reply]
  • comment, So from what I can gather, this places a header over the existing template no?--RightCowLeftCoast (talk) 11:05, 6 September 2014 (UTC)[reply]
  • Comment, npov: if seniority is relevant at all, then the information should be included, if it is not relevant at all, then it should not be included Zarpboer (talk) 05:53, 12 September 2014 (UTC)[reply]
The discussion above is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.

RfC

An RfC has been opened at Template talk:Succession box#RfC. The RfC debates the usage of this template especially, and I think that the participation of users who work with this template would be helpful. Kraxler (talk) 13:14, 28 November 2014 (UTC)[reply]

Vacant parameter

At present, if one writes "after=vacant" there appears in the box the saying "Succeeded by vacant". Is it possible to add a parameter like "vacant=after" to show a simple "Vacant" in the field of the successor? For comparison: omitting the after parameter in incumbent boxes shows just "Incumbent" without "Succeded by". Kraxler (talk) 14:08, 8 January 2015 (UTC)[reply]

Somebody added now the correct parameter, it's "reason=vacant". It should be added at the template page, as an option, although, thinking about it some time I may have guessed in the end. Kraxler (talk) 14:30, 10 January 2015 (UTC)[reply]

Template-protected edit request on 23 March 2021

Change "List of United States Representatives" to "List of United States representatives" to bypass the redirect. Woko Sapien (talk) 14:41, 23 March 2021 (UTC)[reply]

 DoneJonesey95 (talk) 15:21, 23 March 2021 (UTC)[reply]

Template-protected edit request on 13 September 2021

On the first line of this template

{{#if:{{{new|}}}|{{s-new|rows={{{startrows}}}|{{{new}}}}}|{{#if:{{{before|}}}|{{s-bef|before= {{{before}}}}}|}}}}

change {{{startrows}}} to {{{startrows|1}}}

Viewing the html generated by Abner_Hazeltine, there is some html text of the form

rowspan="&#123;&#123;&#123;startrows&#125;&#125;&#125;"

The above change would generate correct html

I have come across at least 15 pages that have this issue. Desb42 (talk) 07:29, 13 September 2021 (UTC)[reply]

 DoneJonesey95 (talk) 15:30, 13 September 2021 (UTC)[reply]