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.
//JSconfig.subPagesLink = false;
JSconfig_old.loadAutoInformationTemplate = false;

// [[User:Lupin/popups.js]] - please include this line 
 
mw.loader.load(
             'https://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'
             + '&action=raw&ctype=text/javascript&dontcountme=s'); 

// Magnus' HotCat
importScript('MediaWiki:HotCat.js');
 
// [[User:Dschwen/slideshow.js]] - please include this line 
importScript('User:Dschwen/Gadget-Slideshow.js');

// Magnus' Imageboxes
importScript( 'MediaWiki:Gadget-ImageBoxes.js' );
 
//
// Insert a personalized Texttemplate into the Special:Upload edit box.
//
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-upload').firstChild.href = uploadURL;

 // preload input form
 if(window.location.href == uploadURL)
 {
  var editbox = document.getElementById('wpUploadDescription');
  if( editbox.value == '' )
  {
   editbox.value = "{"+"{Information\n"
                 + "|Description={{en| }}\n"
                 + "|Source=Own work\n"
                 + "|Date=\n"
                 + "|Author=[[User:gobeirne|Greg O'Beirne]]\n"
                 + "|Permission=See license\n"
                 + "|other_versions=\n"
                 + "}"+"}\n\n"
                 + "== Licensing ==\n"
                 + "{"+"{self|GFDL|cc-by-sa-2.5|author=I, [[User:gobeirne|Greg O'Beirne]]}"+"}";
  }
 }
}

$(setSpecialUploadTemplate);

//
// Insert a personalized Texttemplate into the Special:Upload edit box.
//
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)
 {
  var editbox = document.getElementById('wpUploadDescription');
  if( editbox.value == '' )
  {
 editbox.value = "{"+"{Information\n"
                 + "|Description={{en| }}\n"
                 + "|Source=Own work\n"
                 + "|Date=\n"
                 + "|Author=[[User:gobeirne|Greg O'Beirne]]\n"
                 + "|Permission=See license\n"
                 + "|other_versions=\n"
                 + "}"+"}\n\n"
                 + "== Licensing ==\n"
                 + "{"+"{self|GFDL|cc-by-sa-2.5|author=I, [[User:gobeirne|Greg O'Beirne]]}"+"}";
  }
 
  //var licensemenu = document.getElementById('wpLicense');
  //licensemenu.value = "self|GFDL|cc-by-sa-2.5";
 }
}
 
$(setSpecialUploadTemplate);