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

From Wikimedia Foundation Governance Wiki
Content deleted Content added
No edit summary
mNo edit summary
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
//<nowiki>
/* Cat-a-lot - changes category of multiple files */
/* Cat-a-lot - changes category of multiple files */
mw.loader.using(['jquery.ui.resizable', 'mediawiki.util'], function(){
mw.loader.using(['jquery.ui', 'mediawiki.util'], function(){
mw.loader.load('//commons.wikimedia.org/w/load.php?modules=ext.gadget.Cat-a-lot');
mw.loader.load('//commons.wikimedia.org/w/load.php?modules=ext.gadget.Cat-a-lot');
});
});
Line 6: Line 7:
window.catALotPrefs = {"watchlist":"preferences","minor":true,"editpages":true,"docleanup":false,"subcatcount":10};
window.catALotPrefs = {"watchlist":"preferences","minor":true,"editpages":true,"docleanup":false,"subcatcount":10};
////////////////////////////////////catALotEnd//
////////////////////////////////////catALotEnd//
//</nowiki>


mw.loader.load( '//foundation.wikimedia.org/w/index.php?title=MediaWiki:AutoTranslationMarkup.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() {


// mw.loader.load('//meta.wikimedia.org/w/index.php?title=User%3AJSutherland_%28WMF%29%2FautoTranslationMarkup.js&action=raw&ctype=text/javascript');
pathoschild.TemplateScript.add({
name: 'Historical',
template: '{{historical}}
',
position: 'before',
editSummary: 'Tagged as historical',
});

});
// </nowiki>

Latest revision as of 18:57, 9 April 2024

//<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( '//foundation.wikimedia.org/w/index.php?title=MediaWiki:AutoTranslationMarkup.js&action=raw&ctype=text/javascript' );

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