MediaWiki:Upload.js

function loadInformationTemplate { if (document.getElementById) { uploadDescription = document.getElementById('wpUploadDescription'); uploadDescription.rows = 12; if (uploadDescription.value == '') switch (wgUserLanguage) { case 'de': uploadDescription.value = '{' + '{Information\n|Description=\n|Author=[' + '[User:' + wgUserName + '|' + wgUserName + ']]\n|Date=\n|Source=Own work\n' + '|Permission=\n|other_versions=\n}}\n\n[' + '[Category:Name des Ortes]]'; break; default: uploadDescription.value = '{' + '{Information\n|Description=\n|Author=[' + '[User:' + wgUserName + '|' + wgUserName + ']]\n|Date=\n|Source=Own work\n' + '|Permission=\n|other_versions=\n}}\n\n[' + '[Category:Site Name]]'; } } } addOnloadHook(loadInformationTemplate);