User:Werdan7/common.js

From Simple English Wikipedia, the free encyclopedia

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.
// [[User:Lupin/popups.js]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript');
popupAdminLinks=true;
popupLastEditLink=false;
popupOnlyArticleLinks=false;


// Helper tools
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Voice_of_All/Addtabs/monobook.js&action=raw&ctype=text/javascript');

mw.loader.load('//localhost/scripts/admin.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 [[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:'anon', template:'\n{{subst:anon}}--~~~~', editSummary:'Welcome' },
		{ name:'T1', template:'\n{{subst:test1|1=}}--~~~~', editSummary:'{{Test1}}' },
		{ name:'T1art', template:'\n{{subst:Testarticle|1=}}--~~~~', editSummary:'{{Testarticle}}' },
		{ name:'T2', template:'\n{{subst:test2|1=}}--~~~~', editSummary:'{{Test2}}' },
		{ name:'T2a', template:'\n{{subst:Test2a|1=}}--~~~~', editSummary:'{{Test2a}}' },
		{ name:'T2art', template:'\n{{subst:Test2article|1=}}--~~~~', editSummary:'{{Test2article}}' },
		{ name:'T3', template:'\n{{subst:Vandalism|1=}}--~~~~', editSummary:'{{Vandalism}}' },
		{ name:'T3a', template:'\n{{subst:Test3a|1=}}--~~~~', editSummary:'{{Test3a}}' },
		{ name:'T4', template:'\n{{subst:RepeatVandal|1=}}--~~~~', editSummary:'{{RepeatVandal}}' },
		{ name:'BV', template:'\n{{subst:test4im|1=}}--~~~~', editSummary:'{{Test4im}}' },
		{ name:'temp', template:'\n{{subst:blockedtemp}}--~~~~', editSummary:'blocked ' },
		{ name:'indef', template:'\n{{subst:block}}--~~~~', editSummary:'blocked ' },
		{ name:'˜˜˜˜˜˜˜', template:'\n{{subst:User:Werdan7/ipnote.js}}' },
		{ name:'ad', template:'\n{{subst:advert|1=}}--~~~~', editSummary:'{{advert}}' },
		{ name:'NPA', template:'\n{{subst:attack|1=}}--~~~~', editSummary:'{{attack}}' },
		{ name:'UN', template:'Unacceptable username', editSummary:'indefinite', forActions:'block' },
		{ name:'VAND', template:'Vandalism only account', editSummary:'indefinite', forActions:'block' }
	]);
});
// </nowiki>