User:KnightMiner/editSummaryPresets.js/doc

This version displays a single menu of custom edit summaries across all namespaces, also allowing categorization of the custom summaries.

Place the following in your common.js page or skin script page to use:  if (mw.config.get( 'wgAction' ) === 'edit' || mw.config.get( 'wgAction' ) === 'submit') { var customSummaries = [ 'your first preset summary', 'your second preset summary', '== your first preset category', 'a third preset using a wiki hotlink' + '', ];      mw.loader.load( 'User:KnightMiner/editSummaryPresets.js' ); }

The extra single quotes and plus sign on the link is to prevent the wiki software from creating a link as the variables are loaded. This normally happens with templates being transcluded or substituted in scripts, so the single quotes and plus may not be needed.

Sources: This is a modified version of User:Kanegasi/editsummarypresets.js so you may add custom categories. That script used code from the following scripts:
 * Wikipedia:User:ErrantX/defaultsummaries.js
 * Wikipedia:User:MC10/defaultsummaries.js.
 * Wikipedia:User:Equazcion/CustomSummaryPresets.js