Mobile app version of vmapp.org
Login or Join
Fox8124981

: 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

@Fox8124981

Posted in: #Css #Mediawiki #Wiki

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.

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Fox8124981

3 Comments

Sorted by latest first Latest Oldest Best

 

@Heady270

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.

10% popularity Vote Up Vote Down


 

@Reiling115

Disable per-user skin settings with

$wgHiddenPrefs[] = 'skin';


then set $wgDefaultSkin dynamically.

10% popularity Vote Up Vote Down


 

@Chiappetta492

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme