OpenWetWare:Software/Extensions/HeaderFooter

=HeaderFooter Extension=

Origin
See http://www.mediawiki.org/wiki/Extension:Header_Footer for original extension.

This also uses a second extension, ArticleCacheClass, by the same author.

This extension currently (11-27-2007) is being used to display a message regarding surveys. The previous extension used for this, SpecialHeader, was not reliable.

Namespace Headers
To modify the contents of the displayed header, do it here:

Template:SurveyHeader

Namespaces Using This Extension
This template is used by 2 other pages:

For the main namespace: header For the project (OpenWetWare) namespace: OpenWetWare:Header

LocalSettings.php
The following code needs to be added to enable the notice for a namespace AFTER the include of the extension files:

$hfObj->setNsParams(, array('enable'=>true)); // enable header for a specific namespace

Current Namspaces used:

$hfObj->setNsParams(NS_MAIN, array('enable'=>true)); // enable for the main namespace $hfObj->setNsParams(NS_PROJECT, array('enable'=>true)); // enable for the project (OpenWetWare) namespace

Namespaces
Defined namespaces to use:

Problems

 * You must bracket all headers with the tags.
 * This will keep the headers from being generated on dewikified pages for individual labs.
 * The tags may not be used in templates.
 * They should be on the headers themselves.
 * Still not clear why.
 * There should be at least one blank line after the tag in the header.
 * If this is not present, the first line of the page upon which the header is displayed will NOT be interpreted as wiki text.
 * All Header tags should be protected.