MediaWiki:Group-sysop.js

/* */ /* from wikipedia:MediaWiki:Sysop.js */ /** Automatic deletion dropdown ******************************************************* *  *  Description: Looks for CSD/XFD/PROD templates on a page; if   *               one is present,picks up the deletion reason  that's    *               hidden on the template and tweaks the 'delete' tab *              link to preload that deletion summary. * Maintainers: Happy-melon */ addOnloadHook(function { if ( document.getElementById('ca-delete') && document.getElementById('delete-criterion') ) {    var link = document.getElementById('ca-delete').getElementsByTagName('A')[0];    var reason = document.getElementById('delete-reason').innerHTML;    link.setAttribute( 'href', link.getAttribute('href') + '&wpReason=' + reason ); } }) /* */