This Forum has been archived

Visit the new Forums
Forums: Index Community Central Forum Creating link to change to Monobook skin, linking to Monobook skin
FANDOM's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.

50px-Replacement filing cabinet.svg

Note: This topic has been unedited for 3603 days. It is considered archived - the discussion is over. Do not add to unless it really needs a response.

I am trying to accomplish two things:

  1. Create a link which can be placed anywhere which, when clicked, will change the Wikia skin to Monobook for any registered user.
  2. Create a link added to Mediawiki:Sitenotice (or the Wikia skin equivalent) which allows any user to view the page they are on in monobook.

Create a link to change skin options

The radio button to change this option is now buried at preferences >>skins.

Here is the coding:

For Wikia skin:

<input type="radio" value="oasis" id="wpSkinoasis" name="wpSkin"/><label for="wpSkinoasis">New Wikia Look</label>

For Monobook skin:

<input type="radio" value="monobook" id="wpSkinmonobook" name="wpSkin" checked="checked"/><label for="wpSkinmonobook">MonoBook</label>

I need to add:

value="monobook" id="wpSkinmonobook" name="wpSkin"

to a URL.

I think it can be done, but I am not sure what part of Manual:Parameters to index.php I should use.


view any page in monobook

this coding:{{urlencode:{{FULLPAGENAME}}}}&useskin=monobook

Will change any page it is on into monobook. Try it:

1. What is the Wikia skin equivalent of MediaWiki:Sitenotice?

2. If I add the url to MediaWiki:Sitenotice any editor who clicks the link can see MediaWiki:Sitenotice as a monobook NOT the page that this sitenotice is on. What can I do? I am trying all of the Magic words now

Another option is a floating box, similar to this:

This box will stay attached to any corner a creator wishes.

Thank you in advance. Anno1404 13:46, November 5, 2010 (UTC)

Because regular Wiki navigation is cached in Oasis (it's not in Monobook, where it is simple to add a "see in Oasis" link to the sidebar), you'd need to code this in Javascript. The simplest way would be to add the javascript for the switch to one of the wiki pages, then a link there would change the user's preference. To change the preference for logged-out users means the Javascript should store that preference in a cookie, and rewrite links to include the useskin=monobook. For the "see this page in monobook" link, you need to figure out a place for it on the Oasis interface that doesn't violate the ToU (and preferably shows up even if not logged in, though if you added it to MYTools, you could presumably create soem tools for everyone if if they're not logged in), and then put up site javascript for it so it shows up on every page. So your first step now is enlist the cooperation of somebody who can code JavaScript. --◄mendel► 12:49, November 6, 2010 (UTC)
Community content is available under CC-BY-SA unless otherwise noted.