Extension:Header Footer

Note on Caching
Version 1.14 addresses the parser cache issue by temporarily disabling the cache during article update/creation. Once the page is first viewed, pages targetted by the HeaderFooter extension are properly stored in the parser cache (if applicable/enabled of course).

Example1
Let's say one wants to add a 'Header' to all pages (and sub-pages) of the 'Main' namespace: add the following in 'LocalSettings.php': and create the 'Header' page in the 'Main' namespace (the default namespace).

Example2
Let's say one wants to add a 'Header' and a 'Footer' to all pages (and sub-pages) of the 'Category:Protocols' namespace: add the following in 'LocalSettings.php': and create the 'Category:Protocols/Header' and 'Category:Protocols/Footer' pages.