MoveToDraft (source) – A script to move undersourced articles to draft space, including cleanup and author notification.
| Description | Moves undersourced articles to draft space |
|---|---|
| Author | Evad37 |
| Version | 2.3.1 |
| Updated | 5 May 2019 (history) |
| Skins |
|
| Source |
MoveToDraft (source) – A script to move undersourced articles to draft space, including cleanup and author notification.
Script steps:
Add the following to Special:MyPage/common.js (or your skin-specific js, if you prefer):
importScript( 'User:Evad37/MoveToDraft.js' ); // Backlink: [[User:Evad37/MoveToDraft]]
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.
Selecting "Move to draft" will bring up a dialogue box for the new draft title, the username of the author to notify, and the notification message/heading to be left for the author. The default values, in most cases, will not need to be changed.
When the "Continue" button is clicked, the script will undertake the steps listed above sequentially. If there are any errors encountered with a step, you generally have the option to retry or skip it.
Note: for those without the page mover user-right, the redirect left behind from moving the article to draftspace will be tagged for CSD R2 deletion automatically.
var m2d_portlet = "portletID
"; to your common.js, replacing portletIDwith one of the portlet id values from Help:Customizing toolbars (the script's default location is
p-cactions)var m2d_notification = "Your message here
"; to your common.js
$1 instead of the page title\~~\~~ instead of ~~~~, \{\{subst: instead of {{subst: for any template substitution)" characters) as \" to avoid syntax errors.\ characters) need to be escaped as \\.var m2d_rationale = "rationale
"; to your common.js, replacing rationalewith custom text. The default rationale is Undersourced, incubate in draftspace
var m2d_editsummary = "editSummary
"; to your common.js, replacing editSummarywith custom text. The default rationale is [[WP:AFC|AFC]] draft
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.