[Resolved]Getting Collapse to work

Fragment of a discussion from Project:Support desk
Jump to: navigation, search

Wikiversity uses a custom set up for their scripts. That issue is not related, and should not be used as example for your wiki.

  • Go to Manual:Collapsible_tables
  • Open a new tab, go to MediaWiki.js (on your wiki), click Edit, remove everything, go to the first tab and copy the code under Common.js, then go back to your second tab and paste it.
  • Do the same for MediaWiki:Common.css (empty the contents of your wiki's page, and copy+paste from Manual:Collapsible_tables to your wiki.
Krinkle22:48, 8 August 2011

Thank you for your time, this has been a frustrating issue to get answers for. I have to admit though your phrase "remove everything" scares me a bit, did you mean remove everything pertaining to collapse ? I will try your fix (there's always undo :P). Sorry just had to spit that before going on. I'll cross my fingers :). Again thanx for your time and help.

Very good :). It works. Well it does in my user monobook .js and .css. not in common.js or site wide. I'm sure it will if I clear out (as you said) everything but, there's other stuff there I need and pick through it..... IDK But thank you very much I have a good start. Your the first person to give workable advise in this "collapsing" journey :)
Mlpearc powwow02:04, 9 August 2011
 

I see a bunch of other problems caused by the copy and paste you did to your Common.js, various failures because you're copying things that either depend on other things, things you most likely don't want or needed but copied en-mass, and things that don't work outside Wikipedia/Wikiversity.

If you read this between 1 and 10 hours, I'll probably be online on IRC (What IRC?). If I don't respond right away, just leave the chat open in a tab, I'll probably be away-from-keyboard and come back in 30 minutes or so. On IRC it's much easier to trial-and-error.

If you're familiar with IRC and have an "IRC client" installed, go to irc://irc.freenode.net/mediawiki, or use the online web-browser client here (Enter your username, crack the captcha and Connect).

Seeya there

Krinkle12:57, 9 August 2011
 
Personal tools

Variants
Actions
Navigation
Support
Download
Development
Communication
Toolbox