User:Paine Ellsworth/global.js

From Meta, a Wikimedia project coordination wiki

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.
window.popupFixDabs=true;
window.popupFixRedirs=true;
//<nowiki>
/Translations/;
/* Cat-a-lot - changes category of multiple files */
mw.loader.using(['jquery.ui', 'mediawiki.util'], function(){
	mw.loader.load('//commons.wikimedia.org/w/load.php?modules=ext.gadget.Cat-a-lot');
});
////////// Cat-a-lot user preferences //////////
window.catALotPrefs = {"watchlist":"preferences","minor":true,"editpages":true,"docleanup":false,"subcatcount":10};
////////////////////////////////////catALotEnd//
//</nowiki>
/**
 * 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([
		// add your own templates or scripts here
		{ name: 'Rcat shell', template: '\n{{Rcat shell|\n', position: 'cursor' },
		{ name: 'Sig', template: '~~~&nbsp;<small>~~~~~</small>', position: 'cursor', enabled: mw.config.get('wgNamespaceNumber') % 2 },
		{ name: 'Sig', template: '~~~&nbsp;<small>~~~~~</small>', position: 'cursor', forNamespaces: '4' },
		{ name: 'Sig pp-alt', template: '{{subst:pell}}', position: 'cursor', enabled: mw.config.get('wgNamespaceNumber') % 2 },
		{ name: 'Sig pp-alt', template: '{{subst:pell}}', position: 'cursor', forNamespaces: '4' },
		{ name: 'Sig alt-npl', template: '{{subst:pell|npl=1}}', position: 'cursor', enabled: mw.config.get('wgNamespaceNumber') % 2 },
		{ name: 'Sig alt-npl', template: '{{subst:pell|npl=1}}', position: 'cursor', forNamespaces: '4' },
		{ name: 'Doc', template: '{{Documentation}}\n', position: 'cursor' },
		{ name: 'Doc2', template: '{{Documentation|content=\n', position: 'cursor' },
		{ name: 'Tpr', template: '{{Talk page of redirect}}\n', position: 'cursor' },
		{ name: 'Welcome', template: '{{subst:wtw}}', position: 'cursor', editSummary: 'Welcome!', forNamespaces: 'user talk' },
        { name: 'Welcome +', template: '{{subst:wtw}}\n\n== Your edit ==\n{{subst:User:Paine Ellsworth/peuw-test1}}\n{{subst:User:Paine Ellsworth/Your edit2}}', position: 'cursor', editSummary: 'Welcome! + your edit', forNamespaces: 'user talk' },
		{ name: 'Skip to TOC', template: '{{Skip to TOC}}\n', position: 'cursor' },
		{ name: 'R print', template: '{{R printworthy}}\n', position: 'cursor' },
		{ name: 'R unprint', template: '{{R unprintworthy}}\n', position: 'cursor' },
		{ name: 'R altname', template: '{{R from alternative name}}\n', position: 'cursor' },
		{ name: 'R conveni', template: '{{R for convenience}}\n', position: 'cursor' },
		{ name: 'R dab', template: '{{R to disambiguation page}}\n', position: 'cursor' },
		{ name: 'R former', template: '{{R from former name}}\n', position: 'cursor' },
		{ name: 'R full/long', template: '{{R from long name}}\n', position: 'cursor' },
		{ name: 'R hatnote', template: '{{R mentioned in hatnote}}\n', position: 'cursor' },
		{ name: 'R merge', template: '{{R from merge}}\n', position: 'cursor' },
		{ name: 'R miscap', template: '{{R from miscapitalization}}\n', position: 'cursor' },
		{ name: 'R mod', template: '{{R from modification}}\n', position: 'cursor' },
		{ name: 'R move', template: '{{R from move}}\n', position: 'cursor' },
		{ name: 'R plural', template: '{{R from plural}}\n', position: 'cursor' },
		{ name: 'R rcat template', template: '{{R to redirect template}}\n', position: 'cursor' },
		{ name: 'R related', template: '{{R to related term}}\n', position: 'cursor' },
		{ name: 'R remote', template: '{{R from remote page}}\n', position: 'cursor' },
		{ name: 'R section', template: '{{R to section}}\n', position: 'cursor' },
		{ name: 'R shortcut', template: '{{R from shortcut}}\n', position: 'cursor' },
		{ name: 'R from short name', template: '{{R from short name}}\n', position: 'cursor' },
		{ name: 'R from subpage', template: '{{R from subpage}}\n', position: 'cursor' },
		{ name: 'R from subtopic', template: '{{R from subtopic}}\n', position: 'cursor' },
		{ name: 'R tmplt shortcut', template: '{{R from template shortcut}}\n', position: 'cursor' },
		{ name: 'R typo', template: '{{R from misspelling}}\n', position: 'cursor' },
		{ name: 'R undis', template: '{{R from unnecessary disambiguation}}\n', position: 'cursor' },
		{ name: 'R unsuitbl', template: '{{R from unsuitable title}}\n', position: 'cursor' },
		{ name: 'R Wikidata', template: '{{R with Wikidata item}}\n', position: 'cursor' },
	]);
});
// </nowiki>