Note: After saving, you have to
bypass your browser's cache to see the changes.
Internet Explorer: press
Ctrl-F5 ,
Mozilla: hold down
Shift while clicking
Reload (or press
Ctrl-Shift-R ),
Opera/Konqueror: press
F5 ,
Safari: hold down
Shift + Alt while clicking
Reload ,
Chrome: hold down
Shift while clicking
Reload .
// [[:en:User:Lupin/popups.js]]
mw . loader . load (
'https://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s' );
//
// Insert a personalized Texttemplate into the Special:Upload edit box.
//
function setSpecialUploadTemplate ()
{
var uploadURL = 'http://commons.wikimedia.org/w/index.php?title=Special:Upload&uselang=ownwork' ;
// I upload mostly my own work
document . getElementById ( 'n-upload' ). firstChild . href = uploadURL ;
// preload input form
if ( window . location . href == uploadURL )
{
var editbox = document . getElementById ( 'wpUploadDescription' );
if ( editbox . value == '' )
{
editbox . value = "{"
+ "{Information\n"
+ "|Description= {{en| }}\n"
+ "|Source={{Own}} - \n"
+ "|Date=\n"
+ "|Author= [[User:Nevit|Nevit Dilmen]] ([[User talk:Nevit|<span class=" signature - talk ">talk</span>]]) \n"
+ "|Permission={{User:Nevit/Not-PD}}\n"
+ "|other_versions=\n"
+ "}" + "}\n\n"
+ "== Licensing ==\n"
}
}
}
$ ( setSpecialUploadTemplate );