Forum:Easy switching between monobook, wikia and wikiamobile
If this thread's title doesn't specify it's spoilery, don't bring any up.
If you mostly use Monobook, it's very important that you check out how your edits look in Oasis. This is because Oasis is the way that the vast majority of users see the site.
When you're checking out the site anonymously — which most people do — then you have no choice in the matter. You will be using Oasis.
But it can be a pain changing between the two skins if you have to go through Special:Preferences. Fortunately you don't have to do that. Just follow these simple instructions, and you'll soon have a nifty little button that you can press to instantly look at the page in Oasis, without leaving Monobook.
- Click here.
- Edit the page (it may be a new page for you, in which case you'll need to create it, rather than edit it.)
- Cut and past the following text:
// Skin Switch Button for monobook to oasis and vice versa $( function () { if ( !document.getElementById( 'ca-skins' ) ) { if ( skin === 'oasis' || skin === 'wikia' ) { $( '<li id="ca-skins"><a href="/index.php?title=' + encodeURIComponent( wgPageName ) + '&useskin=monobook">MB</a></li>' ).appendTo( '#AccountNavigation' ); } else { $( '<li id="ca-skins"><a href="/index.php?title=' + encodeURIComponent( wgPageName ) + '&useskin=wikia">Oasis</a></li>' ).appendTo( '#p-cactions > .pBody > ul' ); } }
Save the page, and you're done!
If you're in Oasis, you'll now have a lovely little button labelled "MB" to the right of your name in the blue bar at the top of every page. Click that, and you'll instantly see the page in Monobook.
If you're in Monobook, you'll now have a tab that says "oasis". Click it, and you'll instantly see the page in the Oasis skin.
Cool, huh?
czechout<staff /> ☎ ✍ <span style="">22:50: Wed 11 Apr 2012
- Note that if you have a particularly long user name, this may "scrunch up" your top bar a bit. If so, let me know, and I can give you some alternate places to attach the button.