Extension:Header Footer

Purpose
Provides per-namespace and per-page header and footer inclusion.

Features

 * Speed: integrated with parser caching
 * Secure: header and footer articles are located in the NS_MEDIAWIKI namespace
 * Controllable: headers and/or footers can be disabled on pages which are edit protected
 * Customizable: headers and footers are wrapped in  elements

MediaWiki 1.18 - 1.20
Unknown at this time which version of HeaderFooter will work with these versions of MediaWiki.

MediaWiki 1.17 and Below
SVN

See SVN ($Id: HeaderFooter.doc.wikitext 1170 2008-05-27 12:38:24Z jeanlou.dupont $)

Installation
Download the files as described above, put them in your MediaWiki extensions folder, then include this line in your LocalSettings.php file:

Per-Namespace Header and Footer
Edit the pages: For the 'main' namespace, just use blank i.e. no string, but with the hyphen:

Per-Page Header and Footer
Edit the pages:

Disable commands
On edit protected pages, one can add
 * to suppress the page level header
 * to suppress the page level footer
 * to suppress the namespace level header
 * to suppress the namespace level footer

CSS

 * Page Level Header:
 * Namespace Level Header:
 * Page Level Footer:
 * Namespace Level Footer:

Examples

 * 1) Page MediaWiki:hf-nsheader-Extension would contain the wikitext to be included as header for all pages of the Extension namespace.
 * 2) Page MediaWiki:hf-footer-Extension:HeaderFooter would contain the wikitext to be included as footer for the page Extension:HeaderFooter.

Dependency
Versions for MediaWiki 1.17 and below are dependent upon the StubManager extension. That dependency has been removed for MediaWiki 1.21+.

Release History

 * 2.0.0: Complete redesign --Jean-Lou Dupont
 * 2.0.1: Fixed bug related to disable keywords (e.g. __NONSFOOTER__) --Jean-Lou Dupont
 * 2.0.2: Updated to work with MW 1.21 and removed StubManager dependency. Moved revision control from SVN to GitHub. --Jamesmontalvo3 (talk) 23:12, 26 June 2013 (UTC)

Sites Using Header Footer

 * Howiw
 * A+医学百科