: Page-specific skins in MediaWiki? Is there a way to force a particular skin to be applied while displaying specific MediaWiki articles? In my wiki many articles will have a "flip" version with
Is there a way to force a particular skin to be applied while displaying specific MediaWiki articles?
In my wiki many articles will have a "flip" version with alternative content (think "good" and "evil" perspectives of the same topic). I was thinking about using namespaces to separate these versions, but I need a definitive way to visually contrast them.
More posts by @Fox8124981
3 Comments
Sorted by latest first Latest Oldest Best
There is a SkinPerPage extension that serves exactly this purpose: to force a particular skin on a given page.
In short:
(1) Download the extension, unpack files in /wiki-folder/extensions/
(2) Add wfLoadExtension( 'SkinPerPage' ); instruction to your LocalSettings.php
(3) Add <skin>skin-name</skin> tag to the page that you need to show a skin different from the default.
Sweet :)
Tested on the brand new MediaWiki 1.30.0 release.
Disable per-user skin settings with
$wgHiddenPrefs[] = 'skin';
then set $wgDefaultSkin dynamically.
I'm not certain but I believe that skin preference is the only way. If you know how cookies may be a good idea for page specific skins but it would require quite a bit of setup.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2025 All Rights reserved.