Jump to content

User:GVarnum-WMF/common.js

From Wikimedia Foundation Governance Wiki

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)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* Cat-a-lot - changes category of multiple files */
mw.loader.using(['jquery.ui.resizable', '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//

/**
 * 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() {

	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'
});
	
});
//