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.
//// Insert a personalized Texttemplate into the Special:Upload edit box.//functionsetSpecialUploadTemplate(){varuploadURL='http://commons.wikimedia.org/w/index.php?title=Special:Upload&uselang=ownwork';// preload input formif(window.location.href==uploadURL){// I upload mostly my own workdocument.getElementById('n-upload').firstChild.href=uploadURL;vareditbox=document.getElementById('wpUploadDescription');if(editbox.value==''){editbox.value="{"+"{Information\n"+"|Description={{en| }}\n"+"|Source={{own}}\n"+"|Date=2010-\n"+"|Author=[[User:Someuser|Some User]]\n"+"|Permission={{self|cc-by-sa-3.0}}\n"+"|other_versions=\n"+"}"+"}\n\n"+"[[Category:Photographs by Dori]]";}}}addOnloadHook(setSpecialUploadTemplate);