Standard edit summary adds a drop down box below the edit summary box with a list of commonly used summaries. The summary field remains fully editable, of course. If it already contains a summary the preset is simply appended. That can be done multiple times, too.

The list with the presets is stored in a file named Template:Stdsummaries. You will need both the script and the preset list for this addon to work.

This script also sets tabindexes, so pressing the tab key changes focus from the edit area to the edit summary dropdown, then edit summary text area, then minor edit checkbox and then the publish button.

The preset list may include comments beginning with : * or <


Open this page for editing to see the script in the effect. (But please don't publish the page unless you've actually edited it, thanks!)



To use any of the options below you need to create an object named in your JavaScript code:

// Create the "dev" namespace if it doesn't exist already: = || {};
// Create the sub-namespace for this addon and set some options: = {
     css: '#stdSummaries { ... }',
     select: 'MediaWiki:Custom-StandardEditSummary'
// The options need to be set before the import! Otherwise they may not work.
importArticles({ type: 'script', articles: [ 


By default this CSS is added to the page to properly position the dropdown:

#stdSummaries {
    border-radius: 4px;
    padding: 1px 2px;
    width: 284px;
.EditPage.toolbar-expanded.editpage-sourcewidemode-on.mode-source #stdSummaries {
    position: relative;
    right: 290px;
    top: 3px;
    width: 278px;
.EditPage.toolbar-expanded.editpage-sourcewidemode-on.mode-source .module_page_controls .preview_box,.EditPage.toolbar-expanded.editpage-sourcewidemode-on.mode-source .module_page_controls .buttons {
    position: relative;
    top: -21px;
    right: -56px;

For most wikis this should work fine, but if you'd rather override it with your own CSS you can specify it like so: = || {}; = {
     css: '#stdSummaries { ... }'

If you'd rather set the CSS in your standard CSS files, set the value to false: = || {}; = {
    css: false


By default (and for legacy reasons) the contents of the dropdown are loaded from Template:Stdsummaries, you can specify an alternate source if you wish: = || {}; = {
    select: 'MediaWiki:Custom-StandardEditSummary'

But you don't need to use an external source. You can also specify the summaries inline: = || {}; = {
    select: [
        '(click to browse)',
        '1.Refactoring', [
            'Corrected spelling/grammar'
            /* etc. */
         /* etc. */

In the above example everything in the first dimension of the array is meant for grouping only and cannot be chosen as a summary. The second dimension holds the actual summaries.

Text above can be found here (edit)
Community content is available under CC-BY-SA unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+