Forum:Need a show/hide table

What is the simplest way to put this table into a show/hide box?:
 * http://cannabis.wikia.com/wiki/User:Timeshifter/Sandbox_12

I want the default to be a closed box with a caption line and a "show" link.

This table is in a template that is on around 600 pages. --Timeshifter 22:50, January 30, 2010 (UTC)
 * Read the documentation at w:c:dev:ShowHide. Add that import line mentioned into the wiki's MediaWiki:Common.js and then give the table a collapsible (and collapsed by default) class listed on the page. Be sure to assign a header to the table too, and all should be good. Joey (talk) 23:52, January 30, 2010 (UTC)


 * Thanks. I added this line:


 * to http://cannabis.wikia.com/wiki/MediaWiki:Common.js


 * Is that what I was supposed to do? What does it do? Does it pull up the code from this page?:
 * http://dev.wikia.com/wiki/ShowHide/code.js --Timeshifter 00:29, January 31, 2010 (UTC)
 * Yes. Joey (talk) 00:32, January 31, 2010 (UTC)

(unindent) OK. I copied the wikitext of
 * http://dev.wikia.com/wiki/ShowHide

and pasted it into here
 * http://cannabis.wikia.com/wiki/User:Timeshifter/Sandbox_13

The 2 pages do not look the same. Is there something missing still on my wiki? I am referring to the differences in this section: --Timeshifter 01:00, January 31, 2010 (UTC)
 * http://dev.wikia.com/wiki/ShowHide#Collapsible_table
 * http://cannabis.wikia.com/wiki/User:Timeshifter/Sandbox_13#Collapsible_table
 * Just some stuff from w:c:dev:MediaWiki:Common.css that you can use/modify, nothign important though imo. Joey (talk) 01:04, January 31, 2010 (UTC)


 * The class "wikitable" is not present by default on Wikia wikis.
 * That class give general styling to a table link on the dev wiki and you can put in the look you want to. — TulipVorlax 02:35, January 31, 2010 (UTC)
 * (I should refresh pages before i reply to them... — TulipVorlax 02:36, January 31, 2010 (UTC))

(unindent) What is producing the blue background at the top of the various tables in this section?:
 * http://dev.wikia.com/wiki/ShowHide#Collapsible_table

Is that part of all these classes?:
 * class="wikitable"
 * class="collapsible"
 * class="wikitable collapsible"
 * class="nocollapse"
 * class="toccolours collapsible"

Here is a table below using manual styling:

{| BGCOLOR="skyblue" style="border:1px solid red; padding: 4px;" |table|}

--Timeshifter 06:08, January 31, 2010 (UTC)