xfd, tag: add "desired outcome" dropdown (with delete, merge, redirect, draftify), and remove {{Merge}} tags from tag module#2345
Open
NovemLinguae wants to merge 22 commits intomasterfrom
Open
xfd, tag: add "desired outcome" dropdown (with delete, merge, redirect, draftify), and remove {{Merge}} tags from tag module#2345NovemLinguae wants to merge 22 commits intomasterfrom
NovemLinguae wants to merge 22 commits intomasterfrom
Conversation
Why
- a recent RFC decided to bring the merging process into the AFD process, instead of placing maintenance tags and using talk pages
What
- add dropdown called "Desired outcome:" with options delete, merge, redirect, and draftify
- add |outcome= to tagging wikicode when merge, redirect, or draftify are selected
- refactor tagging wikicode to not use ternaries (more readable)
Note that Twinkle uses {{subst:Afd}} and {{subst:Afdx}}, not {{subst:Article for deletion/dated}} directly. Those two templates will need to be modified with template editor edit requests. That doesn't need to hold up this patch though.
Example wikicode outputted by this patch:
Delete:
- `{{subst:afd|help=off}}\n`
- `{{subst:afdx|18th|help=off}}\n`
Merge:
- `{{subst:afd|help=off|outcome=merging}}\n`
- `{{subst:afdx|18th|help=off|outcome=merging}}\n`
If you want the params in a different order, let me know.
Related #2335
This is a patch chain, and this patch is number 2. **Earlier patches need to merge first.** The "changed files" tab will include code from earlier patches due to GitHub limitations, until earlier patches are merged and this patch is rebased. Why - #2335 What - add |outcome=draftification to {{Afd notify}} left on user's talk page - pre-fill some draftify text in the AFD reason textarea. the specific verbiage I chose was `I propose '''draftifying''' because `. Changing away from the draftify outcome in the dropdown blanks the reason textarea. - refactor
This is a patch chain, and this patch is number 3. **Earlier patches need to merge first.** Then rebase this one to fix the "files changed" tab. Why - #2335 What - add "Target page" text box for "Redirect" option in dropdown - add `|target=TargetPage` to {{Afd}} and {{Afdx}} - add `|target=TargetPage` to {{Afd notify}} - pre-fill some redirection text in the AFD reason textarea. the specific verbiage I chose was `I propose '''redirecting''' because `. Example text written to user talk: - `{{subst:afdx|3rd|help=off|outcome=redirecting|target=PageToRedirectTo}}` - `{{subst:afd notice|outcome=redirecting|target=PageToRedirectTo|order=  (3rd nomination)|1=NovemTest110}} ~~~~`
siddharthvp
reviewed
Apr 15, 2026
Member
Author
|
I merged all patches together into this patch. This is ready for final review. |
siddharthvp
reviewed
Apr 20, 2026
siddharthvp
reviewed
Apr 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
What
Fixes #2335
New dropdown:

New target page input box, new default reason:

Warning message when target page doesn't exist (non-fatal error):
