One of the best places to have a look at for user scripts is the Wikia Developers Wiki where many helpful users have shared useful scripts they have created. I'm going to highlight a few of them here and let you know how you can install them for your own use.
A quick couple of terms you should know:
- Global.js – Located on Community Central, adding scripts in your own User:YourUsername/global.js will load on every wiki you visit across Wikia
- Wikia.js – Putting scripts in User:YourUsername/wikia.js on a wiki will load them just on that wiki, so you can put different scripts on different wikis to suit your needs.
- Common.js – Every wiki can have a Common.js, which will load for all users of that wiki.
importScriptPage( 'AjaxRC/code.js', 'dev' );
If you want to add more pages that you will get the checkbox on, use the following line after the import line adding the pages you want in quotes ('' or "") separated by a comma:
var ajaxPages = ["Special:RecentChanges","Special:Watchlist","Special:Log","Special:Contributions","Special:WikiActivity"];
You can also change the text that appears next to the checkbox (the default just says "AJAX") by adding this line:
var AjaxRCRefreshText = 'Auto-refresh';
The ability to purge a page and force it to update can be very useful when a page has gotten stuck and hasn't updated after you've uploaded a new version of a file or made another change. Usually the only way to do this is to add
importScriptPage( 'PurgeButton/code.js', 'dev' );
You can change the text of the "Refresh" link by adding the following line:
var PurgeButtonText = 'purge';
Creating areas that can be hidden is a nice way to add content that may not be the focus of the article, such as navigation templates. Many wikis use a script called ShowHide to accomplish this, including Community Central!
A secret message
A hidden message.
This is a good script to add for your whole wiki by adding it to your wiki's MediaWiki:Common.js:
importScriptPage( 'ShowHide/code.js', 'dev' );
Click here to follow this blog.
Interested in learning more about community management on FANDOM?
Click here to view our community management blog.