User:Qwerfjkl/scripts/massXFD
< Qwerfjkl's scripts | JS | Base template
The script currently only handles CfD and RfD.
CfD
The script adds a portlet link in the toolbar to Special:MassCFD. Upon going there, after a few seconds the script should load and the page should look like this:
There are two modes, new nomination and old nomination. New nomination is for creating completely new nominations, old nomination is for tagging categories in a pre-existing nomination.
For nominations where a target is needed, the target should be entered in the title list, separated by a pipe, |. Then in the category tagging input, these can be denoted with $1, $2 etc. If no target is given the $1 etc. will be removed.
The script can support multiple-action nominations, e.g. where some categories are being renamed and some are being merged. Click the additional action button near the button to add a new action.
- Example nomination
Let's suppose you want to propose deleting the tree Category:Foos by country. You would first change the mode to "New nomination", then set the nomination title to something like "Foos by century" (a descriptive but succinct title helps here). Then you'd fill out the rationale (e.g. "Unhelpful for navigation").
Next, you'd fill out the details. Let's suppose in this situation you think the subcategories of Category:Foos by country need merging to their parent categories. This means you will have multiple different actions ("deletion" and "merging"). For "deletion", you'd select the mass action as "Delete" (which will prefill the action box), and add "Category:Foos by country" to the list of titles.
For the subcats, you would then click "Additional action" and fill out the new box in much the same way. The mass action would be "Merge". In this case you'd need to fill out the list of titles with the targets as well. It might look something like:
Category:American Foos|Category:American Bars|Category:Foos Category:French Foos|Category:French Bars|Category:Foos Category:German Foos|Category:German Bars|Category:Foos
(assuming Category:American Foos, Category:French Foos and Category:German Foos are the subcategories of Category:Foos by country)
Now you're ready to go. Normally you should keep "Notify users?" ticked. Then you can click "Start", and let the script create the nomination, tag the categories, and notify the page creators.
RfD
Like CfD above, there will be a link to Special:MassRFD. Much of the operation is the same as above.
Description | Script for creating mass XfD nominations |
---|---|
Author(s) | Qwerfjkl |
Status | Stable |
First released | August 8, 2023 |
Updated | August 24, 2024 |
Skins | Vector 2022 (tested); other skins untested |
Source | User:Qwerfjkl/scripts/massXFD.js |
Installation
[edit]Warning: You are not logged in. Please create an account or log in to proceed. After installing the script, bypass your cache.
- Method 1
Click on the button below. If it doesn't appear after a few seconds you can enable script installer in the "Advanced" section of Special:Preferences#mw-prefsection-gadgets, or try this link.
- Method 2
This can only be used on the English Wikipedia.
- Place the following at the bottom of your common.js page or your skin.js page:
importScript('User:Qwerfjkl/scripts/massXFD.js'); // [[User:Qwerfjkl/scripts/massXFD.js]]
- Press
- Method 3
This can be used on any Wikimedia project (for instance, globally in your global.js on the Meta-Wiki).
- Place the following on the bottom of your common.js page or your skin.js page:
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User%3AQwerfjkl%2Fscripts%2FmassXFD.js&action=raw&ctype=text/javascript'); // [[User:Qwerfjkl/scripts/massXFD.js]]
- Press