How to chage Skins/Templates
You can create a skin all by yourself by following the steps provided below:
-
Go to your mediawiki directory;
- Copy the monobook directory and name it with the name of your skin, e.g: mygepskin;
- Copy the MonoBook.php file and name it with the name of your skin, e.g: MyGepSkin.php;
- Edit MyGepSkin.php and change the class name to SkinMyGepSkin, e.g: class SkinMyGepSkin extends SkinTemplate;
- In MyGepSkin.php, change make the other class to have your skin name together with the word Template, e.g: class MyGepSkinTemplate extends QuickTemplate;
- In MyGepSkin.php, make $this->skinname to have a string value of your skin name, e.g: ‘mygepskin’;
- In MyGepSkin.php, make $this->stylename to have a string value of your skin name, e.g: ‘mygepskin’;
- In MyGepSkin.php, make $this->template to have a string value of your skin name properly capitalised with the word Template, e.g: ‘MyGepSkinTemplate’;
- In your mygepskin directory edit the image and CSS files;
- Edit and customise MyGepSkin.php as you please;
- In LocalSettings.php set $wgDefaultSkin = ‘mygepskin’.
ref:http://www.ehartwell.com/TechNotes/FrontPageWithMediaWiki.htm
