Jump to content

User:Bingnet/common.js

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by Pathoschild (talk | contribs) at 02:31, 25 August 2014 (updated link). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/**
 * TemplateScript adds configurable templates and scripts to the sidebar, and adds an example regex editor.
 * @see https://meta.wikimedia.org/wiki/TemplateScript
 */
// <pre>
$.getScript('//tools.wmflabs.org/meta/scripts/pathoschild.templatescript.js', function() {
	pathoschild.TemplateScript.Add([
		{ name: 'welcome', template: '{{subst:welcome}} ~~~~', position: 'after', editSummary: 'welcome!', forNamespaces: 3, forActions: 'edit' },
		// add your own templates or scripts here
	]);
});