|
|
(3 intermediate revisions by one other user not shown) |
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. */ |
− | /* <nowiki> */
| |
− | function FillUploadForm() {
| |
− | uploadDesc = document.getElementById('wpUploadDescription');
| |
− | uploadDesc.rows = 12;
| |
− | if(wgCanonicalSpecialPageName == "Upload" && document.getElementById('wpDestFile').value == "") {
| |
− | uploadDesc.innerHTML = "<!-- Please categorize your uploads! An example is right below; just uncomment it to get started! -->\n<!-- [[Category:Ryzom Forge images]] -->\n\n{{Information\n|description=\n|source=\n|date=\n|author=\n|permission=\n|other_versions=\n|tags=\n}}";
| |
− | }
| |
− | }
| |
− | addOnloadHook( FillUploadForm );
| |
− | /* </nowiki> */
| |