Forum:Help with Template Navbox subgroup and collapsing

I'm trying to implement the Navbox template for a few days now, I didn't actually try hard for the first few days, but I did today and I'm still missing something 'cause it didn't work. I know the collapsing feauture is working since I can do it using NavFrame and the Hidden template, but even for those I can't set the "collapsible" or "collapsed" for its classes properly. I've tried outercollapsing and innercollapsing too. Just to make sure I wasn't missing any coding I copied some examples of Wikipedia and even so it won't work. What I wanted is to set 4 collapsed Navbox or NavFrame inside one collapsible, but obviously as you can notice I couldn't make it work, all of them will be collapsed no matter how I set them (using collapsible, outercollapsing for the main one etc). Aside from the NavFrame issue, which is only a work around for the Navbox that is not working at all, I really wanted to know which of the templates of http://en.wikipedia.org/w/index.php?title=Template:Navbox_with_collapsible_groups&action=edit I need to import to my Wikia to make the Navbox with collapsible groups work without unneeded templates, I don't want to import all of those warning templates if I don't need to. I already tried some pages as http://help.wikia.com/wiki/Help:Dynamic_navigation and set the Common.js, as stated previously the show/hide setting works only when it's supposed to show, but when it's supposed to be hidden it doesn't, the http://joeyaa08.blogspot.com/2010/02/collapsible-templates.html (apparently I couldn't figure out how to import the show/hide.js neither copy the source code) and I couldn't follow the original one http://dev.wikia.com/wiki/ShowHide either, maybe they're only outdated or I'm just stupid. Hahaha

I would appreciate if someone could help me. You can see what I'm facing here: http://pt-br.aika.wikia.com/wiki/Usu%C3%A1rio:Terra.Aika and here http://pt-br.aika.wikia.com/wiki/Predefini%C3%A7%C3%A3o:Navbox_with_collapsible_groups (Could someone tell me why I can't import the Template:T1 from Wikipedia? and I have the Navbox suite imported but this page says I don't have it hahaha)

Thank you in advance. Terra.Aika 09:12, August 31, 2010 (UTC)


 * Template T1 does not exist it is a redirect to Template:Tl Were l is a lowercase L But looks like a '|' in the title of the wikipedia page. To reduce the number needed you need to edit some of the documentation and or/the template code to stop it calling them. But be carefull of placing around items within templates as it can cause problems. You have a stck of interwikis left in the Doc page Categories section, all of the form 'en:Navbox' were the 2 letters are the language code and the text after is the title of the template on that languages wiki. - Back links to wikipedia policy/project pages need an extra 'wikipedia' adding in front to link to the correct 'policy' page otherwise they point to the 'article space' were they do not exist.


 * Depending what template (s) you have already on your wiki you need probably 1/2 dozen to make it work at least (or 30 + if some very common shared ones are missing) but the Doc pages use many more in examples confusing the issue. See several other posts on here about navboxes for alternatives. Also if some templates are older they may not be compatible/equivelent to the Current wikipedia versions. Removing the references to call Pp-template and its related templates cuts the number down (there is wikia version available that is simpler but it is not needed really at all) also the mesagebox templates from wikipedia are very complex and there is a simpler version on the template.wikia. Also use wikias Documentation template version but note some of the documentation may need updating as some features are different.


 * Note these are general comments as i have not looked through your version in depth yet, but other Users on here may be able to give you more specific guidance on getting the collapse function to work with the JS code, as there is a Wikia specific version, were as i used the wikipedia one originally when i copied the Navbox suite & stakes of other templates from wikipedia. - BulldozerD11 16:56, August 31, 2010 (UTC)


 * I've placed 2 copies of Navbox on your test page inside the nave frame code, but not sure that is working as you whant as it is collapsed by default.


 * your navbox example with subgroup looks like it is not working as the version of navbox you have is the Default wikia version with one line only and it does not have all the code to interact with the wikipedia one (as a quick guess from what i can see). I'll look into it more later, as i need to understand the non english namespace titles to find the pages. - BulldozerD11 16:56, August 31, 2010 (UTC)


 * On looking further You had all the main 'Navbox suite'' templates but only wikia's simple 'navbox' which has non of the code needed to interact with the other 'navbox suite' templates which are sub templates of it so I have replaced it. Added the missing T1 and Tl plus Transclude and Navbar to complete the main ones. You may want to add Wikia version of Mbox or redo the docsubpage message (at top of copied wikipedias doc pages) to use Ambox instead or just remove it. If you add the missing template {Navigational templates} (used on several of the doc pages to add a summary table of functionality of the different templates) you will need to add {yes} and {no} and some others as well. Same with other doc pages if added they will call more templates, so i just put links to wikipedias doc pages. See if it works now for you as the test page will have changed with the updated version of Navbox. - BulldozerD11 22:04, August 31, 2010 (UTC)