Template talk:Navbox with collapsible groups

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Image[edit]

I'm having some trouble adding the image to the side. When I do this the header doesn't have a colspan attribute and doesn't extend to the width of the template.—Noetic Sage 19:51, 18 October 2007 (UTC)

You're right. Thanks for letting me know. I have fixed the issue. It looks fine in your sandbox, now.↔NMajdantalk 20:02, 18 October 2007 (UTC)

VDE links[edit]

The V D E links are now smack in the middle of the title. I couldn't fix it, but I do know you can't mix float and absolute. EdokterTalk 13:41, 19 October 2007 (UTC)

Crap, thought I had it. Thanks for letting me know. It worked perfectly in Firefox but I didn't even think of checking IE. Oh well.↔NMajdantalk 14:06, 19 October 2007 (UTC)
Just keep trying :) If navbox can do it, so can you. EdokterTalk 16:26, 19 October 2007 (UTC)
OK, how's this? EdokterTalk 17:11, 19 October 2007 (UTC)
Why on some articles the default state is show and on others, its hide? I can live with the collapsible header, but the default state should be show.↔NMajdantalk 17:29, 19 October 2007 (UTC)
Nevermind. Got it. I removed the autocollapse because, unlike most templates, you actually don't see any more articles until you expand on of the groups. Also, I noticed the nowraplinks class you added. I am not familiar with this. I'm assuming this means that I do not need all those {{nowrap}} templates anymore? If so, great!↔NMajdantalk 17:39, 19 October 2007 (UTC)
Correct, link should no longer break into two lines. I didn't know you wanted it not to autocollapse - I just copied most from {{navbox}}. Also, nice find on wrapping the title in a font tag; I would have never thought of that. EdokterTalk 18:14, 19 October 2007 (UTC)

Additional features[edit]

I think it would be nice to have a parameter that automatically expands all of the groups. For example, on the main page for each template (ie University of Michigan for {{University of Michigan}}), I would like to be able to see all of the links in the template. Perhaps a better way to do this is automatically expand all groups unless a parameter is specified to only expand one.

Another suggestion, going on the trend of navbox consolidation, is to merge this completely with {{Navbox}}. Although a lot of extra coding would be required, it would be convenient for editors to simply add a parameter to switch between groups in rows and groups that are collapsible. --scottalter 06:47, 13 November 2007 (UTC)

The whole point of this template is to hide all but the most relevant/similar articles in a large navigation box. If you wanted all to be visible, then the normal Navbox template should be used. As far as consolidating with navbox, that is something you would need to bring up with the editors over there. It would be a good idea, but that template is so complex already.↔NMajdantalk 12:41, 13 November 2007 (UTC)
Ahh, I misread your comment. So, on the main article for the navigation box, in this case, University of Michigan for the {{University of Michigan}} template, you want all expanded. I still dislike the default action being to show all of them but I'll try to find the time to add an all parameter that will show all.↔NMajdantalk 12:46, 13 November 2007 (UTC)

Collapsed. Whole thing.[edit]

Is there a way to set the table to default to completely collapsed? Or some way the state can be controlled on the individual pages it's placed on? It's obviously *possible* to collapse the whole thing down to just the title bar, as this can be done manually by clicking on "hide". That's the state I want it to start in.

I ask because someone just implemented this code on Template:Celtic mythology topics. Even with the sub-sections collapsed, it's a bear. It's visually overwhelming on some of the articles it's on. The previous version was even more overwhelming, but at least it could be collapsed down completely. Help? - Kathryn NicDhàna 03:35, 8 December 2007 (UTC)

Curently, no. The template needs overall tweaking, and probably integrating with {{navbox}} in some form. It's still a work in progress. EdokterTalk 09:53, 8 December 2007 (UTC)

show/hide links[edit]

On templates with dark title background colors, it is hard to see the show/hide links... any way to change this? see {{University of Michigan}} ~ PaulC/T+ 05:49, 19 December 2007 (UTC)

Bodystyle[edit]

On {{Navbox}}, bodystyle defaults to white, on this one it defaults to what looks like f7f7f7. Can a "bodystyle" parameter be added so I can make it white on {{Dasyuromorphia}}? --Tombstone (talk) 23:01, 22 March 2008 (UTC)

Expand more than one section[edit]

Is there any way that, using the "state" parameter, more than one section can be set to expand? For example, on {{Time Persons of the Year}}, Eisenhower appears in two sections (1927-1950 [1944] & 1951-1975 [1959]), so on his article, the template should default to showing 2 groups. Is this possible? If so, please provide the code. If not, can the template be updated? Rgrds. --Tombstone (talk) 08:47, 4 September 2008 (UTC)

Normally, the selected parameter can be used to uncollapse one group. To uncollapse more groups, the {{Time Persons of the Year}} template must be modified to accept state parameters for each group; ie. like this: | state1 = {{{state1|collapsed}}} for group 1, etc. Then you can edit the article and add |state1 = uncollapsed to the template for the groups you want to uncollapse. EdokterTalk 21:09, 10 September 2008 (UTC)
I've already done it. Is this what your were looking for? EdokterTalk 21:17, 10 September 2008 (UTC)
It's exactly what I was looking for. My, aren't navboxes wonderful little inventions? Rgrds. --Tombstone (talk) 06:09, 11 September 2008 (UTC)

Lists in groups[edit]

Can somebody help with the Template:Citroën timeline. Do not understand how to make it work (like it does in ru-wiki for example ru:Шаблон:Автомобили Citroën) --Rockfanby 15:23, 27 March 2009 (UTC)

The easy fix be to use is and around the tables chandler · 15:25, 27 March 2009 (UTC)

Groups/Lists[edit]

I use the template to sort names with a group for every letter of the alphabet ... so could someone please expand the number of groups to 26 ? Many thanks

~~ Phoe talk ~~ 08:16, 5 April 2009 (UTC)
That would pose serious pre-expand template limit problems on some articles, which is why the number of groups is kept to only 10. Luckily, the boxes are nestable, so you can do something like this to fix the problem:


Hopefully that does all you need. Let me know if you have any questions. --CapitalR (talk) 11:05, 5 April 2009 (UTC)

I don't want to be narrow-minded, but it seems it's currently at eleven (expanded with this edit [1]). I had thought such a change rather a minor matter, however if this requires a sweeping blow, I'm happy to try another way. Although I'have nested the template already, I will experiment to integrate your suggestion. Thanks for your answer and your efforts.
~~ Phoe talk ~~ 11:48, 5 April 2009 (UTC)
Ah yes, having 11 is actually quite convenient as it makes it possible to have 10 groups/lists in each nested set (with the 11th being the next Navbox in the nesting chain). Let me know if you need any help with your Navboxes and I'll be happy to have a look. --CapitalR (talk) 12:30, 5 April 2009 (UTC)
I just added this as an example on the doc page as it likely will be a common request. --CapitalR (talk) 12:36, 5 April 2009 (UTC)
I have it inserted (on User:Phoe/contributions) and have it modified a little bit for my purposes - it works fine. Best wishes
~~ Phoe talk ~~ 13:09, 5 April 2009 (UTC)

Width of subgroups[edit]

Hello. Could the width of the groups be reduced slighty, please (but still keep them centered)? When I see this template in use, it's difficult to tell the main titlebar from the group titlebars, especially when one of the groups is already shown. Otherwise, it's a neat template. 212.84.120.221 (talk) 03:30, 27 December 2009 (UTC)

"section" as alternative to "group"[edit]

Hello again. I've noticed the name "Navbox with collapsible sections" is redirected to this temnplate. Could, therefore, the label "section" (as in "section1", "section2", etc) be made an alternative to "group" ("group1", "group2", etc) please? A fair number of -- maybe many -- instances of this template include groups within groups etc, so the means to label its own groups as sections might reduce the chances of confusion. Thank you. 212.84.120.221 (talk) 09:07, 1 January 2010 (UTC)

Wikia navbox collapsed groups[edit]

Hey,

Over at E-Wrestling Encyclopedia and I am making making a navbox collapsed template and it shows the groups that are collapsed. Did I do something wrong? Sundogs Wikia UserPage | Roller Derby Wiki 00:03, 2 January 2010 (UTC)

edit: I also like to have a section to show up (code is #ifexist) and will this make the previous post behaving badly? Sundogs Wikia UserPage | Roller Derby Wiki 00:06, 2 January 2010 (UTC)

Group without "show"[edit]

In Template:Cultural Properties of Japan, I would like to get rid of "[show]" in the last line as there is nothing to expand. If I use, "state=off" the center alignment is broken (apparently because the row is wider without the "[show]"). How do I properly get rid of the "[show]"? bamse (talk) 22:04, 7 February 2010 (UTC)

It's been fixed. bamse (talk) 13:35, 8 February 2010 (UTC)

Why should selected be 1st/unnamed param?[edit]

This text is in Group/list parameters:
> Usually this parameter [selected] should be set to {{{1|}}}.
That doesn't make sense. Template parameters should be designed in whatever way makes using the template convenient, and that usually means that unnamed parameters are used for information specific to that template. Generic parameters like selected should be named. —Codrdan (talk) 20:41, 30 March 2010 (UTC)

Unclear[edit]

I am struggling to understand the abbr and selected parameters. Please can someone who understands them rewrite that part of the documentation for bears like me of very little brain? Fiddle Faddle (talk) 08:10, 6 April 2010 (UTC)

How about this:

abbrn
This is the abbreviation of groupn. It is used by the selected parameter to indicate which group will be visible (uncollapsed) when the table first appears. See the selected section below for details. abbrn is optional but recommended; only groups with abbreviations can be selected to be visible by default.
selected
selected determines which group will be visible (uncollapsed) when the table is first displayed. If its value is the abbreviation of a group (abbrn), then listn will be visible by default, with all other lists collapsed. If selected is left blank, or if it does not match any abbrn, then all groups are collapsed. Any template that transcludes this template must pass selected from the article to this one, for instance with a parameter of the same name:
{{Navbox with collapsible groups
|selected = {{{selected|}}}
...

Codrdan (talk) 12:19, 6 April 2010 (UTC)
I regret I am still struggling to understand this. I'm not usually thick on programming matters, but this one seems to be in my blind-spot. I don't understand yet how the template "knows" which group is visible. May I refer you to {{Abuse cases}} where it would be optimal to open a subgroup when an article in that subgroup is being read. I am pretty sure that is what the combination of Selected and Abbr do, but I don't see how it is done. Feel free to use short words and sentences, I am a natural blond! Fiddle Faddle (talk) 13:30, 6 April 2010 (UTC)
Take a look at Template:Abuse cases. You use selected when calling your template in the article to tell Navbox with collapsible groups which group to display. —Codrdan (talk) 14:19, 6 April 2010 (UTC)
I see what you have done, and I am grateful for it. Let me see if I understand it by saying what I believe happens, because I am still not 100% sure.
I am using Roman Catholic sex abuse cases by country as my example. I see that the parameter selected appears once and is set to {{{selected|}}} in the template. At the foot of the article the navbox is entirely collapsed. Since the words in the abbrev are <code?Child sexual Roman Catholic and the article title does not include all of those words I assume it to be correct that the group is not expanded.
In other words I am expecting the words in abbrev to be matched to the article title (but not necessarily the complete title) and thus the group uncollapsed. Do I have that right?
I'm sorry to keep asking. I am simply struggling to see how it works. At present I have not found an article where the Abuse cases template is anything except fully collapsed. Fiddle Faddle (talk) 15:47, 6 April 2010 (UTC)
Is the answer staring me in the face? I have to SPECIFY the selected parameter when I place the template! Its that simple, isn;t it? There is no automatic stuff at all, is there? Fiddle Faddle (talk) 16:12, 6 April 2010 (UTC)
No, it's not automatic. Whoever uses your navbox can specify the group they want to be visible, but only from the ones that have abbreviations. —Codrdan (talk) 16:47, 6 April 2010 (UTC)

Classes[edit]

Resolved

Please can somebody with the requisite skills mirror the code from {{Navbox}}, for |bodyclass=, and |titleclass=? Here's the documentation. Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 11:33, 1 May 2010 (UTC)

Should be all done now. --CapitalR (talk) 22:48, 1 May 2010 (UTC)
That's great; thank you. Andy Mabbett (User:Pigsonthewing); Andy's talk; Andy's edits 23:04, 1 May 2010 (UTC)

Show all?[edit]

Hello. How do you set this template to show all its groups, not just one via "selected"? Thanks. 212.84.121.75 (talk) 06:21, 20 May 2010 (UTC)

Right now you need to add "|state = uncollapsed" to the template, and then add "|state1 = uncollapsed", "|state2 = uncollapsed", and so on for each group. This will force each one to be uncollapsed. There's currently no way to use one parameter to force them all to be uncollapsed. --CapitalR (talk) 18:25, 20 May 2010 (UTC)

Okay, thanks! 212.84.121.75 (talk) 22:08, 20 May 2010 (UTC)

groups 10 and 11 seem wrong[edit]

Can someone check the {{{list1style|}}} elements of Groups 10 and 11 surely these should be {{{list10style|}}} and {{{list11style|}}}

Regards :: Kevinalewis : (Talk Page)/(Desk) 18:21, 24 November 2010 (UTC)

Indeed, smaal oversight. Should be fixed now. EdokterTalk 21:13, 24 November 2010 (UTC)

Request[edit]

{{edit protected}} The request is to replace the template's code with the version currently in the sandbox (http://en.wikipedia.org/w/index.php?title=Template:Navbox_with_collapsible_groups/sandbox&oldid=402683010). I will update the documentation page accordingly.

The amended code completes the "section" ("sect") approach to the template by adding the parameters sectionN, sectNtitlestyle, contentN, contentstyle and contentNstyle. They are all optional, i.e. transparent if not used.

213.246.83.86 (talk) 12:38, 16 December 2010 (UTC)

I'm not sure I understand the benefits of this, but as no one has commented I have actioned the request. — Martin (MSGJ · talk) 21:31, 21 December 2010 (UTC)

Extend[edit]

Could this get extended past 11? 117Avenue (talk) 03:57, 11 September 2011 (UTC)

Please extend this to 20, like Template:Navbox, by syncing with the sandbox. Thanks, 117Avenue (talk) 02:25, 19 September 2011 (UTC)

Yes check.svg Done — Martin (MSGJ · talk) 16:10, 23 September 2011 (UTC)

Autocollapse?[edit]

This template claims that it is autocollapse by default, but it is not. This template uses navboxes to create the collapsible groups, and the wiki detects these as other navboxes on the page, and collapses the whole navbox on any page. Is there any way to rectify this? 117Avenue (talk) 04:09, 25 October 2011 (UTC)

Since I don't think anything can be done about this on Wikipedia, I am removing reference to autocollapse on the documentation. 117Avenue (talk) 04:55, 7 December 2011 (UTC)
Good call. It looks like autocollapse can't work with this template; the only way to make it start in the uncollapsed state is to set it to be uncollapsed manually. --CapitalR (talk) 06:44, 7 December 2011 (UTC)

How get footer to collapse in article by default?[edit]

Hi. In article Foley Square trial I have a footer navbox: Template:US1stAmendment. The default layout of that navobx is expanded (showing five sub groups .. each of those is collapsed) which is a bit large for my taste. My goal is to have it appear as a single line (just the topmost "1st amendment" line). I tried setting "state=collapsed" but that makes no change. Any suggestions? --Noleander (talk) 02:52, 26 January 2012 (UTC)

Possible to expand more than one group?[edit]

For example, with Template:Sixth Amendment, Reynolds v. United States interpreted both the jury clause and confrontation clause. Savidan 06:31, 15 February 2012 (UTC)

Support for left-aligned group labels[edit]

please update the template to use this version of the sandbox. this adds support for left-aligned group labels. in the current code, if you try to left-align the group labels, you get

the new code adds a |groupnavbar= parameter, which can be set to off to remove the left-padding on the group labels

this will allow for a simplification of Template:Portuguese overseas empire. thank you. Frietjes (talk) 18:46, 6 February 2013 (UTC)
Yes check.svg Done. I added navbar1 - navbar20 parameters as well, ohterwise, one would not be able to override individual groups as it is with all other parameters. Edokter (talk) — 19:22, 6 February 2013 (UTC)
thanks, but shouldn't the nesting be flipped? I would be more likely to set a default with the general one, then override it with the specific, just like we do with the other style parameters. Frietjes (talk) 19:25, 6 February 2013 (UTC)
You're right... that was my intention. Corrected. Edokter (talk) — 20:04, 6 February 2013 (UTC)

Javascript question[edit]

Please forgive me if this is a dumb question, so bear with me. When I connect with a dial-up connection, I frequently turn off javascript on Firefox to increase page-load time. When I do this, some functions of Wikipedia are disabled. One of those functions is the show/hide function. On navbox templates, all templates display uncollapsed and the "hide" function is not offered -- this makes all navboxes load in the expanded state and can completely overrun a small article. About a year ago I saw an editor removing many navboxes with an edit summary saying they were much to big for such small articles; I have come to the conclusion that maybe they did not have javascript enabled. Here is my question: Is it possible to have some code recognize that a user's javascript is disabled and, if so, in really tiny letters above the navbox appears the text "javascipt is required for the this template to render properly"? Actually, I guess my question is if there is a consensus add such code. I hope this isn't a dumb question, and I would appreciate feedback. Rgrds. (Dynamic IP, will change when I log off.) --64.85.214.177 (talk) 13:17, 12 May 2013 (UTC)

Template-protected edit request on 7 June 2014[edit]

In the media section, Movies, link to film Selma, a recent page. Thanks. I was one of the editors who made quite a few edits to the King template.

Randy Kryn (talk) 02:35, 7 June 2014 (UTC)

Red question icon with gradient background.svg Not done: it's not clear what changes you want to be made. Please mention the specific changes in a "change X to Y" format. — {{U|Technical 13}} (etc) 02:45, 7 June 2014 (UTC)

Template-protected edit request on 7 June 2014[edit]

On the Martin Luther King template, under "Media" "Films and Television", please add The Meeting. Thanks. Randy Kryn (talk) 11:26, 7 June 2014 (UTC)

@Randy Kryn: Red information icon with gradient background.svg Not done: this is the talk page for discussing improvements to the template {{Navbox with collapsible groups}}. Please make your request at the talk page for the article concerned. This is probably Template talk:Martin Luther King. --Redrose64 (talk) 12:07, 7 June 2014 (UTC)
Ok, it's left on the King template talk page. Now what? This seems like an easy and relevant addition to make. Why not just pop it in as it won't be a controversial addition. It's probably a thankless job, so, thanks! Randy Kryn 12:23 7 June 2014 (UTC)
@Randy Kryn: I've replied at Template talk:Martin Luther King#Addition to template of The Meeting. --Redrose64 (talk) 12:41, 7 June 2014 (UTC)

Template-protected edit request on 7 June 2014 add Eurasian Economic Union to Eurasian section[edit]

Add Eurasian Economic Union to Eurasia section. Whizz40 (talk) 13:47, 7 June 2014 (UTC)

There seems to be a bug which is leading here when editing templates, examples are Editing Template:International power, and Martin Luther King above.

There change to the international power template has been made.

Whizz40 (talk) 13:57, 7 June 2014 (UTC)

I'm pretty sure it was this edit by Jackmcbarn (talk · contribs), which added v-t-e links pointing to this talk page (and its template) to all the transcluding pages. I've reverted it, but it will take thousands of WP:NULLEDITs to mend all the misleading links. --Redrose64 (talk) 14:04, 7 June 2014 (UTC)
@Redrose64: Sorry about that. I've fixed the problem that caused it. By the way, null edits won't be needed for this, since the problem doesn't affect any of the links tables. They'll all re-render without the bad navbars shortly on their own. Jackmcbarn (talk) 15:31, 7 June 2014 (UTC)