Fandom Developers Wiki
Register
Advertisement

FileUsageAuto-update helps to mitigate the time consumption of File namespace maintenance by updating file links automatically. This script adds buttons to Special:MovePage and adds a "Queue" option to the Edit drop-down on any File namespace page. You can rename and update files individually, or rename files in batches and update all of the file links at the same time (to group edits to the same pages together) using the queue. Additionally you can add broken file links to the queue to be updated. This script works best when used as a Gadget, but can be used in personal or wiki-wide JavaScript pages regardless.

Installation

Requirements

This is a maintenance script that involves renaming images and semi-automated editing. Do not use this script without first reviewing your wiki's policies regarding automated editing and obtaining necessary approvals and/or user rights.

Customization

At the moment you are able to add a message to appear on the file rename page and change the API request delay. All of these parameters are optional, but if specified must come before your importArticles call. Take note that some values specified must be enclosed inside of the quotation marks. Below are the default values and an example of how to use them. For API request delay, the lower the value the higher chance there is of getting API errors (ratelimits and others) when using this script. You're also able to override any messages the script uses via I18n-js built-in message overriding.

window.LIRoptions = {
    bottomMessage: '',
    delay: 1000
};

Gallery

Text above can be found here (edit)
Advertisement