1,621 bytes removed ,  11:48, 21 August 2010
no edit summary
Line 48: Line 48:  
// "reupload" links on image pages to go to the basic form.
 
// "reupload" links on image pages to go to the basic form.
 
if (wgNamespaceNumber == 6) importScript ('MediaWiki:UploadFormLinkFixer.js');
 
if (wgNamespaceNumber == 6) importScript ('MediaWiki:UploadFormLinkFixer.js');
  −
//Fix "Upload file" link when using the secure proxy
  −
//This is a workaround that can be removed when bug 10843 is fixed
  −
addOnloadHook(function()
  −
{
  −
    if (document.getElementById("t-upload"))
  −
    {
  −
        document.getElementById("t-upload").getElementsByTagName("a")[0].href = wgArticlePath.replace("$1", "Help:Upload")
  −
    }
  −
})
  −
  −
//
  −
// 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 )