Forum:Tochidden help required

Hello!

I'd like a way to hide TOCs on specific pages on a Wiki I edit. I've found something here and there which seems to do what I need. I've tried a basic copy-paste on the wiki I edit, with no success. I'm a bit puzzled right now because I don't have a clue what's missing, and where it's missing.

If anyone could help point out what's to be done to make it work, I'd greatly appreciate it :)

Thanks! Hunter789 21:48, August 20, 2011 (UTC)


 * You'll be wanting the magic word. Just put it anywhere on the page. - Adan Aileron (talk) 00:16, August 21, 2011 (UTC)


 * is when you do not want the TOC displayed at all on your page. However, I want the TOC to be there, but I want it to be hidden when the user lands on the page (like here). Hunter789 00:23, August 21, 2011 (UTC)


 * Sorry, I guess I misunderstood. In that case, you'll need to add the show/hide code from here to your MediaWiki:Common.js and MediaWiki:Wikia.css. I apologize for the oversight and hope this is better for what you wanted. - Adan Aileron (talk) 00:37, August 21, 2011 (UTC)


 * Woa this looks good! No worries :) I'll give it a try! Thanks a lot! Hunter789 00:41, August 21, 2011 (UTC)


 * Ok, it works... When I'm not logged in :P Hunter789 03:15, August 21, 2011 (UTC)


 * Actually, I'm not sure how it works at all, since you haven't actually added the Javascript to your MediaWiki:Common.js. Anyway, I've also found this other forum thread which is also relevant to your problem. - Adan Aileron (talk) 16:09, August 22, 2011 (UTC)