From Wikimedia Commons, the free media repository
(Redirected from Help:AjaxQuickDelete)
Jump to: navigation, search

Quick Delete: Adds useful links to tag files as missing source/license/permission or for deletion, and notify users accordingly (you can also define custom buttons). [talk] 

QuickDelete depends on AjaxQuickDelete which hosts the main code.

There are a few things you can configure in your personal /common.js (or /vector.js or /monobook.js).

AjaxQuickDelete and QuickDelete[edit]

To watch user talk pages, to which you add tags, add

window.AjaxDeleteWatchUserTalk = true;

To watch file pages, to which you add tags, add

window.AjaxDeleteWatchFile = true;

Some actions require communication with other wikis (e.g. notifying uploaders and replacing files). There are unfavorable fallbacks that can be used by default, if you do not want the script performing edits under your user accounts on different wikis.

window.aqdCORSOptOut = true;


You can also configure custom labels for your tool box (requires the QuickDelete gadget enabled) in the following way. For example, if you want to tag files as derivative-no source or {{duplicate}}s:

window.AjaxDeleteExtraButtons = [
                    'label': 'DW No Source',
                    'tag': '{'+'{subst:dw-nsd}}',
                    'img_summary': 'This is a [[COM:DW|derivative work]] and no source is provided.',
                    'talk_tag': '{'+'{subst:dw image source|1=%FILE%}}',
                    'talk_summary': 'Original source is missing for %FILE%',
                }, {
                    'label': 'Tag as dupe',
                    'tag': '{'+'{duplicate|1=%PARAMETER%}}',
                    'img_summary': 'Tagging as duplicate of  [[%PARAMETER%]]',
                    'prompt_text': 'Which is file is this a duplicate of?'