Web Hosting Line
1.800.828.9231
MediaWiki Hosting
MediaWiki Tutorial
MediaWiki FAQ
About MediaWiki
Host Package
Free Domain name
750 GB space
7500 GB Traffic/mo
99.9% Server Uptime
24/7 Top Customer Care
FREE Wiki Installation
Immediate activation
The Best Host Package
learn more sign up now
Mediawiki Resources:
Share a Wiki
Display entire tutorial on one page. Print-friendly version.

Mediawiki Skins

How to change Skins/Templates

You can change the Logo of your wiki by altering the $wgLogo variable in /includes/DefaultSettings.php to the name of the image you want to use as a logo.

Important Please note that this logo should be placed in the /skins/common/images/ folder.

Create MediaWiki Skin

You can create a skin all by yourself by following the steps provided below:

  • Go to the /skins folder within your Mediawiki directory;
  • Copy the /monobook directory and rename it with the name of your skin, for example:

    mywikiskin;

  • Copy the MonoBook.php file and rename it with the name of your skin, for example:

    MyWikiSkin.php;

  • Edit MyWikiSkin.php and change the class name to SkinMyWikiSkin, for example:

    class SkinMyWikiSkin extends SkinTemplate;

  • In MyWikiSkin.php, change make the other class to have your skin name together with the word Template, for example:

    class MyWikiSkinTemplate extends QuickTemplate;

  • In MyWikiSkin.php, make $this->skinname to have a string value of your skin name, for example:

    'mywikiskin';

  • In MyWikiSkin.php, make $this->template to have a string value of your skin name properly capitalised with the word Template, for example:

    'MyWikiSkinTemplate';

  • In your /mywikiskin directory edit the image and CSS files;
  • Edit and customise MyWikiSkin.php as you please;
  • In LocalSettings.php set

    $wgDefaultSkin = 'mywikiskin'

You can now enjoy the new skin you have prepared!



MediaWiki Hosting
(c) Copyright 2005 SiteGround Wiki Hosting Services. All rights reserved.