Personal tools

Setting up a new skin in mediawiki

From OrganicDesign Wiki

Jump to: navigation, search

A Mediawiki skin consists mainly of one file named by the skin name. For example our skin is called BlueSky.

  • Copy Monobook.php and rename it BlueSky.php
  • Create a directory in the skins directory called bluesky (note case)
  • Load up the new BlueSky.php into an editor and do these global replacements (s/foo/bar/g means replace all occurances of foo with bar)
  • s/SkinMonoBook/SkinBlueSky/g
  • s/MonoBookTemplate/BlueSkyTemplate/g
  • On lines 27-28 change
$this->skinname  = 'monobook';
$this->stylename = 'monobook';
$this->template  = 'MonoBookTemplate';

to

$this->skinname  = 'bluesky';
$this->stylename = 'bluesky';
$this->template  = 'BlueSkyTemplate';

The GNU Project Debian Linux Ubuntu Linux Wikipedia online encycopedia MediaWiki