Forum:Importing Javascript

Hello,

Would anyone kindly explain or redirect me to a link on how to import scripts into a Wikia?

I'm trying to import using:

and I'm not very familiar with code. I'm not sure where to put that bit.
 * importScriptPage(, ' '); 

RobotofMadness (talk) 23:06, August 16, 2012 (UTC)


 * Add the javascript to MediaWiki:Common.js


 * Javascript is automatically imported into every page on the wiki from MediaWiki:Common.js, and only on the oasis skin from MediaWiki:Wikia.js. Every wiki has these pages, although you may need to create them on your wiki. -- Foodbandlt 00:39, August 17, 2012 (UTC)


 * I'm trying to get our wikia to host a chat logger, but it's not functioning properly. The Runescape wikia provided us code and we followed the instructions on how to put it on there, but the scripts will simply not run.


 * http://creepypasta.wikia.com/wiki/User:RobotofMadness/wikia.js


 * That's what I was told to do and it still wouldn't function even after clearing the cache.


 * That's really something that you should ask the creator of the script, that being Joeytje50. -- Foodbandlt 03:45, August 17, 2012 (UTC)