Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
// Personnalisation des liens monobook
$(function() {
 
  // Onglets
  //mw.util.addPortletLink('p-cactions', '/wiki/User:Eusebius/brouillon', 'brouillon');
  //mw.util.addPortletLink('p-cactions', '/wiki/Commons:Featured picture candidates/candidate list', 'FPC');
  //mw.util.addPortletLink('p-cactions', '/wiki/Commons:Quality images candidates/candidate list', 'QIC');
  //mw.util.addPortletLink('p-cactions', '/wiki/Commons:Valued image candidates/candidate list', 'VIC');
  //mw.util.addPortletLink('p-cactions', '/wiki/Commons:Valued image candidates/Most_valued_review_candidate_list', 'MVR');
  //mw.util.addPortletLink('p-cactions', '/wiki/Commons:Valued image candidates/Set candidate list', 'VISC');
  //mw.util.addPortletLink('p-cactions', '/wiki/Special:Checkuser', 'CU');

});

//Quick delete
//importScript('MediaWiki:Quick-delete.js');

/*
//This provides the extended functions of [[MediaWiki:Quick-delete-code.js]] (links for no source, no permission and no license). Basic functionality is provided to all monobook users, as [[MediaWiki:Quick-delete-code.js]] is included in [[MediaWiki:Monobook.js]]. If you want to have the extended functions, just activate the Quick Delete gadget or include this file in your custom js.
 
//Load our basic script, in case it isn't already loaded (e.g. for non-monobook users)
importScript( 'MediaWiki:Quick-delete-code.js' );
 
//Provide extended functions by making sure our load function is actually loaded on load.
if (typeof(mnx_onload) != "undefined")
  addOnloadHook(mnx_onload); //No source, no permission, no license.
*/

//Flickrreview
//importScript("User:Patstuart/Flickrreview.js");


//Upload form personalization
var UploadForm_ownwork_author = "\{\{User:Eusebius/Credits|cam=7D|lens=17-50|cat=\}\}";
var UploadForm_ownwork_source = "\{\{own\}\}";

//
// Insert a personalized Texttemplate into the Special:Upload edit box.
//
function delayedUpdateSpecialUpload()
{
 var editbox = document.getElementById('wpUploadDescription');
 editbox.value = "{"+"{Information\n"
               + "|Description={"+"{de|}"+"} {"+"{en|}"+"}\n"
               + "|Source={"+"{own}"+"}\n"
               + "|Date=\n"
               + "|Author=[[User:Dschwen|Daniel Schwen]]\n"
               + "|Permission=See license\n"
               + "|other_versions=\n"
               + "}"+"}\n\n"
               + "== Licensing ==\n"
               + "{"+"{self|GFDL|cc-by-sa-2.5|author=I, [[User:Dschwen|Daniel Schwen]]}"+"}";
}
function setSpecialUploadTemplate()
{
 var uploadURL = 'http://commons.wikimedia.org/w/index.php?title=Special:Upload&uselang=ownwork';
 
 // I upload mostly my own work
 //document.getElementById('n-uploadbtn').firstChild.href = uploadURL;
 
 // preload input form
 if(window.location.href == uploadURL) setTimeout( "delayedUpdateSpecialUpload()", 500 );
}
$(setSpecialUploadTemplate);

//Personal tools
importScript("User:Eusebius/tools.js");
//importScript("User:Lupo/demo.js");