:User:Qwerfjkl/scripts/massXFD

{{User:Qwerfjkl/tempscript

| year = 2023

| month = 08

| day = 8

| shortdesc = Script for creating/tagging mass XfD nominations

| description =

The script currently only handles CfD and RfD. Let me know if you want me to add any other XfD venues.

= 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:
500px

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.{{pb}}

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.{{pb}}

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.

See this video for an example of how to use the script.

; 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.

}}