Template talk:US state navigation box

From Wikipedia, the free encyclopedia

Contents

[edit] Tnavbar-header

I think adding the header (view, discuss, and edit) to the template will invite a lot of vandalism and undesirable changes. Vandals are most often inexperienced users who might have difficulty finding a template in order to change it, but this addition puts the power at their fingertips. After all if you're going to write graffiti, you might as well affect 100s of articles instead of just one at a time.--Appraiser 20:07, 8 March 2007 (UTC)

  • Hi. Is there a way to add show/hide but remove the edit options? Also, links to the captial city seem to have broken sometime today (though I could be mistaken). -Susanlesch 20:38, 8 March 2007 (UTC)
  • All of the capital links seem to be working fine to me (both in IE and Firefox). What kind of browser are you using? Also, at the discussion Wikipedia talk:WikiProject U.S. states/state templates#Straw Polls, it was agreed not to use the Show/Hide form for these boxes, but you're welcome to continue that discussion either on this talk page or on the other talk page. --CapitalR 23:15, 8 March 2007 (UTC)
  • In Firefox 2.0.0.2 the capital city links don't work on my machine as of this edit. -Susanlesch 06:06, 9 March 2007 (UTC)
  • Yup, you're definitely right about that screwing up the capital links in FireFox. Right now I have no idea why, so I just turned off the view/talk/edit template until we can get this figured out. I'll do some tests in my sandbox tomorrow to try to fix it. --CapitalR 10:11, 9 March 2007 (UTC)
In edits made on April 2nd & 3rd I successfully added {{Tnavbar}} to create the "v-d-e" (view, discuss, edit) links. While implementing that I also added "show/hide" to deal with articles containing multiple navigation boxes at the bottom of the page (see Sacramento, California or Denver, Colorado). This was done via class=collapsible and a new collapse_state parameter that can force the template to display in one of three states: collapsed, expanded, or autocollapse (default setting: only collapse when more than one collapsible template on a page). If the individual U.S. state templates are updated to pass along this parameter, by adding:
| collapse_state = {{{1}}}
then the following would be possible:
{{Colorado|collapsed}} - insert Colorado navbox, collapsed
{{Colorado|expanded}} - insert Colorado navbox, expanded
Hopefully that will eliminate some of the concerns raised at Wikipedia talk:WikiProject U.S. states/state templates back in Aug/Sep 2006. I also updated the documentation and moved it to Template:US state navigation box/doc which is transcluded for viewing in Template:US state navigation box. The end result can be seen by viewing this edit. Note: You won't find any of this in the current version because all of my edits were reverted today (for more information see the #Revert discussion below).
Zyxw 04:31, 6 April 2007 (UTC)

[edit] Revert

Hello. I don't see consensus for omitting v-d-e and show-hide on the page cited in the edit history and am thinking about reverting to the new design pending a note on the user's talk page. -Susanlesch 00:46, 6 April 2007 (UTC)

See Wikipedia talk:WikiProject U.S. states/state templates#Straw Polls and read all other issues. Why don't we create Template:US state navigation box 2 for people who prefer the show/hide features. —RJN 00:49, 6 April 2007 (UTC)
  • Well, the straw poll for show-hide (in which I voted) has 2 votes against and 1 vote for, yes? Sure you can make another box if you want. -Susanlesch 00:51, 6 April 2007 (UTC)
Template:US state navigation box 2 has been created for people who prefer the show/hide features edited by Zyxw. —RJN 00:59, 6 April 2007 (UTC)
  • RJN, that was nice of you. The problem is you've changed the default for fifty states who just got used to the new one. Would you consider swapping the code between the two templates? Thanks in advance. -Susanlesch 01:11, 6 April 2007 (UTC)
As the one who added these features to the template, I don't think there is any need for two separate "US state navigation box" templates. I only see two ways that might be used:
  1. Some of the state navigation box templates implemented with Template:US state navigation box switch over to style #2 while other states retain style #1. This would be a bad idea since the template's purpose was to standardize the look of the navigation box for each state.
  2. An entire set of 50+ alternate state templates copied from the originals. Trying to keep the two sets of templates in sync would be a maintenance nightmare.
My reason for making the changes is that I noticed the template's creator had been trying to add the "v-d-e" links in edits on March 8th and 9th (see the #Tnavbar-header discussion above). While implementing that I also added "show/hide" because it seems to be an emerging standard for navigational templates to include both. However, if the consensus here is to leave out "v-d-e" and "show/hide", then that ought to apply to all states. Obviously I'm in favor of including it, but I'll save those comments for another time.
Zyxw 02:26, 6 April 2007 (UTC)
I'm in favor of retaining the show/hide and the v-d-e links. I am definitely opposed to having the 2 separate templates, it defeats the purpose of creating a consistent template for all the states to use. I also agree with Zyxw that it would lead to continous maintenance issues. VerruckteDan 14:13, 6 April 2007 (UTC)
Since there's been no further discussions and the consensus seems to favor maintaining the vde and show/hide, I've restored the coding. VerruckteDan 16:37, 14 April 2007 (UTC)
Sorry to chime in late. But there is something inheritely wrong with creating navigation templates that are so large that people want to hide them. They start to include stuff that is not needed but nobody notices. I have a gripe about the US County template were it includes a map of where the county is but its not needed since its already in the articles. btw, is there a way to specify whether by default its shown or hidden when including it. It seems to be randomly open or close when I tried using one. --MarsRover 17:55, 16 April 2007 (UTC)
The explanation of the parameter that controls whether a navbox is collapsed or expanded can be found near the bottom of the preceding section of this talk page and in the documentation on the template page. As for over-sized navboxes, I agree, they lose functionality. I don't know of any state navbox that is clearly oversized, but I haven't looked at them all recently. The show/hide feature is useful for articles with multiple navboxes. With multiple boxes, the US state navbox collapses, by default (as do any other box that uses a standard navbox template) to reduce their footprints and allow users to select to see the navbox they wish.
As for the maps being used in the county navboxes, some discussions are occurring on that talk page and I'd invite you to comment there. VerruckteDan 23:41, 16 April 2007 (UTC)
  • I updated each of the individual U.S. state templates so they can be forced into expanded mode on a page by page basis. Using Colorado as an example, simply replace {{Colorado}} with {{Colorado|expanded}}. The word "expanded" could actually be replaced with any text other than "collapsed" (always collapsed) or "autocollapse" (the default mode: only collapsed when more than one navigation box of this type). -- Zyxw 05:53, 18 April 2007 (UTC)
  • For a good example of a page with multiple collapsed navigation boxes, see the article for Phoenix, Arizona. It has six navigation boxes at the bottom of the page. -- Zyxw 07:12, 18 April 2007 (UTC)

[edit] TfD nomination of Template:US state navigation box 2

Template:US state navigation box 2 has been nominated for deletion. You are invited to comment on the discussion at the template's entry on the Templates for Deletion page. Thank you. VerruckteDan 16:49, 14 April 2007 (UTC)

[edit] Broken templates?

There's something wrong with the state templates - see Template:Arizona, Template:California and others, I assume. I've changed the Utah template back to the version that doesn't use the US state navigation box and it displays properly. — Zaui (talk) 16:33, 19 June 2007 (UTC)

Looks like it's fixed now. Thanks to whomever fixed it. — Zaui (talk) 17:00, 19 June 2007 (UTC)
Just what was the problem? Because I can't figure it out what the problem from the lastest change was unless it involved the font color. I'm attempting to simplify and conform all navboxes and templates so infomation where problems occur is very useful. —Dispenser 00:06, 20 June 2007 (UTC)
I didn't take a screen shot showing the problem, but it wasn't displaying properly - part of the code was visible at the top and the content was to the left and outside of the main box. As an experiment, you could restore the version that was in place at the time (this one, I believe) and have a look. I don't think it would disrupt things too much. — Zaui (talk) 15:20, 20 June 2007 (UTC)
That helped since most people complain about font or margin sizes. The problem was that I had been tested the wrong parameters, so then the parsing engine (It has to do with the way table are handled) barfed since there were "{}" in it. —Dispenser 17:58, 20 June 2007 (UTC)

[edit] State=expanded

Why can I no longer force the initial state of a US state navigation template to expanded? --Buaidh (talk) 22:46, 22 February 2008 (UTC)

  • Try doing state=uncollapsed instead. --CapitalR (talk) 08:00, 10 March 2008 (UTC)

That doesn't seem to work either. --Buaidh (talk) 13:07, 10 March 2008 (UTC)

Let me know where you're trying to do this and I'll have a look. --CapitalR (talk) 09:57, 13 April 2008 (UTC)

[edit] Edit

{{editprotected}}

Please move the ar. interwiki link inside the noinclude tags. --198.185.18.207 (talk) 14:39, 1 April 2008 (UTC)

Removed from template - it belongs on doc page, and there's already one there for Arabic. If it's wrong, you can find the one from the template in the source of its old version. עוד מישהו Od Mishehu 17:12, 1 April 2008 (UTC)

[edit] Centering title and left-align text

I'd like to do a major upgrade to this template to fix a few problems with it. One major issue I have with it is that the title is not centered, due to the image at the top left (see Boston, San Jose, California, and Las Vegas, Nevada for some of the many examples of where this makes it look weird). I know how to fix this problem and center the title, but of course this makes all of the lists look funny, because they are centered and will not align with the title anymore. These lists really should be left-align, however, as that makes them much easier to read (graphic design 101: never center text except in headings and titles), links them with their group headings better, and fixes the centering problem.

Here's an example of the New York one, before and after (note that the new version makes use of some new {{Navbox}} features (namely, the titlegroup parameter) that will be available after May 1):

Anyone have any thoughts or problems with me making these changes in a few days? --CapitalR (talk) 20:44, 29 April 2008 (UTC)

Looks good to me. Go for it. — Zaui (talk) 22:22, 29 April 2008 (UTC)
Support. The centering looks nice. The infinitesimal change in font size helps, too. Funny you mention graphic design 101, Alertbox this week is about (right) alignment. I trust your decision on whether groups as well as lists are left-justified. —SusanLesch (talk) 03:31, 30 April 2008 (UTC)
Support VerruckteDan (talk) 04:12, 2 May 2008 (UTC)
Okay, I just made the change and all the templates seem to still work. For templates like Hawaii and American Somoa there is now some large whitespace on the right side of the template since left-align is used. I added the parameter "image" for people who may be unhappy about this...set |image = [[Image:...]] to use the parameter. I recommend setting it to be a map or something, similar to how Template:US county navigation box works. --CapitalR (talk) 16:38, 10 May 2008 (UTC)
One problem with the current alignment: the capital isn't centered under the state name anymore on my computer. Is this a display problem with my computer, or is it this way with the template itself? As long as we're putting the state's name and the capital's name roughly in the middle of the top bar, I think it would be a lot better to have both centered on the same line. Nyttend (talk) 12:05, 13 May 2008 (UTC)
Yeah, someone made a change recently that messed up the centering on IE; I reverted back to the previous version which seems to fix the problem. --CapitalR (talk) 20:39, 13 May 2008 (UTC)