Manual:Collapsible elements

How to make collapsible frames (also known as NavFrames) as seen on Wikipedia (W:Wikipedia:NavFrame). This page is copied from Wikipedia.

Setup
Copy and paste the following text into your own wiki's MediaWiki:Common.js and MediaWiki:Common.css:

Markup
The following markup in pages now makes collapsible sections:

To initially hide the content do this: