Extension:HeadersFooters

What can this extension do?
Allows you to specify article headers and footers to be included on a global, namespace, category or page basis.

You can specify:
 * Global Header/Footer
 * Namespace Header/Footer
 * Category Header/Footer
 * Page Header/Footer

The current version does not allow Special: header/footer's or gendered namespaces. By default global is turned off.

Download instructions
You can download the extension from the author's website:
 * Extension website

SVN access has been requested, and all distribution will move to that medium and the link above will no longer be accesible.

You can consult the CHANGELOG for version history.

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

Configuration parameters
For your convenience, we also support Extension:Configure for settings these from within your wiki. See the talk page FAQ for further details.

Defining Headers/Footers
In future version a special page will facilitate the creation of headers and footers. However for now you will just need to create the pages by hand. All the header/footer definitions live in MediaWiki: namespace (or it's localized text for you). Please note that you can localize the extension using the HeadersFooters.i18n.php file. Future versions will come with default localizations.

Global
Only two pages can be set. MediaWiki:HeadersFooters/Global/Header MediaWiki:HeadersFooters/Global/Footer Please note global is disabled by default.

Namespace
For the main content name space NS_MAIN: MediaWiki:HeadersFooters/Ns//Header MediaWiki:HeadersFooters/Ns//Footer Please note the double // to indicate a blank namespace (or otherwise known as NS_MAIN).

Or for all user talk pages NS_USER_TALK: MediaWiki:HeadersFooters/Ns/User talk/Header MediaWiki:HeadersFooters/Ns/USer talk/Footer

Please note gendered namespaces are not currently supported. Namespace names are your localized namespace names.

Category
You can specify a header/footer that all pages that belong to a specific category inherit. MediaWiki:HeadersFooters/Cat/Cities/Header MediaWiki:HeadersFooters/Cat/Cities/Footer In this example, the Cities category has a header and footer for all it's member pages. Category Footers since they are cumulative are the most likely to introduce duplicates (a config option omits them).

Page
You can also specify a Header or Footer for a specific page. This is mostly so that you can make an uneditable section for a page. MediaWiki:HeadersFooters/Page/Ottawa/Header MediaWiki:HeadersFooters/Page/Ottawa/Footer The header and footer for the Ottawa page in NS_MAIN.

MediaWiki:HeadersFooters/Page/User:Finlay/Header MediaWiki:HeadersFooters/Page/User:Finlay/Footer The header and footer for the Finlay page in NS_USER. Please note that namespace names are localized and gendered.

Support
It's hoped that you will enjoy the extension, and if you do, consider purchasing it as a pay-what-you-want scheme on the author's website.

If you find a bug or wish to make a feature request, you can add to or start a topic on the talk page or contact the author.

Testing
It has been tested with:
 * MediaWiki svn: trunk 2011-09-27, 1.18alpha 2011-09-27, 1.17branch 2011-09-27
 * MediaWiki releases: 1.17.0, 1.16.0, 1.15.5