Web Applications Stack Exchange is a question and answer site for power users of web applications. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In MediaWiki, if the Index at the top is large, it becomes show/hideable.

Is there a way to do this with other sections in MediaWiki?

I maintain technical documentation on an internal wiki, and I would like to be able to hide some documentation that 99% of users won't need:

Before installing Massive Application, install the JDK [show+]

Clicking on "Show+" would unroll a <pre> box with the instructions in.

Is this possible?

share|improve this question
up vote 5 down vote accepted

Since v1.18, out-of-the-box you can do the following (as described here):

<div class="mw-collapsible mw-collapsed">
This text is not collapsible; but the next is collapsible and
hidden by default:
<div class="mw-collapsible-content">{{Lorem}}</div>
share|improve this answer
Of course, the other answer I provided is applicable for wikis that are using versions before MediaWiki 1.18. – Hydra Feb 5 '13 at 10:55

This is possible, but requires some addition into the MediaWiki:Common.js file in your wiki. Such functionality is already live on the English Wikipedia.

Take a look at Wikipedia:NavFrame for documentation about the usage and to see how to implement it on another wiki (like yours).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.