From Wikipedia, the free encyclopedia
< User:Evad37  (Redirected from Wikipedia:XFDC)
Jump to navigation Jump to search

XFDcloser (source) is a script to close XfD discussions at multiple venues. Feedback, including bug reports and feature suggestions, can be given on the talk page.


To install the script, add:

importScript('User:Evad37/XFDcloser.js'); // [[User:Evad37/XFDcloser]]

to Special:MyPage/common.js.

Note that the script will not run unless you are extended confirmed.


In addition to closing or relisting discussions, XFDcloser can undertake actions to implement a close:

  • Add old xfd templates to talk pages
    • Will collapse multiple banners into a single {{Old AfD multi}} banner
  • Remove nomination templates from nominated pages (when the pages are kept)
  • Replace nomination templates with merge template, add merge tag to target's talk page (AFD, MFD)
  • Delete nominated pages (when the result is delete)
    • Also delete the talk pages
  • List templates at the holding cell, in specified section (TFD)
    • Replace nomination template with {{Being deleted}}
    • or if "Ready for deletion", apply speedy deletion tags to the template (G6) and its talk page (G8)
  • Delete redirects
    • Also delete redirects' talk pages
  • Unlink backlinks (AFD, FFD)
  • Redirect, or delete and then redirect, nominated pages
    • Apply specified rcats
    • Unlink circular links from redirect target

When there is more than one page nominated, multiple results (i.e. "keep some, delete others") can be specified, with appropriate actions applied to each page.


XFDcloser adds closing/relisting links after the headings of each discussion, for the following XfD venues: AfD, CfD, FfD, MfD, RfD, TfD

Part of an XfD log page with the script installed


Click on the [close] link to bring up a dialogue box, where you can select various options, and type out a rationale.

Closing discussion dialogue box, which is drag-able and resize-able. The exact options available depend on the XfD venue, the selected result, and whether you are an administrator.

Multiple results[edit]

To specify results individually for each page in a multiple-nomination XfD, choose the Multiple results... button.

Multiple results version of the dialogue box.


Clicking on the [quickClose] link brings up two links, qk and qD. These are shortcuts that bypass the form, to quickly close the discussion as keep or delete (respectively), with no further rationale, and with default options.

After clicking on [quickClose], the qk and qD links are revealed, along with an (x) to cancel


Click on the [relist] link to bring up a dialogue box, where you can optionally type out a rationale.

Relisting discussion dialogue box

Unlinking backlinks[edit]

For AfD and FfD discussions, there is an option to unlink backlinks (including file usage). For links within list items, it is sometimes more appropriate to remove the list item rather than unlinking it – in such cases, the script will ask whether to keep the unlinked item or remove it:

Popup to review an unlinked list item

Hide/Show closed sections[edit]

An option to hide or show already closed sections, making it easer to find unclosed sections. Appears in a small yellow box in the bottom-right corner of the screen. When you change states, this will be remembered (if localStorage usage is available/allowed by your browser)

Click the yellow box in the bottom-right corner of the screen to toggle hiding/showing of closed discussions


  • Non-admins are not offered deletion options, except for TfD's which get listed at the TfD holding cell.
  • Entering the result "soft delete" will automatically add "WP:REFUND applies." to the additional rationale box.
  • For TfD: If the holding cell section "Ready for deletion" is selected, the template(s) will have {{db-xfd}} added instead of {{being deleted}}.

See also[edit]

Sandbox links