Forum:How to use Expand Text feature?

Hi there,

I'd like to use the commonly known expand/hide text feature on the main page of the "markenboykott" wiki. The reason is, there is a lot of text with 6 headlines to explain the function and purpose of this wiki. A nice introduction, but for a main page it's too much.

Though instead of moving all the info to a subpage, I'd like to use the "expand text" function. When opening the page, people shall see just the headlines and all that's below the text area, index and news. Then, by clicking on the headline, each paragraph should expand.

Unfortunately I don't know very much about website programming. Can I use HTML to achieve this, do I need JavaScript and can I get this integrated into the main page???

Thanks for any advice. --w-sky 15:59, 28 April 2008 (UTC)
 * Sure, depending on how your common javascript is set up you can add the classes collapsible and collapsed to the wikitables you'd like to be collapsed on page view. That should achieve what you desire. If that doesn't work let me know and I'll be happy to help you get it working. -- JSharp (talk) 20:48, 1 May 2008 (UTC)
 * Thanks for the info. I tried so, as described at http://en.wikipedia.org/wiki/Wikipedia:Collapsible_tables, but it doesn't work, probably the common javascript is not set up. How do I do this? I guess it would look quite nice with tables as on the Wikipedia page, though my first idea was to keep the look as is. The Wiki concerned is http://markenboykott.wikia.com/ --w-sky 23:07, 26 May 2008 (UTC)
 * Hellooooo... I need a little bit of help with that. Now I have been looking everywhere in the Javascript Wiki, searched the whole of the Help Wiki, followed all the links for Tips and tricks, Extra features and Admin stuff, but I don't find any info about how to activate the usage of JavaScript functions. I copied examples from the page source of the Collapsible tables Wikipedia article, but they are ineffective. e.g. This works here, but not in my Wiki:

One-element example, initially collapsed:

One-element example, initially collapsed:

--w-sky 16:02, 28 May 2008 (UTC)