Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/**
 * TemplateScript adds configurable templates and scripts to the sidebar, and adds an example regex editor.
 * @see https://meta.wikimedia.org/wiki/TemplateScript
 * @update-token [[File:pathoschild/templatescript.js]]
 */
// <nowiki>
$.ajax('//tools-static.wmflabs.org/meta/scripts/pathoschild.templatescript.js', { dataType:'script', cache:true }).then(function() {
	pathoschild.TemplateScript.add(
		[
			{ name: 'welcome', template: '{{subst:welcome}}~~~~', editSummary: 'Welcome!'},
			{ name: 'Test1', template: '{{subst:Test1}}~~~~', editSummary: 'notify: Test' },
			{ name: 'Test2', template: '{{subst:Test2}}~~~~', editSummary: 'notify: Unconstructive edits' },
			{ name: 'Vandalism', template: '{{subst:Test3}}~~~~', editSummary: 'warn: Vandalism' },
			{ name: 'Vandalism: LW', template: '{{subst:Test4}}~~~~', editSummary: 'last warning: Vandalism' },
			{ name: 'Blatant vandal', template: '{{subst:Bv}}', editSummary: 'warning: Blatant vandalism' },
			{ name: 'Personal attack', template: '{{subst:Attack}}~~~~', editSummary: 'warning: Personal attacks' },
			{ name: 'Spam', template: '{{subst:Spam}}', editSummary: 'warning: Spamming' },
			{ name: 'Offtopic-page', template: '{{subst:Offtopic}}', editSummary: 'offtopic page', },
			{ name: 'Offtopic-edit', template: '{{subst:Offtopic-edits}}', editSummary: 'Offtopic-edits' },
			{ name: 'del.-Userpage', template: '{{subst:Deleted userpage}}', editSummary: 'Userpage deleted' },
		],
		{ category:'Being nice', forNamespaces:3, script:function autoSubmit() { $('#wpSave').click(); } }
	);
});
// </nowiki>