User:GVarnum-WMF/common.js: Difference between revisions
Content deleted Content added
GVarnum-WMF (talk | contribs) No edit summary |
GVarnum-WMF (talk | contribs) mNo edit summary |
||
(18 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
⚫ | |||
/* Cat-a-lot - changes category of multiple files */ |
/* Cat-a-lot - changes category of multiple files */ |
||
mw.loader.using(['jquery.ui |
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// |
||
⚫ | |||
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]] |
|||
*/ |
|||
⚫ | |||
$.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', |
|||
}); |
|||
}); |
|||
⚫ |
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');