Skip to content

xfd: add more logic to AFD "Draftify" option#2342

Closed
NovemLinguae wants to merge 6 commits intomasterfrom
afd-merge-2
Closed

xfd: add more logic to AFD "Draftify" option#2342
NovemLinguae wants to merge 6 commits intomasterfrom
afd-merge-2

Conversation

@NovemLinguae
Copy link
Copy Markdown
Member

@NovemLinguae NovemLinguae commented Apr 12, 2026

2026-04-12_151425

This is a patch chain, and this patch is number 2. Earlier patches need to merge first. Then rebase this one to fix the "files changed" tab.

Why

What

  • add |outcome=draftification to {{Afd notify}} template that is 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

Example text written to user talk:

  • {{subst:afd notice|1=NovemTest110}} ~~~~
  • {{subst:afd notice|outcome=draftification|order=  (2nd nomination)|1=NovemTest110}} ~~~~

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
@NovemLinguae NovemLinguae changed the base branch from afd-merge-1 to master April 12, 2026 22:21
@NovemLinguae
Copy link
Copy Markdown
Member Author

Combining 3 patches into one at #2345

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant