User script
MoveToDraft
Screenshot of version 2.5.8 of the script in action
DescriptionMoves articles to draft space, usually used for undersourced articles
Author(s)Evad37
Maintainer(s)MPGuy2824
Version2.5.8
Updated26 July 2023 (history and older history)
Skin support
  • Vector (2022)
  • Vector legacy (2010)
  • Monobook
  • Modern
  • Cologne Blue
  • Timeless
  • MinervaNeue
SourceUser:MPGuy2824/MoveToDraft.js

MoveToDraft (source) – A script that is used to WP:DRAFTIFY articles (move to draft space), including cleanup and author notification.

Steps performed by the script:

  1. Move the current page to draftspace and, if the user isn't an admin or page mover, then tag the redirect left behind for R2 speedy deletion.
  2. Check if any files used are non-free.
  3. Edit page to comment out non-free files, put categories in ((Draft categories)), and add the ((AFC draft)) template.
  4. Add a notification message on the author's/significant contributors' talk page/s.
  5. Update talk page banners.
  6. Log the move to the /Draftify log subpage of the user's space, if it exists.

Installation

Automatic

Manual

((subst:iusc|User:MPGuy2824/MoveToDraft.js))

Usage

  1. On articles, there will be an additional "Move to draft" menu option next to the regular "Move" option. In Vector skin, this is within the "More" dropdown menu.
  2. Choosing the contributors to send the notification to
    Selecting "Move to draft" will bring up a list of contributors to whom notifications can be sent. This step is skipped if there is only one contributor to the page.
  3. Next, a dialogue box is shown where the new draft title, the username of the author to notify, and a set of checkboxes to indicate the problem/s with the current version of the article can be chosen.
  4. The In-progress screen in the middle of its tasks
    When the "Continue" button is clicked, the script will undertake the steps listed above. If there are any errors encountered with a step, you generally have the option to retry or skip it.

Warnings

The script warns the user in certain conditions:

Draftify log

This script adds a pseudo-special page for viewing logs of draftifications – all draftifications, not just from this tool.

Once installed, you can navigate to Special:Draftify log and view logs from all users, or a particular user.

For convenience, a "Draftify log" link is placed on user pages (near the "Move to draft" menu option), linking to that user's log.

A wikitext version of the log is generated in a textbox at the bottom of the page, for easy copy-pasting if desired.

Todos

Changes after forking

This script was forked from User:Evad37/MoveToDraft, in November 2022. After forking, the following enhancements have been done:

Customisation

Note to interface admins

I, MPGuy2824, the owner of this script and userspace, give interface-admins permission to edit this script with any changes based on consensus, including redirecting the script to a new location, via inline code that loads a different user script location, in the following cases: