Template talk:Navbox generic/Archive 3

message: I'm trying to make columns inside . It looks fine when you click the template page, but when you go to the article page, the left columns are bloated. Pandacomics 19:39, 11 July 2007 (UTC)
replies: text: This is a Firefox issue, where it reflows (I'm guess that's what it's called) the dialog.  I'll convert it to regular collapsible table and it'll also be better for accessibility (since your faking columns). —Dispenser 20:19, 29 July 2007 (UTC)
thread_title:  problems with the navbox 

message: Simple question, but can anyone know the magic CSS incarnations to change the colors of the linked text (normal and visited) within the navbox.  The defaults are difficult to see with some backgrounds colors in the navboxes. -- KelleyCook 17:03, 2 August 2007 (UTC)
replies: text: This is one way: text produces text. –Pomte 05:45, 4 August 2007 (UTC)
thread_title:  Does anyone know how to change the colors of the links 

message: Hi everyone. 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. I am pretty sure this will be used in navigation boxes like . If any of you are interested I have brought my template and CSS code up for discussion at the village pump. See also  itself and its talk page. --David Göthberg 15:34, 10 August 2007 (UTC)
thread_title:  Template nowraplinks 

message: I am requesting that the complete code for this template be changed to the following.  The changes being made and the reasons for doing so are explained below.
===New code===





===The reasons for the changes===
*Cuts down the template size.  I've been running into problems with this template simply being too big in some articles, causing the pre-expand limit to be reached and pages to only partially load (see Wikipedia:Template limits).  These changes cut the size from 10k to 6.5k, which will help out a little bit.
*Deletes all deprecated parameters from the template.  I recently went through all 4000 templates that transclude this one and converted every single deprecated parameter to the correct parameter (see my edit history, I made about 1200 edits to templates to accomplish this task).
*Adds the "white-space:nowrap" style to the groups.  This was a major problem in lots of instances of this template; the groups were being made much too large by accident.  This will correct the problem.
*Fixes a problem with image placement when no groups are specified and the lists are small (the image would be place away from the right side of the template, instead of against the right side like it should be fixed).  This was fixed by forcing the list width to be as large as possible to force the image to the side.
*The general appearance of the template is not changed at all by this edit (only the minor group size and image placement bugs are fixed).  The major reason for this edit is to cut the template size.
===Examples of these changes in use===
See User:CapitalR/Test for a version of this template with the changes implemented.  See User:CapitalR/Test3 for lots of templates using this new version (to prove that the changes actually work).  It has been tested on IE, Firefox, Safari, and Opera on a few hundred instances of templates, and no errors have been found.
===Summary===
Please let me know if there are any problems or questions.  Thanks, --CapitalR 05:10, 11 August 2007 (UTC)
replies: text: Done. Cheers. --MZMcBride 05:40, 11 August 2007 (UTC)
replies: text: Thanks  -CapitalR 22:08, 12 August 2007 (UTC)
thread_title:  Requested changes to cut size, delete deprecated parameters, add nowrap, fix bug with image placement 

message: Please let me know if there are any problems or questions.  Thanks, --CapitalR 05:10, 11 August 2007 (UTC)
replies: text: Done. Cheers. --MZMcBride 05:40, 11 August 2007 (UTC)
replies: text: Thanks  -CapitalR 22:08, 12 August 2007 (UTC)
thread_title: Summary

message: I notice that many of the "Navbox" templates are being replaced with "Navbox_generic". I might be a minority in this, but I think that this template is awful when it is hidden and opened on most articles. By default, they usually show up as small rectangles, but then when you open them, they explode to encompass the full width of the page; then when you close them, they go back to the small rectangle state. This is an example. I find the behaviour to be atrocious in terms of navigation, especially when you have to click "show" twice to open them. So, unless this has become standard procedure, I want to know why the switch to such a poorly-coded template, and if there's any way to either fix it so the dwonky behavior can stop. --Toussaint 22:40, 11 August 2007 (UTC)
replies: text: Hi, I'm afraid I can't tell you why many  templates are being replaced with  (you should find the editors doing this and ask them on their talk pages), but I can tell you how the size problem could be fixed. It sounds to me as if your major problem is with the change in the width of the template between when it's collapsed versus expanded, in which case the easiest fix would be to add width:100% to the table CSS. This should force the table to be as wide as possible regardless of whether it's expanded or collapsed; however, it may cause problems with custom width settings, depending on how it's implemented. Of course, this only describes the fix, it's not a declaration of my own opinion of the behavior, nor is it saying that everyone (or even a majority of people) agree with you. As far as clicking some templates twice to open them is concerned, I'd appreciate a link to an example, as your example above doesn't exhibit that behavior. --Dinoguy1000 Talk 01:16, 12 August 2007 (UTC)
thread_title:  Why this template? 

message: Ever since the latest change to this template, every template that uses this one and has the style="width:auto" set, is not working. Here is an example Template:Apple. The strange part is that it still works when the templates are collapsed but not when expanded.
:Very weird.  I'll go through and fix this later today / tomorrow.  Sorry for the problems. --CapitalR 18:33, 12 August 2007 (UTC)
replies: text: Ok, all fixed I think.  --CapitalR 00:29, 13 August 2007 (UTC)
replies: text: Up until a couple days ago, "width:auto" displayed the template wrapping around the text.  Now it extends to 100%.  Is there some way I can get the template be no larger than the amount of text?  --thedemonhog talk • edits 03:38, 13 August 2007 (UTC)
thread_title:  Problem with style="width:auto"