1,293 bytes removed ,  13:00, 21 August 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://wikivet.net/index.php/Special:Upload"){
  −
  −
editbox.value = "{"+"{Information\n"
  −
                + "|Description=\n"
  −
                + "|Source=\n"
  −
                + "|Date=\n"
  −
                + "|Author=\n"
  −
                + "|Permission=See below\n"
  −
                + "|Other_versions=\n"
  −
                + "}"+"}\n\n";
  −
}
  −
  −
if (location.href == "http://wikivet.net/index.php?title=Special:Upload&uselang=own"){
  −
  −
editbox.value  = "{"+"{Information\n"
  −
              + "|Description=\n"
  −
              + "|Source=Own Work\n"
  −
              + "|Date=" + window.location.pathname + "\n"
  −
              + "|Author=" + "\[\[User:" + wgUserName + "|" + wgUserName + "\]\]" + "\n"
  −
              + "|Permission=See below\n"
  −
              + "}"+"}\n\n";
  −
}
  −
  −
if (window.location.pathname == "/index.php"){
  −
  −
editbox.value  = "{"+"{Information\n"
  −
              + "|Description=\n"
  −
              + "|Source=\n"
  −
              + "|Date=\n"
  −
              + "|Author=\n"
  −
              + "|Permission=See below\n"
  −
              + "}"+"}\n\n";
  −
}
  −
}
  −
addOnloadHook(delayedUpdateSpecialUpload);
  −
      
function includePage( name )
 
function includePage( name )