Template talk:Navbox with columns

Column header?
Would it be possible to have a column header attribute? Paul C/T+ 12:52, 24 August 2007 (UTC)

Two comments
Love the new template, but I must fault you for not creating it sooner, but that's your problem. ;) I used this to overhaul  and I have 2 comments: (row1: col1 spans 100%) (row2: col1, col2, col3 each span 33%) (row3: col1 spans 100%) (row4: col1, col2, col3 each span 33%) to produce: -row1- row2 row2 row2 -row3- row4 row4 row4 Using abovestlye would suffice for the fist row, but not for the third row.  Regards.--Old Hoss 18:59, 3 October 2007 (UTC)
 * 1) I had to leave the padding parameter blank because if I removed it, it shifted the padding over a smidge.  Can this be fixed?
 * 2) 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:


 * Maybe a "Navbox subgroup with columns" template (akin to the current Template:Navbox subgroup) might be a solution. These templates are neat. Sardanaphalus 08:19, 22 October 2007 (UTC)


 * 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, 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!  --CapitalR 05:41, 23 October 2007 (UTC)


 * 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. Sardanaphalus 11:17, 23 October 2007 (UTC)

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.

Thanks in advance.

Regards.

 —Ketan Panchal  t aL K   07:20, 27 May 2008 (UTC)
 * Yup, all Navboxes and variants are completely nestable, so this problem is solvable. I'm guessing you wanted more groups in, not , but the same concept holds either way.

To get more than 10, do the following: 

Basically, the acts as a wrapper for the child. Note that you can use Navbox with collapsible groups as the wrapper instead with the same effect. Let me know if you need help setting this up further. --CapitalR (talk) 08:19, 27 May 2008 (UTC)

Question
Is there any way to create more than 10 columns? I wanted to get 18 in a table. Any thoughts on how I could do this? Remember (talk) 14:17, 25 January 2008 (UTC)
 * This template now supports up to 20 directly, but an infinite number are possible through nesting. --CapitalR (talk) 08:23, 27 May 2008 (UTC)

Width
Can the width of this template be changed? Gnevin (talk) 23:37, 14 July 2008 (UTC)
 * You can use  to change the width, if that's what you're talking about.  For example:

Let me know if you need more help with this. --CapitalR (talk) 01:02, 15 July 2008 (UTC)
 * Thats great thanksGnevin (talk) 00:39, 16 July 2008 (UTC)

Column balacing
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)
 * 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)
 * 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)

FAQ
How do you make this as inside a Collapsible template.

--75.154.186.241 (talk) 03:35, 1 June 2009 (UTC)


 * I'm not even close to an expert at any of this, but maybe you could create the box above into a template like ...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  . Not sure if that would even be possible but it's just a thought.--[SawBucks 01:47, 21 June 2009 (UTC)

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)

Two rows of colums
Is there any way to have a template with two rows of columns? So far, only one row works. Jamen Somasu (talk) 13:25, 2 June 2010 (UTC)


 * How about this? Plastikspork ―Œ (talk) 17:43, 3 June 2010 (UTC)
 * 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:

This method will give you up to three rows. --CapitalR (talk) 19:00, 3 June 2010 (UTC)

Disable full width
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)
 * 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)


 * That works like a charm, thanks. If you want to see it in action: Canada census. RedWolf (talk) 04:19, 2 September 2010 (UTC)
 * 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)
 * 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)

Titleclass & bodyclass
Please add  and   to make use of Navbox's parameters of those names. Andy Mabbett ( Pigsonthewing ); Andy's talk; Andy's edits 14:22, 22 August 2011 (UTC)
 * Done. Ucucha (talk) 16:39, 22 August 2011 (UTC)
 * Thank you. That seems to be working. Andy Mabbett ( Pigsonthewing ); Andy's talk; Andy's edits 17:26, 22 August 2011 (UTC)

colheaderclass, colclass and colfooterclass
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)
 * 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)
 * That is weird because I had listclass = hlist set but it did not seem to work. Anyway, thanks for feedback. 50.53.15.51 (talk) 17:55, 11 February 2012 (UTC)

Template:Florida House of Representatives
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)


 * ✅. In future, please leave requests for specific navboxes on that navbox's talk page rather than the general one. The solution I've just implemented in this edit will work in future if you'd like to take note of it. Chris Cunningham (user:thumperward) (talk) 14:40, 25 April 2012 (UTC)

colclass, colbodyclass, colNbodyclass
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.

In order to clarify this difference (see Template:Navbox with columns/testcases) a newline was introduced before each and  (as is already the case before each ).

Any objection to replacing the main template with this sandbox version? Sardanaphalus (talk) 15:10, 14 September 2014 (UTC)
 * Seems unnecessary. Why is it needed? Plastikspork ―Œ (talk)  02:49, 15 September 2014 (UTC)
 * 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)


 * 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.  15:40, 15 September 2014 (UTC)
 * 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)

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) I see this has been mentioned a couple of times above.
 * listclass does not include the colheader.  12:12, 4 February 2015 (UTC)
 * Ok... I think... but why, then, isn't "colheader" called "listheader"? Squiver (talk) 00:20, 5 February 2015 (UTC)
 * Actually, my mistake. Listclass has no relation to columns; see .  08:27, 5 February 2015 (UTC)

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)

Missing end tag
Before  a closing   is missing. --RolandUnger (talk) 16:22, 25 July 2017 (UTC)

Additional groups/lists
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)


 * 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):

...
 * list9style =
 * list10style =
 * list11style =
 * list12style =

...
 * list9 =
 * list10 =
 * list11 =
 * list12 =

...
 * group9style =
 * group10style =
 * group11style =
 * group12style =

...
 * group9 =
 * group10 =
 * group11 =
 * group12 =


 * Does that look right? -- Black Falcon (talk) 17:59, 15 July 2018 (UTC)


 * Implemented. Pelt me with the fish of your choice if I made a mess of things. -- Black Falcon (talk) 16:04, 21 July 2018 (UTC)

Template-protected edit request on 11 January 2021
To add link for Federal Deputy Ministers of Youth and Sports Wan Ahmad Fayshal Wan Ahmad Kamal to be edit to Wan Ahmad Fayshal Wan Ahmad Kamal Riccckyyy (talk) 02:15, 11 January 2021 (UTC)
 * Red information icon with gradient background.svg Not done: this is the talk page for discussing improvements to the template . Please make your request at the talk page for the article concerned. – Jonesey95 (talk) 02:22, 11 January 2021 (UTC)

Template-protected edit request on 8 July 2021
Change the Health and Family Welfare minister to Mansukh L. Mandaviya, as he replaced Dr. Harsh Vardhan in that position on 7th July 2021. MPGuy2824 (talk) 06:19, 8 July 2021 (UTC)
 * Red information icon with gradient background.svg Not done: this is the talk page for discussing improvements to the template . Please make your request at the talk page for the article concerned. firefly  ( t · c ) 06:40, 8 July 2021 (UTC)