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 |
||
(25 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 |
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]] |
|||
*/ |
|||
// |
|||
$.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({ |
|||
category: 'Being nice', |
|||
name: 'Welcome', |
|||
template: '<div class="mw-tpl-welcome plainlinks"> |
|||
<h2><span style="float: right; font-size: 50%;">[{{fullurl:Template:Welcome|action=edit}} edit this template]</span> Welcome to the Wikimedia Foundation wiki</h2> |
|||
'''Thanks for being here!''' Please do not be shy in editing this site. There is ample work for everyone. :-) |
|||
If you haven't already, please create [[Special:MyPage|your user page]] with a short biography and other introductory information about yourself and the work you do. You may want to use the {{tl|user info}} template. Feel free to look at [[Special:ListUsers|other user pages]] for examples. --[[User:GVarnum-WMF|GVarnum-WMF]] ([[User talk:GVarnum-WMF|talk]]) 01:25, 5 May 2018 (UTC) |
|||
</div> [[User:GVarnum-WMF|GVarnum-WMF]] ([[User talk:GVarnum-WMF|talk]]) 01:25, 5 May 2018 (UTC)', |
|||
position: 'after', |
|||
editSummary: 'Welcome!', |
|||
forNamespaces: 'user talk' |
|||
}); |
|||
}); |
|||
// |
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');