Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

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
add comment

2 Answers 2

up vote 3 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>
</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
add comment

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
add comment

Your Answer

 
discard

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.