Template talk:Navbox/Archive 1

message: My goal is to make this 100% compatible with  so that this template can replace that one.  The major reason is that a bug fix which repaired NavFrame behavior caused  to be always initially closed.  So we need to implement category:
Please change:
|l1 = 
to:
 |l1 = 
Thank you. ←BenB4 15:51, 19 August 2007 (UTC)
replies: text: Done. Cheers. --MZMcBride 15:54, 19 August 2007 (UTC)
thread_title:  Tweaks for {Navigation} compatibility 

message: I have made a template and some CSS code that prevents word wraps inside links and only allows word wraps between the links and in normal text. This is useful for instance for long link lists.
The  template has now been fully deployed and the CSS code added to common.css. I and other editors have tested it in several ways in several browsers. There for I suggest that the CSS class is used here (in Template:Navbox) to save users of this navigation box from using lots and lots of   or . I have tested it with the template's current code in my own testpages/sandboxes.
I suggest that the first line of Template:Navbox/core should be changed to:

<table class="navbox collapsible {{{state|autocollapse}}} nowraplinks"

While I am at it I suggest that the last few lines of Template:Navbox be changed to:

}}<noinclude>
{{protected template}}
{{template doc}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>

The change of the last few lines is to get the documentation look and feel recommended in Wikipedia:Template documentation. (The two empty lines between the "protected template" and the "template doc" is to prevent the green documentation box to come too close to the template, just to make the template page more readable.)
: Done. Cheers. --MZMcBride 04:00, 20 August 2007 (UTC)
replies: text: Thanks MZMcBride. Now all the generic navbox templates use the nowraplinks class. Except for  which I think probably should not use nowraplinks. --David Göthberg 05:03, 20 August 2007 (UTC)
replies: text: Nice new feature, I like it.  --CapitalR 06:30, 20 August 2007 (UTC)
thread_title:  Class nowraplinks 

message: Can the [ hide/show ] be made in small text. To correspond with the " v . d . e ", size text. It also looks ugly with the [ and ] not linked to the hide/show.
It should be more like  (which is being depreciated). It looks nicer. SpecialWindler  talk 10:06, 21 August 2007 (UTC)
replies: text: Note: I'm not sure if this can be done in this template.  The CSS for  is defined as  at Mediawiki:Common.css.  I'm having a hard time figuring out the parent elements and whether they can be spanned here. ←BenB4 10:30, 21 August 2007 (UTC)
replies: text: Yeah, that can't be changed in the template, unfortunately, as it is part of the collapsible table defined by MediaWiki's Common.js (which can be viewed here).  Someone could put this in as a requested edit there, however, as I agree that the brackets should be linked with the Show/Hide word, and that it should be smaller.  --CapitalR 13:13, 21 August 2007 (UTC)
replies: text: Ok, I just posted a request on the MediaWiki talk:Common.js page to include the square brackets in the show/hide link.  Someone else can make a separate request to make the font size smaller.  --CapitalR 13:27, 21 August 2007 (UTC)
replies: text: I know what to do for that, but I can't really do anything about the font size. ←BenB4 13:41, 21 August 2007 (UTC)
replies: text: I too agree, it looks better with the [ and ] linked and with a smaller size. --David Göthberg 13:45, 21 August 2007 (UTC)

text: If you look closely in the "---Titlebar---" section of Template:Navbox/core you will see the . That is the template that creates the "v•d•e" links. --David Göthberg 14:49, 21 August 2007 (UTC)
thread_title:  hide/show 

message: Is there some particular reason why the group labels aren't centered vertically in their cells?  Placing them at the top seems a bit strange. Kirill 21:32, 2 September 2007 (UTC)
replies: text: Hi Kirill, this has been recently discussed and will soon be changed to be vertically centered.  This code is undergoing a major re-write at the moment, and I promise the centering will fixed soon.  Let me know if you have any other requested changes.  --CapitalR 21:50, 2 September 2007 (UTC)
replies: text: Okay, that's good; I just wasn't sure if this was a deliberate choice. :-) Kirill 22:06, 2 September 2007 (UTC)

text: Yes, I think most of us want that change. I very often see people manually adding that "vertical-align:middle" in navboxes when they make them. But, since "vertical-align:middle" is the default in web browsers if no vertical-align is given, it is better to simply remove the "vertical-align:top" part. --David Göthberg 23:28, 2 September 2007 (UTC)
replies: text: Ok, done as per David. Kirill 00:00, 3 September 2007 (UTC)
thread_title:  Group label alignment 

message: There has been a move (which I approve of) to convert existing templates to use Navbox, which has nicely implemented the collapsible templates on many pages.  However, this has broken custom colorization of VDE links in the title bars of many templates.  For those templates using dark backgrounds in the title bar (which includes many university athletic teams, which are using school colors), the VDE links can now be nearly impossible to see.  (See Template:AuburnBasketballCoach and Template:CaliforniaBasketballCoach for examples.) The title itself and the show/hide links take on the custom color, so it would be great if the VDE links could as well.  Is this possible?  Thanks. WildCowboy 08:55, 14 September 2007 (UTC)
replies: text: Yup, it's possible, and has already been done on test versions for the next upgrade.  It will be done when the new changes to the Navbox go through. --CapitalR 16:56, 14 September 2007 (UTC)
replies: text: Great...thanks!  Looking forward to seeing it implemented. WildCowboy 18:13, 14 September 2007 (UTC)
thread_title:  Colorizing VDE links 

message: I have noticed that when a link clicked on in a template, and it no longer appears as a link but as bold text, the nowrap no longer works.  See: , click on Van Buren, my screen resolution setting is 1024px X 768px using FireFox.  When Van Buren is the active page, the name wraps to the next line.  This is an extremely minor nit-picky point, but if you can fix it go for it.  Otherwise, forgetaboutit.  Regards.--Old Hoss 21:17, 21 September 2007 (UTC)
replies: text: Ah. Because the no-wrap css applies to links only.  Not sure how to fix that.  Hmm.  Smarter people here so I pass. ←BenB4 21:47, 21 September 2007 (UTC)

text: On second thought, the purpose of navboxes is to leave to other related articles, so I'm not sure if this is a big enough deal to spend a lot of time on. ←BenB4 21:49, 21 September 2007 (UTC)
thread_title:  Wrapping 

message: There's a problem with , at least in Firefox. Some of the text appears outside of the box. Anyone know what's going on and how to fix that? JACOPLANE • 2007-09-24 09:23
: It's because of the long lines of nowrapped text. That template needs tidied anyway, so let's see if we can kill two birds with one stone. Chris Cunningham 09:39, 24 September 2007 (UTC)
replies: text:  Alas, it's going to require a rethink of the template layout. But there template's a little tidier than it was, anyway. Chris Cunningham 09:47, 24 September 2007 (UTC)
replies: text: I did a quick (and not the best way to do it) edit using  although the nav box still needs to be cleaned up. Peachey88 02:14, 26 September 2007 (UTC)
thread_title:  Problem 

message: Say if we find a template that needs to be changed but we don't have the expertize or time to change it, is there a way we can tag it (eg: a category)? Peachey88 07:28, 26 September 2007 (UTC)
replies: text: If by "change" you mean "tidy and cleanup", there's :Category:Wikipedia template cleanup. Chris Cunningham 13:45, 26 September 2007 (UTC)
thread_title: Tagging templates that need to change

message: Anyone know where I can find a tutorial on how to create a navbox for my own site? Thanks Travb (talk) 08:49, 27 September 2007 (UTC)
replies: text: Unless your site is running the Mediawiki software, it's not something which is transferable from here. If you're running MediaWiki, the best place to start is Help:Templates, which gives an overview of the syntax. Chris Cunningham 09:07, 27 September 2007 (UTC)
thread_title: Tutorial

message: Firstly, the main page documentation doesn't mention the category attribute, which can be used to add cats to transcluded pages.
Secondly, these should be <noinclude>d from the category itself. See :Template: Games Workshop, which transcludes :Category: Games Workshop onto pages which include it but avoids being part of that category itself. I'd rather this were automatic with the attribute, because templates shouldn't be getting tagged with article namespace cats.
Chris Cunningham 12:49, 27 September 2007 (UTC)
thread_title:  Categories (discussion and non-inclusion)