Manual:Skins

Some notes about MediaWiki Skins

User CSS
A feature allows users can specify CSS rules by creating a page "User:Username/skinname.css". Enable this with $wgAllowUserCss in LocalSettings.php

Suppress various skins
(for MediaWiki 1.6.7)

The administrator can limit the skin choices that are offered sitewide in User Preferences by listing skin(s) to suppress in the $wgSkipSkins array. To do it, put something like this in LocalSettings.php: $wgSkipSkins = array("chick", "cologneblue", "myskin", "nostalgia", "simple", "standard"); "standard" is the skin called Classic. Omit skins from above line that you want to remain as choices.
 * 1) To remove various skins from the User Preferences choices

Remove Skin tab from User Preferences
(for MediaWiki 1.6.7)

The system administrator can completely remove the Skin tab/link so that it does not show up at all in User Preferences. This makes sense if your site will use a customized skin and would not look right in any other skin.

To remove the Skin link/tab from User Preferences, go in includes\SpecialPreferences.php and comment out (put another # at the beginning of each line) these lines:

# Skin #               $wgOut->addHTML( " \n \n" . wfMsg('skin') . " \n" ); $mptitle = Title::newMainPage; $previewtext = wfMsg('skinpreview'); # Only show members of $wgValidSkinNames rather than # $skinNames (skins is all skin names from Language.php) foreach ($wgValidSkinNames as $skinkey => $skinname ) { if ( in_array( $skinkey, $wgSkipSkins ) ) { continue; }                       $checked = $skinkey == $this->mSkin ? ' checked="checked"' : ''; $sn = isset( $skinNames[$skinkey] ) ? $skinNames[$skinkey] : $skinname; $mplink = htmlspecialchars($mptitle->getLocalURL("useskin=$skinkey")); $previewlink = "$previewtext"; if( $skinkey == $wgDefaultSkin ) $sn .= ' (' . wfMsg( 'default' ) . ')'; $wgOut->addHTML( " {$sn} $previewlink \n" ); }               $wgOut->addHTML( " \n\n" );