Fandom Developers Wiki
Advertisement

CacheCheck crosses out resolved entries on the cached special pages (listed below) when you load those pages. This is intended to save time in cleanup because you won't have to check each listed page to make sure it still needs work. Note that the script can take several seconds to check over all of the things listed on the page, especially for large listings. The script will also cross off links to these pages from Special:SpecialPages if there is nothing listed on the linked page.

Installation

Configuration

Here's how default configuration code looks like:

window.topLevelCat = '';
window.cacheSkip = [];
window.cacheSkipLimit = 1000;
window.CacheCheckRemove = false;

You should insert that above the import statement you used in the JavaScript page you're running the script on.

cacheSkip is a list of the pages you do not want the script to run on. You can copy this list and remove the pages that you do want it to run on (be careful that there are quotes around each page and commas between them are intact):

window.cacheSkip = ['Specialpages', 'Deadendpages', 'Lonelypages',
    'Uncategorizedcategories', 'Uncategorizedpages', 'Uncategorizedimages', 'Uncategorizedtemplates',
    'Unusedcategories', 'Unusedimages', 'Unusedtemplates',
    'Wantedcategories', 'Wantedpages', 'Wantedfiles', 'Wantedtemplates'];

If cacheSkipLimit is lower than the number of results shown on a page, the script will not run on that page. (For example, if you are viewing Special:WantedPages?limit=500 and this value is set to 250, the script will not run.) You can also set this value to -1 to make the script not run on any pages.

topLevelCat should be used to specify the top level category on your wiki, which should not be categorized. If it is the only category listed in UncategorizedCategories, that link will be crossed off on SpecialPages.

Set window.CacheCheckRemove to true if you want the resolved entries to be removed instead of just crossed-out.

Using configuration options with Fandom Developers Wiki scripts

The instructions on this page describe how to use configuration options with a script. Here on the Fandom Developers Wiki, 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
// 1. AjaxRC import statement
importArticles({
    type: 'script',
    articles: [
        'u:dev:MediaWiki:AjaxRC.js'
    ]
});

// 2. AjaxRC configuration option
window.ajaxRefresh = 30000;
Proper placement of configuration options
// 1. AjaxRC configuration option
window.ajaxRefresh = 30000;

// 2. AjaxRC import statement
importArticles({
    type: 'script',
    articles: [
        'u:dev:MediaWiki:AjaxRC.js'
    ]
});

Notes

If you import ListFiles after this script has run on a gallery-type special page, resolved images will not be included in the raw text list.

Text above can be found here (edit)
Advertisement