Extension:Submit In Toolbar

Adds Save, Preview, Diff buttons to Toolbar.

MediaWiki 1.16

 * Download extension and place it in /extensions/SubmitInToolbar/
 * Insert these lines into LocalSettings.php:

The extension should now be ready to use. Unlike with earlier MediaWiki versions, there is no need to patch core MediaWiki 1.16 code to get "Submit in Toolbar" up and running.

As a close equivalent to the non-standard 'EditToolBar' hook (once required by this function) now exists in MediaWiki as 'EditPageBeforeEditToolbar', the small stub of code redirecting 'EditPageBeforeEditToolbar' to 'EditToolBar' is all that is needed to allow an unmodified copy of this extension to operate under an unmodified copy of MediaWiki 1.16.

(Note: As of mid-2009, MW 1.16 is still alpha code and, in theory, its specifications may be changed as the product nears final release.)

MediaWiki 1.15 and earlier

 * Download extension and place it in /extensions/SubmitInToolbar/
 * Apply this Patch to includes/EditPage.php:

search for (around Line 2130 in V1.14)

before, add


 * Apply this patch to /extensions/SubmitInToolbar/SubmitInToolbar.php if you are using MediaWiki version 1.14 or 1.15 (an extension routine must return a value):

search for (around Line 34)

after, add


 * add to LocalSettings.php:

Configuration
If not installed on expected path (which is extensions/SubmitInToolbar/), override $wgSubmitInToolbar by:

Source code
The source listing below has been patched to return 'true' when called from MediaWiki 1.14 and 1.15.

Create extensions/SubmitInToolbar/SubmitInToolbar.php as:

Create extensions/SubmitInToolbar/images and place the following icons there:
 * button_diff.png
 * button_preview.png
 * button_save.png

Each icon should be 23 x 22 in size; a suitable set of icons is already included in the download package from the extension author's site. The icons may (alternately) be obtained from any of the wikis already using this extension.

Bugs

 * Probably some, tell me...
 * Icons does not look nice... :-(
 * Icons don't show at the end of the bar in wiki 1.9, they display as the first icons :(

Who's using it?
Please add your wiki here! Add it to the top, and feel free to add a link to your favourite article or two.


 * http://www.venicewiki.org
 * http://www.muscatelli.info/wiki5
 * http://hikipedia.info
 * http://desciclopedia.org
 * http://uncyclopedia.tw
 * http://www.ultiwiki-net.tk
 * http://psyklopedin.org/wiki/Atlantic_Records depicts the extension in use.