Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Installation  





2 Usage  





3 Draftify log  





4 Customisation  














User:Evad37/MoveToDraft

















User page
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
User contributions
User logs
View user groups
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 

< User:Evad37

MoveToDraft
DescriptionMoves articles to draft space, usually used for undersourced articles
Author(s)Evad37
Version2.5.1
Updated17 December 2020 (history)
Skin support
  • Vector
  • Monobook
  • Modern
  • Cologne Blue
  • Timeless
  • MinervaNeue
  • Source
  • sandbox (diff)
  • information This script has not been updated since 17 December 2020. Editors are recommended to use User:MPGuy2824/MoveToDraft.js instead.

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

    Script steps:

    1. Move to draftspace and, if not an admin or page mover, 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, turn categories into links, add afc draft template
    4. Add notification message on author talk page
    5. Update talk page banners
    6. Log the move to the /Draftify log subpage of your userspace, if it exists

    Installation

    [edit]

    Add the following to Special:MyPage/common.js (or your skin-specific js, if you prefer):

    {{subst:lusc|User:Evad37/MoveToDraft.js}}
    

    Usage

    [edit]

    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 may need to be changed to indicate the particular reasons why you are draftifying the article.

    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.

    Draftify log

    [edit]

    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.

    Customisation

    [edit]
    "Move to draft" link placement
    Add the line var m2d_portlet = "portletID";toyour common.js, replacing portletID with one of the portlet id values from Help:Customizing toolbars (the script's default location is p-cactions)
    Author notification message
    Use with caution, if you are sure what you're doing:
    Add the line var m2d_notification = "Your message here";toyour common.js
    Important: within your message:
    • You need to use $1 instead of the page title
    • You need to prevent wikitext transformations on the common.js page itself (i.e. \~~\~~ instead of ~~~~, \{\{subst: instead of {{subst: for any template substitution)
    • You need to escape any quotation marks (" characters) as \" to avoid syntax errors.
    • Any actual backslashes (\ characters) need to be escaped as \\.
    Move log rationale
    Add the line var m2d_rationale = "rationale";toyour common.js, replacing rationale with custom text. The default rationale is [[WP:DRAFTIFY|Not ready]] for mainspace, incubate in draftspace
    Edit summary for preparing article for draftspace
    Add the line var m2d_editsummary = "editSummary";toyour common.js, replacing editSummary with custom text. The default rationale is [[WP:AFC|AFC]] draft
    Disable logging within your userspace
    Add the line var m2d_doNotLog = true;toyour common.js to disable logging moves (in/Draftify log within your userspace). Logging is enabled if this omitted or set to false.

    Retrieved from "https://en.wikipedia.org/w/index.php?title=User:Evad37/MoveToDraft&oldid=1162773276"

    Categories: 
    Wikipedia scripts
    Wikipedia drafts
     



    This page was last edited on 1 July 2023, at 02:22 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki