Template talk:Navbox with columns

From Wikipedia, the free encyclopedia

Contents

[edit] Column header?

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

[edit] 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 {{NHL}} and I have 2 comments:

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

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 {{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! --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)

[edit] 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.

—KetanPanchaltaLK 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 {{Navbox with collapsible groups}}, not {{Navbox with columns}}, but the same concept holds either way.

To get more than 10, do the following:

{{Navbox
  |titlestyle = <enter titlestyle here>
  |title = Title
  
  |list1 = {{Navbox with collapsible groups|child
    |groupstyle = <enter groupstyle here>
    |liststyle = <enter liststyle here>

    |group1 = Group1
    |list1 = List1

    |group2 = Group2
    |list2 = List2

    ...

    |group10 = Group10
    |list10 = List10
  }}

  |list2 = {{Navbox with collapsible groups|child
    |groupstyle = <enter groupstyle here>
    |liststyle = <enter liststyle here>

    |group1 = Group11
    |list1 = List11

    |group2 = Group12
    |list2 = List12

    ...

    |group10 = Group20
    |list10 = List20
  }}
}}

Basically, the {{Navbox}} acts as a wrapper for the child {{Navbox with collapsible groups}}. 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)

[edit] 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)