Manual:Skinning/Archive

This page contains instructions on how to create a skin for MediaWiki.

File Locations
All skin files are located in the  subfolder of the MediaWiki installation directory.

There are two files for each skin in that folder:
 * : The main file, defining the page layout.
 * : a workaround for a bug in the APC opcode cache on PHP 5

For all other files, a subfolder with the skin's name should be created - for example:
 * : The FooBar skin's main style sheet
 * : browser-specific style sheet fixes

An Annotated Example
The following code is an annotated version of MediaWiki's default MonoBook skin.

The various page elements (e.g. sidebar navigation, page tools etc.) have been extracted and commented accordingly.