User:Wabbit98/common.js

/** * TemplateScript adds configurable templates and scripts to the sidebar, and adds an example regex editor. * @see https://meta.wikimedia.org/wiki/TemplateScript * @update-token */ // $.ajax('//tools-static.wmflabs.org/meta/scripts/pathoschild.templatescript.js', { dataType:'script', cache:true }).then(function {	pathoschild.TemplateScript.add([ {			name: 'redirect to talk', script: function(editor) { editor .set('#REDIRECT ') .setEditSummary('Redirected to talk page'); }		},		{			name: 'standardization and cleanup', scriptUrl: 'User:Pathoschild/standardise.js', script: function(editor) { standardize(editor); }		}	]); }); //