User:Rhododendrites/drsort

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Deletion sorting script

[edit]

Background

[edit]

Deletion sorting categories are useful to organize past deletion discussions. When you want to see, for example, what the precedents are for keeping or deleting AI-generated images, there's a category which places deletion requests into subcategories based on outcome. Unfortunately, these categories must be added and updated manually. The purpose of this script is to simplify the process somewhat.

Installation

[edit]

To use this script, open your common.js and add this line:

importScript('User:Rhododendrites/drsort.js')

Usage

[edit]

The script creates drop-down bars at the top of deletion request pages. One drop-down is for categories that sort DRs by subject, one sorts by country, one sorts by source (like Unsplash or 500px), and one sorts by property (intellectual property/brands). Finally, there is a drop-down for status: pending, kept, deleted, or undeleted.

Select an option under one of the drop-downs, an associated status, and then "apply". If you do this from editing mode, it will immediately append the category to the bottom. If you do this from the page without going into editing mode, it will open the edit window and add the category to the bottom. To add multiple categories, repeat the process.

Selecting a status without using the other drop-down menus will set the status for all deletion sorting categories to that status.