CustomButton adds a custom button to the page controls allowing users to have custom page controls. This works for links and JS operations and can be excluded from certain pages or even namespaces.


  • Doesn't require too much knowledge of JS
  • To find the namespace number without using JS, use the syntax {{NAMESPACENUMBER}} on a page in the wanted namespace
  • If you can't edit a page (such as special pages) you will have to open your browser's console and type in
    but replace NAMESPACE with your target namespace.



exclude = [
excludens = [
link = 'URL';
id = 'ID';
tooltip = 'HOVERTEXT';
target = 'TARGETMETHOD';
accesskey = 'ACCESSKEY';
wikitext = 'TEXT';
Using configuration options with FANDOM Open Source Library scripts
The instructions on this page describe how to use configuration options with a script. Here on the FANDOM Open Source Library, many scripts provide optional configuration settings as a mean to alter or enhance the default behavior of the script. When installing configuration options in your JavaScript file, please note that they need to go above the import statement in order to work — unless the directions say otherwise. In case MediaWiki:ImportJS is used to load the scripts, it will be executed last.
Configuration options load too late, don't work
Proper placement of configuration options
// 1. AjaxRC import statement
// 2. AjaxRC configuration option
var ajaxRefresh = 30000;
// 1. AjaxRC configuration option
var ajaxRefresh = 30000;
// 2. AjaxRC import statement