Forum:Collapse Tables

Hi, guys. I used Collapsible Tables on my Wiki quite a few years ago, but now I can't remember what the code is. I added a couple of things to the Common.js and Common.css, but my table isn't showing yet as collapsible.

Here is the URL where I am trying to implement the table. Feel free to make necessary changes to the .css and .js pages (1999 Busch North Series Central). Thanks! --DaNASCAT 00:08, 18 February 2009 (UTC)


 * I don't understand your problem.. I see you have the collapsible table code in the wiki's MediaWiki:Common.js. (copied from Wikipedia's?) If you want to make a table collapsible, add the class 'collapsible':

{| class="collapsible" ... Example: -- ko  (talk)  04:17, 18 February 2009 (UTC)


 * That code still does not work. I copied your table onto the site, and it still will not show the table as collapsible. Perhaps it is because I am missing the buttons I thought I added (the code to allow the table to have the show/hide switch), but I think those are in the right place at Common.css.


 * On a related note, does anyone know how Wikipedia programs their pages during their fund drivers to allow a collapsible table at the front of every table. Although I'm not doing a fund drive, I'd like to do a similar design for an extremely exciting site project being unveiled next week. --DaNASCAT 05:02, 18 February 2009 (UTC)


 * The funds rising message at wikipedia is normally in MediaWiki:Sitenotice and/or Mediawiki:anonnotice for anonymous users. But that message can be dismissed by users so to make sure they see it, each time you change it, increment MediaWiki:Sitenotice id.


 * The table on your wiki page is already collapsible : Screen capture. You have to make the browser do an hard refresh of the page if you want the last version of CSS and JS files to be on your computer. Use Shift+F5 or Ctrl+F5 (it depend on the browser). — TulipVorlax 08:29, 18 February 2009 (UTC)


 * Hey, Tulip. Thanks for the tech help! You're always great with the tech end of things. However, a hard refresh still did not update the collapsible for me. Which might raise the question now if this is a browser issue. I can get the collapse hide/show button in IE, but I can not get it in Firefox 3 or Google Chrome. --DaNASCAT 15:27, 18 February 2009 (UTC)


 * I think the some other parts of the JS are interfering with it. It works when the collapsible tables are alone in the js file -- Sixorish 17:52, 18 February 2009 (UTC)


 * There's some JS errors on the MediaWiki:Common.js file. Open the error console to see what happens (in Firefox: it's in the tools menu, or pressing CTRL+SHIFT+J). There's a JS error that stops its execution. --Ciencia Al Poder (talk) -WikiDex 19:30, 18 February 2009 (UTC)
 * Yeah, didn't see that since i dont systematically tests things in Firefox (it's all the contrary when working on my own websites (wich doesn't include wikis)). — TulipVorlax 19:42, 18 February 2009 (UTC)


 * The Firefox error seems to be this line of code

--DaNASCAT 20:23, 18 February 2009 (UTC)