Template talk:Navbox with columns: Difference between revisions

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Content deleted Content added
→‎FAQ: new section
Tag: repeating characters
Line 102: Line 102:
*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). --[[User:CapitalR|CapitalR]] ([[User talk:CapitalR|talk]]) 20:35, 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). --[[User:CapitalR|CapitalR]] ([[User talk: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! [[User:JamesLucas|JamesLucas]] <small>([[User talk:JamesLucas|" "]] / [[Special:Contributions/JamesLucas|+]])</small> 22:36, 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! [[User:JamesLucas|JamesLucas]] <small>([[User talk:JamesLucas|" "]] / [[Special:Contributions/JamesLucas|+]])</small> 22:36, 12 August 2008 (UTC)

== FAQ ==

How do you make this as inside a Collapsible template.
----
{| border="1" style="margin-left:3em;"
|+ '''Navigation Title 1'''
! colspan="2" |Col1header
! colspan="2" |Col2header
|-

! group1 ||
list1 5...etc.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
! group2 || list2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|-
! group3 ||
list3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
! group4 || list4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|-
! group5 ||
list1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
! group5 || list2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
|-
|}
--[[Special:Contributions/75.154.186.241|75.154.186.241]] ([[User talk:75.154.186.241|talk]]) 03:35, 1 June 2009 (UTC)

Revision as of 03:35, 1 June 2009

Column header?

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

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

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)[reply]
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)[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. Sardanaphalus 11: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.

Thanks in advance.

Regards.

—KetanPanchaltaLK 07:20, 27 May 2008 (UTC)[reply]

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

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

This template now supports up to 20 directly, but an infinite number are possible through nesting. --CapitalR (talk) 08:23, 27 May 2008 (UTC)[reply]

Width

Can the width of this template be changed? Gnevin (talk) 23:37, 14 July 2008 (UTC)[reply]

  • You can use bodystyle = width:30em; 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)[reply]

Thats great thanksGnevin (talk) 00:39, 16 July 2008 (UTC)[reply]

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)[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.


Navigation Title 1
Col1header Col2header
group1

list1 5...etc.                              

group2 list2                              
group3

list3                              

group4 list4                              
group5

list1                              

group5 list2                              

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