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 .
// [[:de:MediaWiki:Gadget-Extra-Editbuttons.js]] – diese Zeile bitte mitkopieren
document . write ( '<script type="text/javascript" src="http://de.wikipedia.org/w/index.php?title='
+ 'MediaWiki:Gadget-Extra-Editbuttons.js&action=raw&ctype=text/javascript&dontcountme=s"><\/script>' );
//
// Insert a personalized Texttemplate into the Special:Upload edit box.
//
function delayedUpdateSpecialUpload ()
{
var editbox = document . getElementById ( 'wpUploadDescription' );
editbox . value = "{" + "{Information\n"
+ "|Description={" + "{de|}" + "} {" + "{en|}" + "}\n"
+ "|Source={" + "{own}" + "}\n"
+ "|Date=\n"
+ "|Author=[[User:Richard Bartz|Richard Bartz]]\n"
+ "|Permission=See license\n"
+ "|other_versions=\n"
+ "}" + "}\n\n"
+ "== Licensing ==\n"
+ "{" + "{self|GFDL|cc-by-sa-2.5|author=I, [[User:Richard Bartz|Richard Bartz]]}" + "}" ;
}
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-uploadbtn' ). firstChild . href = uploadURL ;
// preload input form
if ( window . location . href == uploadURL ) setTimeout ( "delayedUpdateSpecialUpload()" , 500 );
}
$ ( setSpecialUploadTemplate );