Extension:Drafts

This extension adds the ability to save a draft of an article on the server while editing. Users must be logged in to save drafts, as they are tied to their user account. Drafts are always discarded when they are used to save the article they came from.

Saving Drafts
Drafts are always saved when the user clicks preview or show changes, however the following behavior is dependent on whether the client's browser has JavaScript enabled or disabled.

Accessing Drafts
If a draft has been saved the user can access them by
 * Returning to the edit screen for article they saved the draft of, where a list of existing drafts for that user and article will appear at the top of the edit page.
 * Visiting the drafts special page (Special:Drafts) where there is a list of all drafts for that user.

Installation
require_once ( "$IP/extensions/Drafts/Drafts.php" ); > php maintenance/update.php
 * Copy the Drafts folder into your extensions directory.
 * Add the following line to the bottom of LocalSettings.php
 * Run the update script on the server

The extension needs its own table within the MediaWiki database, and this is the reason you have to execute the update.php script. However, you may be able to save executing the update script if you manually import the contents of the extensions/Drafts/Drafts.sql file into your database, but don't do it directly with mysql because the SQL file itself relies on MediaWiki variables for finding the correct database prefix and table options.

Configuration
The following parameters can be set by defining values for the following variables in your LocalSettings.php file.