Love the new template, but I must fault you for not creating it sooner, but that's your problem. ;) I used this to overhaul {{NHL}} and I have 2 comments:
I had to leave the padding parameter blank because if I removed it, it shifted the padding over a smidge. Can this be fixed?
The template is limited to only one row of columns, and I could not figure out how to manipulate a line to span more than one column. I wanted to do something like this:
Yeah, I think that a subgroup template is a really good idea. I'll look into that over the next few days (though I've been quite busy in real life lately, so there could be a delay). As for giving me credit for creating it, I can't take that credit :). I ripped it off of {{Navigation with columns}}, which is where some of the strange padding variables and other variable names come from. Hopefully one of us can fix it up to be even better! --CapitalR05:41, 23 October 2007 (UTC)[reply]
Well so far I don't seem to have broken much as I learn about Wikipedia code. I've just added "colwidth" as a less ambiguous alternate name for "width", so hope that won't be the first break. If you haven't started it already, I'll try to work out a "Navbox subgroup with columns" as another learning exercise. Sardanaphalus11:17, 23 October 2007 (UTC)[reply]
A doubt
Is it possible to have more than 10 groups in a collapsible navbox? If it is, how does one go about it? I tried doing that in my sandbox, but couldn't succeed. If some one could be generous enough please help me with that.
Yup, all Navboxes and variants are completely nestable, so this problem is solvable. I'm guessing you wanted more groups in {{Navbox with collapsible groups}}, not {{Navbox with columns}}, but the same concept holds either way.
I'm guessing that I'm seeking the impossible, but what I'd like to do is autobalance columns, as can be done in, say, Word or InDesign. To clarify: I've got an navbox with three columns, each containing about 6 lists. The list contents vary greatly in length, so they behave very differently depending on the width of the browser window. Is there any mechanism for distributing the approx. 18 lists among the three columns so that the columns are of roughly equal height? JamesLucas (" " / +) 17:37, 12 August 2008 (UTC)[reply]
Unfortunately, that's not possible to do in HTML as far as I know. This is especially in your case, as you want to balance groups between multiple navbox child templates which we can't really do at all. I did update your Magic template to make it look a little nicer (at least in Firefox, IE doesn't support setting height:100% for each group/list set). --CapitalR (talk) 20:35, 12 August 2008 (UTC)[reply]
Well, thank you very much, CapitalR. I would have left a link had I known I was going to to get that kind of response. That's some spiffy work you did! JamesLucas (" " / +) 22:36, 12 August 2008 (UTC)[reply]
FAQ
How do you make this as inside a Collapsible template.
I'm not even close to an expert at any of this, but maybe you could create the box above into a template like {{chart}}...than create the most basic of the navbox's that have no columns or anyhting, just the basic list, inside that you might be able to place the {{chart}}. Not sure if that would even be possible but it's just a thought.--[SawBucks01:47, 21 June 2009 (UTC)[reply]
The "padding" parameter
Hello. I think this parameter's name is too vague. It refers to padding on the lefthand side of the entire body of the template, not some kind of padding in general, so I think it should be renamed to "padding-before-cols" or "pre-cols-padding" or something like that. 212.84.100.97 (talk) 07:12, 1 February 2010 (UTC)[reply]
The "bodystyle" parameter is the same as just "style". Template:Navbox has documentation for "style", but no longer for "bodystyle". I just updated the documentation on this template to reflect that change. The parameter controls the style for the entire template (i.e. for the HTML table that the navbox is made out of). --CapitalR (talk) 23:35, 12 May 2010 (UTC)[reply]
There are two different ways to accomplish that feature. One of them you discovered above, and that's what I recommend. The other way is just to use the column headers or footers, and change their style, like this:
How can I disable the automatic full width being used? I only want it to use up as much space as needed. I am not really using this template for a navigational box but I cannot find another template that allows for multiple rows and columns. RedWolf (talk) 00:30, 2 September 2010 (UTC)[reply]
Try using "style = width: auto;", which is basically a hack to override the prior "width: 100%" statement used in {{Navbox}}. But, it appears to work? Or, if you want to specify a particular value, you could use say "style = width: 22em;" or something like that. Thanks! Plastikspork―Œ(talk)01:44, 2 September 2010 (UTC)[reply]
Great. I don't like the coloring (e.g., blue text should be links). In this particular instance, I would say that {{infobox}} may have been a better choice for the code base, if you are only going to have two columns, and the width is an issue. Thanks! Plastikspork (talk) 13:09, 2 September 2010 (UTC)[reply]
The color is still experimental, I just didn't want to use blue foreground. I can't use infobox because it is limited to two columns. For now, this template is only two but will be 3 when the 2011 census comes out. It could even be 3 sooner if people feel they want 1996 added. Thanks for the comments. RedWolf (talk) 00:31, 3 September 2010 (UTC)[reply]
Titleclass & bodyclass
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request.
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request.
Can we get a colheaderclass, colclass and colfooterclass that is inline with the other classes recently added (e.g., titleclass, bodyclass, groupclass, listclass, aboveclass, belowclass, etc.)? Also I believe bodyclass should be applied to the colheader, col, and colfooter in a similar vein as is done with above, below, group, and list, etc. An example of why this is needed can been seen in the col fields of {{Pirates of the Caribbean}} where I had to use {{flatlist}} instead. Thank you. 50.53.15.51 (talk) 00:12, 11 February 2012 (UTC)[reply]
due to the fact that this template is just a frontend to navbox, the top columns are passed in the list field, so 'listclass = hlist' will take care of it. also, when using several different 'fooclass = hlist', you can just use 'bodyclass = hlist'. Frietjes (talk) 00:18, 11 February 2012 (UTC)[reply]
This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request.
Is there a way to get the template Template:Florida House of Representatives to default to hide rather than default to show? That template is taking up too much space in articles when in the open default position. I suspect it has to do with this Navbox with columns templatge so I posted here. -- Uzma Gamal (talk) 14:25, 25 April 2012 (UTC)[reply]
This version of the template in the sandbox includes colclass, colbodyclass and colNbodyclass parameters. colclass prefixes the current listclass (i.e. it may be used as an alternative to or be overriden by listclass) and both affect all columns entirely – i.e. colheaders/footers as well as columns' contents ("bodies") – while colbodyclass and the colNbodyclass parameters affect only columns' contents.
When it's desirable to apply a class such as "hlist" or "plainlist" to one or more columns' contents but not elsewhere..? (Also, colclass more meaningful here than listclass.) Sardanaphalus (talk) 09:13, 15 September 2014 (UTC)[reply]
I understand the reasoning, but the naming is illogical. It also makes the class structure way too complicated. I also fail to see the benefits in general; regular lists are never mixed with horizontal lists, nor should they be. -- [[User:Edokter]] {{talk}}15:40, 15 September 2014 (UTC)[reply]
Please indicate how the naming is illogical. If this is complication, perhaps the classes offered by e.g. the Sidebar templates and Infobox require revision. Did you take a look at the testpage tests? Sardanaphalus (talk) 00:40, 17 September 2014 (UTC)[reply]
Parameter name
I was confused for a while by "listclass" until I realized it acts as if "colclass" (is that correct?). Can this name be corrected, please. Squiver (talk) 11:18, 4 February 2015 (UTC)[reply] I see this has been mentioned a couple of times above.
I hadn't got as far as "group"s and "list"s after the columns, so copied the example you linked (thanks) and gave the columns and lists some content (above). It looks like "listclass" affects the column content (col1–col5) and the "list" content (list1–list6), which seems more potentially confusing.
Maybe a system that avoids names where "col"s, "group"s, "list"s are on their own (plus a number) is needed, both here and therefore for other navboxes and related templates? "col1=", for instance, defines col1's content, whereas "group1=" defines a header/title (with "list1=" defining the content). Instead, how about:
headers/titles: "colXheader"s as currently, but "groupX"s become "groupXheader"s -- so, to keep in step, "groupX"s at other navboxes etc become "groupXheader"s, but have "headerX"s -- not "groupX"s -- as less cumbersome equivalent names. Consequently, colheaderclass, colheaderstyle, groupheaderclass, groupheaderstyle, colXheaderclass, colXheaderstyle, groupXheaderclass, groupXheaderstyle (and, at other navboxes, headerclass, headerstyle, headerXclass, headerXstyle)?;
contents/bodies: "colXcontent"s instead of the current ambiguous "colX"s, "groupXcontent"s instead of "listX"s -- so, to keep in step, "listX"s at other navboxes become "groupXcontent"s, but have "contentX"s as less cumbersome equivalent names. Consequently, colcontentclass (what, I think, I had in mind originally above), colcontentstyle, groupcontentclass, groupcontentstyle, colXcontentclass, colXcontentstyle, groupXcontentclass, groupXcontentstyle (and, at other navboxes, contentclass, contentstyle, contentXclass, contentXstyle)?;
footers: as currently, i.e. "colXfooter"s, so, consequently, colfooterclass and colfooterstyle, colfooterXclass and colXfooterstyle?
These names also avoid using "list", which, although these templates' contents usually are lists, doesn't assume they will be (and, for instance, should leave listXname, listXtitle, listXcontent etc associated only with Template:Sidebar with collapsible lists.
And, with the "header"s and "footer"s, perhaps "above" and "below" should become (unnumbered) "header" and "footer" parameters in these navbox and similar templates -- or at least have these names as equivalents? Squiver (talk) 09:43, 5 February 2015 (UTC)[reply]
This template currently supports 6 additional groups/lists below the columns. Would someone more familiar with this template kindly increase its capacity to 10 additional groups/lists? Thank you, -- Black Falcon(talk)06:02, 20 December 2017 (UTC)[reply]
I think I figured it out (see below), though I would prefer a second opinion before making any changes. I think it's simply a matter of extending the four blocks of code below the "Allow a few additional groups/lists after columns" hidden comment, as follows ("..." indicates existing code and should not be copied over):
Elimination of the 12-row hard cap for additional groups and lists (see #Additional groups/lists above), and the ability to use the in-line "child/subgroup" notation instead of nesting templates for these additional lists
The ability to eventually integrate this with Module:Navbox to keep the codebases in sync
On the template {{United States Congresses}} the 10th, 11th and 12th columns were erroneously placed after the 1st column in the generated HTML despite being properly tagged as col10, col11 and col12 respectively (even previously correct edits from decades past render incorrectly). I am not sure if this template is to blame directly, however it is fully reproducible in my sandbox as well. I have temporarily deployed a fix by nesting navigation boxes, if it is fixed, please revert my hodge-podge nesting edit. If it is not in the spirit of Wikipedia to make temporary edits like that, I do profusely apologize! Tanszism (talk) 15:26, 21 September 2024 (UTC)[reply]