How to Create a MediaWiki Skin Based on the MonoBook Skin
Create a new directory named monobookmodified in the skins directory which is in the root directory of your MediaWiki installation., Copy all files in skins/monobook into the skins/monobookmodified directory. ,Create a new text file in the skins...
Step-by-Step Guide
-
Step 1: Create a new directory named monobookmodified in the skins directory which is in the root directory of your MediaWiki installation.
It is important to create the directory with all-small-letters and not use capital letters in the name of the directory even if your skin's name does have them. -
Step 2: Copy all files in skins/monobook into the skins/monobookmodified directory.
,,,,, Change something simple in the style-sheet (the easiest is to replace the color of headers by changing the h1, h2, h3, h4, h5, h6 item color from "black" to say "blue") , Change the skin to the new skin and reload your page.
Headers should now display in blue (or any color you choose earlier) , This skin was modified from the original MonoBook skin in background color and by adding a second toolbar at the bottom of each article. -
Step 3: Create a new text file in the skins directory and name it MonoBookModified.php
-
Step 4: Copy all the contents of MonoBook.php into the MonoBookModified.php file.
-
Step 5: Open the MonoBookModified.php file in a text/php editor such as Notepad
-
Step 6: Notepad++
-
Step 7: Dreamweaver
-
Step 8: Kate or any other editor capable of searching and replacing text!
-
Step 9: Find and replace code in MonoBookModified.php as mentioned in the Code Replacement section of this article.
-
Step 10: Go to the skins/monobookmodified directory and open the file main.css in a text editor (or any program for editing style-sheets).
-
Step 11: Open the MediaWiki site you've been editing in a web browser and go to the preferences page.
-
Step 12: Start modifying the main.css file to change the styles of the new skin.
Detailed Guide
It is important to create the directory with all-small-letters and not use capital letters in the name of the directory even if your skin's name does have them.
,,,,, Change something simple in the style-sheet (the easiest is to replace the color of headers by changing the h1, h2, h3, h4, h5, h6 item color from "black" to say "blue") , Change the skin to the new skin and reload your page.
Headers should now display in blue (or any color you choose earlier) , This skin was modified from the original MonoBook skin in background color and by adding a second toolbar at the bottom of each article.
About the Author
Debra Ford
Experienced content creator specializing in cooking guides and tutorials.
Rate This Guide
How helpful was this guide? Click to rate: