User:Enterprisey/CustomSummaryPresets

A userscript that puts a dropdown of custom edit summaries underneath the edit summary box. Forked from Equazcion's script with the same name in July 2018.

Installation instructions
Hint: It's much easier if you get ScriptInstaller, then navigate to User:Enterprisey/CustomSummaryPresets.js and click "Install" at the top.

However, here's the manual method:
 * 1) Place  on Special:MyPage/common.js or Special:MyPage/skin.js.
 * 2) Clear your cache and enjoy!

Usage
This script supports three ways of specifying custom edit summaries.

The traditional way: put these lines in your common.js after the importScript line that mentions CustomSummaryPresets:

And the next time you're on an edit page, the dropdown should have those two items in it. You can add  and so on, going up to. If you want more, use the next method.

The list way: put these lines in your common.js:

The first and last lines (with the square brackets) are critical. You can specify as many summaries as you want this way.

The traditional and list ways conflict, so you have to pick one. The advanced way can be used with either.

The advanced way: put these lines in your common.js:

Again, the symbols are crucial. You can specify as many summaries as you want. The numbers are namespace numbers; a full list is at WP:Namespaces. If you put a summary in the list for a namespace, it will only show up when you're editing a page in that namespace.

Credits
Recent code copied from the gadget. I also looked at Equazicon's version. Black Falcon pointed out that Equazicon's version was broken on the technical village pump, which is why I made this version.