Changes

Jump to navigation Jump to search
970 bytes added ,  15:33, 14 July 2010
no edit summary
Line 1: Line 1:  
/* Any JavaScript here will be loaded for all users on every page load. */
 
/* Any JavaScript here will be loaded for all users on every page load. */
    +
//
 +
// Insert a personalized Texttemplate into the Special:Upload edit box.
 +
//
 +
function delayedUpdateSpecialUpload()
 +
{
 +
var editbox = document.getElementById('wpUploadDescription');
 +
 +
// if (location.href == "http://testfish.co.uk/index.php?title=Special:Upload")
 +
// {
 +
// editbox.value = "{"+"{Information\n"
 +
//                + "|Description=\n"
 +
//                + "|Source=\n"
 +
//                + "|Date=\n"
 +
//                + "|Author=\n"
 +
//                + "|Permission=See below\n"
 +
//                + "}"+"}\n\n";
 +
// }
 +
 +
if(location.href == "http://testfish.co.uk/index.php?title=Special:Upload&uselang=ownwork"){
 +
 +
editbox.value = "{"+"{Information\n"
 +
              + "|Description=\n"
 +
              + "|Source=Own Work\n"
 +
              + "|Date=\n"
 +
 +
              + "|Author=" + "\[\[User:" + wgUserName + "|" + wgUserName + "\]\]" + "\n"
 +
              + "|Permission=See below\n"
 +
              + "}"+"}\n\n";
 +
}
 +
}
 +
addOnloadHook(delayedUpdateSpecialUpload);
     

Navigation menu