Admin Forum:Global.js or Common.js or Wikia.js ???

Depending on which parts of the help you read, you get the advice to edit either global.js, common.js or wikia.js to create site-wide changes for all users. Which one is it? Or are all of them used? If so, is there a load order?

And as a follow-up question: Which stylesheet creates site-wide changes for all users?

Pecoes 00:49, February 13, 2012 (UTC)


 * Global js is your own personal js file that you can make here on community central. It is js that will be loaded on every wiki you go to but only affects you. Special:MyPage/wikia.js is js that only effects you while using the wikia skin but on one wiki only. MediaWiki:Wikia.js is js that loads for all users on a wiki that use the Wikia skin. MediaWiki:Common.js loads for all users on a wiki regardless of what skin they use.--
 * Here's your handy guide:
 * MediaWiki:Monobook.js is for javascript that will load for all users on your wiki that use the monobook skin
 * MediaWiki:Common.js is for javascript that will load on either skin
 * MediaWiki:Wikia.js will load for all users using the default (Wikia) skin
 * User:Pecoes/wikia.js (or Monobook, common) will load only for you
 * On Central only, you can create User:Pecoes/global.js - which will load on all sites across Wikia, but only for you.
 * The same is true for .css, with the exception of Common.css, which only works in the monobook skin, you should use wikia.css for most things, but if you're adding site-wide CSS for infoboxes or something similar, you might also want to put the rule in monobook.css as well, especially if you know that there are users that use monobook on your wiki.
 * Hope that helps. --  Random Time  00:59, February 13, 2012 (UTC)


 * Thank you very much! To both of you! May I suggest to add that information at help.wikia.com? As it is you don't find anything at all when you search for either "wikia.js" or "common.js".


 * Pecoes 01:10, February 13, 2012 (UTC)


 * Tagging FAQ. — Sovq 11:15, February 13, 2012 (UTC)


 * In some cases the code has to be placed specifically into either Common or Wikia.js, because otherwise it won't work regardless of skin. Strangely, it only affects some wikis, while others don't have this problem. -- 21:21, February 13, 2012 (UTC)


 * Often the problem with which .js page to put in has more to do with conflicting Javascript than specifically which page it needs to live in. In most cases, the guide above is very reliable, especially with newer wikis. -- Fandyllic (talk &middot; contr) 13 Feb 2012 1:25 PM Pacific

Adding info to Help wiki
Adding pages to Help wiki is unpredictable, since Wikia has never coordinated or given a policy for non-staff users to add shared help pages. Therefore, most experienced users tend not to contribute as Wikia has a tendency to revert or redirect help pages that someone may have spent a while and some work creating (which has happened to me a few times).

Theoretically, you can safely create a draft help page in the Draft: namespace and then request that Wikia staff move it to Help:, but it is pretty much a crap shoot.

Basically, I'm saying you should ask Wikia to add this info to help and not the community, because it might not "stick". -- Fandyllic (talk &middot; contr) 13 Feb 2012 1:25 PM Pacific