Forum:Preload template when uploading file

Hello. I was wondering if it were possible to allow preloaded text to appear when uploading an image. I would like the following text to appear when clicking "upload file", and I edited some things in MediaWiki, cleared my cache multiple times, and it doesn't seem to be working. Is there anything that should be added to MediaWiki or anything else to make this happen?

Summary
-- Meghunter99 Talk to me! 19:40, 26 August 2009 (UTC)


 * On Special:Upload, there's a drop down box to choose a license. I dont know if the new version of the software added support for this but it wasn't possible last time i've asked about it. — TulipVorlax 23:12, 26 August 2009 (UTC)


 * I am very well aware of the drop down menu of licenses, but that isn't the problem. The Canadian Miliatary forces wiki has this upload page where the template automatically preloads. -- Meghunter99 Talk to me! 23:18, 26 August 2009 (UTC)


 * At the end of their MediaWiki:Common.js we can see :

// ******************************************************************************************************* // ******************************** BEGINNING: JavaScript for Special:Upload ************************* // ******** Code courtesy of "User:Pinky49", created and coded specifically for Duty & Valour ******** // ******************************************** Thanks, Pinky! ******************************************* // *******************************************************************************************************

function preloadUploadDesc { if (wgPageName.toLowerCase != 'special:upload') { return; }

document.getElementById('wpUploadDescription').appendChild(document.createTextNode("==Summary==\n"));

}

// ******************************************************************************************************* // *********************************** END: JavaScript for Special:Upload **************************** // *******************************************************************************************************
 * I think you should ask them before copying... — TulipVorlax 23:31, 26 August 2009 (UTC)


 * Alternatively, you can use the following version that use jQuery, the new JS framework of Wikia.

$(document).ready(function {

if (wgPageName != 'Special:Upload') { return; }

$('#wpUploadDescription').append(document.createTextNode("==Description==\n"));

});
 * — TulipVorlax 00:31, 27 August 2009 (UTC)