Extension:SkinPerNamespace
From MediaWiki.org
|
Release status: beta |
|||
|---|---|---|---|
| Implementation | User interface | ||
| Description | allows a per-namespace skin | ||
| Author(s) | IAlexTalk | ||
| Last Version | 2009-04-25 | ||
| MediaWiki | 1.13.0 | ||
| License | GPLv2 or higher | ||
| Download | Download snapshot |
||
|
|||
|
|||
|
check usage (experimental) |
|||
This extension allow to specify a per-namespace skin that can be configured in $wgSkinPerNamespace, but this will also override users preferences, to avoid this you can set $wgSkinPerNamespaceOverrideLoggedIn to false.
[edit] Installation
- Download the latest snapshot from Special:ExtensionDistributor/SkinPerNamespace.
- Extract it and put the
SkinPerNamespacedirectory in theextensionsdirectory of your MediaWiki installation. - Edit
LocalSettings.phpand add the following line:require_once( "$IP/extensions/SkinPerNamespace/SkinPerNamespace.php" );
[edit] Configuration
You can configure this extension with to variables :
$wgSkinPerNamespace: array mapping namespaces index (i.e. namespaces numbers and not names) to a skin name. Use all lower case name for skin, like monobook, modern, ... otherwise it simply won't work. Example:
$wgSkinPerNamespace[NS_TALK] = "modern"; $wgSkinPerNamespace[NS_PROJECT] = "cologneblue";
- Note: you can find the constants in
includes/Defines.php.
$wgSkinPerSpecialPage: skins for special pages, mapping canonical name (seeSpecialPage::$mListin SpecialPage.php) to skin. This overrides$wgSkinPerNamespace[NS_SPECIAL]. Example:
$wgSkinPerSpecialPage['Search'] = "modern"; $wgSkinPerSpecialPage['Recentchanges'] = "chick";
$wgSkinPerNamespaceOverrideLoggedIn, if set totrue(default value), it will also override the the skin for logged in users, to avoid this you can set it to false and$wgSkinPerNamespacewill only apply to anonymous users.
[edit] See also
- $wgDefaultSkin: default skin to use