| Line 1: |
Line 1: |
| | /* Any JavaScript here will be loaded for all users on every page load. */ | | /* Any JavaScript here will be loaded for all users on every page load. */ |
| | | | |
| | + | // |
| | + | // 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&uselang=ownwork) |
| | + | { |
| | + | 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 ) |
| Line 99: |
Line 117: |
| | | | |
| | addOnloadHook( createCollapseButtons ); | | addOnloadHook( createCollapseButtons ); |
| − |
| |
| − | //
| |
| − | // 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=[\n"
| |
| − | + "|Permission=See license\n"
| |
| − | + "}"+"}\n\n";
| |
| − | }
| |
| − | addOnloadHook(delayedUpdateSpecialUpload);
| |
| | | | |
| | /** Test if an element has a certain class ************************************** | | /** Test if an element has a certain class ************************************** |