Extension:HideEmptySections

This extension hides any section that does not have any text associated with it. It also removes any extra line spaces that may be present in the source of the page.

The 'hiding' takes place at view time only and the actual source of the page is not affected.

It is very useful if you have a definite structure that all the users of the wiki will fill out. Keeping the section headers in place helps others to add more information while not compromising the template structure.

For example:

Overview
Blah Blah Blah

Heading Two
gah gah gah

Sub head five
Some random info here...

Heading Four
Enough info

will be rendered as:

Overview
Blah Blah Blah

Heading Two
gah gah gah

Sub head five
Some random info here...

Heading Four
Enough info

Download instructions
Please copy and paste the code found below and place it in. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Installation
To install this extension, add the following to LocalSettings.php: