User:GVarnum-WMF/common.js: Difference between revisions

From Wikimedia Foundation Governance Wiki
Content deleted Content added
No edit summary
No edit summary
Tag: Reverted
Line 67: Line 67:
});
});
// </nowiki>
// </nowiki>

importScript('User:Jalexander-WMF/ResourcePage.js');

// [[d:User:Yair rand/WikidataInfo.js]]
mw.loader.load('//www.wikidata.org/w/index.php?title=User:Yair rand/WikidataInfo.js&action=raw&ctype=text/javascript');

/**
* 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]]
*/
mw.loader.load('//tools-static.wmflabs.org/meta/scripts/pathoschild.templatescript.js');

mw.loader.load('//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Amalthea/userhighlighter.js');
mw.loader.load('//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:PleaseStand/highlight-comments.js');
mw.loader.load('//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:PleaseStand/userinfo.js');
// mw.loader.load('//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:PleaseStand/userinfo-dev.js');
mw.loader.load('//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Ais523/votesymbols.js');
mw.loader.load('//ru.wikipedia.org/w/index.php?title=MediaWiki:Gadget-markblocked.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Ais523/bracketmatch.js');

Revision as of 04:48, 2 October 2023

//<nowiki>
/* 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>

mw.loader.load('//meta.wikimedia.org/w/index.php?title=User%3AJSutherland_%28WMF%29%2FautoTranslationMarkup.js&action=raw&ctype=text/javascript');

/**
 * 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: 'Historical',
	template: '{{historical}} \n',
	position: 'before',
	editSummary: 'Tagged as historical, ',
	accessKey: 'h',
	});
	
	pathoschild.TemplateScript.add({
	name: 'Tag for Meta-Wiki',
	template: '[[Category:Pages to be exported to Meta-Wiki]] \n',
	position: 'before',
	editSummary: 'Added to Category:Pages to be exported to Meta-Wiki, ',
	accessKey: 'm',
	});
	
	pathoschild.TemplateScript.add({
	name: 'Tag for MediaWiki.org',
	template: '[[Category:Pages to be exported to MediaWiki.org]] \n',
	position: 'before',
	editSummary: 'Added to Category:Pages to be exported to MediaWiki.org, ',
	accessKey: 'w',
	});
	
	pathoschild.TemplateScript.add({
	name: 'Tag for Donate wiki',
	template: '[[Category:Pages to be exported to Donate wiki]] \n',
	position: 'before',
	editSummary: 'Added to Category:Pages to be exported to Donate wiki, ',
	});
	
	pathoschild.TemplateScript.add({
	name: 'Tag for Documentation',
	template: '[[Category:Documentation wiki]] \n',
	position: 'before',
	editSummary: 'Added to Category:Documentation wiki, ',
	});

	pathoschild.TemplateScript.add({
	name: 'Propose for deletion',
	template: '{{proposed deletion}} \n',
	position: 'before',
	editSummary: 'Propose for deletion, ',
	accessKey: 'd',
	});

});
// </nowiki>

importScript('User:Jalexander-WMF/ResourcePage.js');

// [[d:User:Yair rand/WikidataInfo.js]]
mw.loader.load('//www.wikidata.org/w/index.php?title=User:Yair rand/WikidataInfo.js&action=raw&ctype=text/javascript');

/**
 * 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]]
 */
mw.loader.load('//tools-static.wmflabs.org/meta/scripts/pathoschild.templatescript.js');

mw.loader.load('//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Amalthea/userhighlighter.js');
mw.loader.load('//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:PleaseStand/highlight-comments.js');
mw.loader.load('//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:PleaseStand/userinfo.js');
// mw.loader.load('//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:PleaseStand/userinfo-dev.js');
mw.loader.load('//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Ais523/votesymbols.js');
mw.loader.load('//ru.wikipedia.org/w/index.php?title=MediaWiki:Gadget-markblocked.js&action=raw&ctype=text/javascript');
mw.loader.load('//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Ais523/bracketmatch.js');