Open main menu

This is the current version of Extension:Header.

CodeEdit

Header.php
<?php
if ( !isset( $wgHeader ) ) # If $wgHeader is not defined,
{
$wgHeader='Error, please define $wgHeader before including Header.php'; #Return an error message as $wgHeader
}
echo '<!DOCTYPE html>'.$wgHeader; #Define $wgheader as html and put it at the top of the page.

$wgExtensionCredits['validextensionclass'][] = array(
       'path' => __FILE__,
       'name' => 'Header',
       'author' =>'iggyvolz', 
       'url' => 'https://www.mediawiki.org/wiki/Extension:Header', 
       'description' => 'Creates an HTML header on all Mediawiki pages.',
       'version'  => 1.0,
       );

ReadmeEdit

Installation instructions are avaliable on the main page.

ChangelogEdit

Initial version. Should be compatible with all versions of Mediawiki.