User:Microchip08/vector.js

var aband = { tag: function { $('#aband').fadeOut; api( wgPageName.replace( "_", " " ) ).setDefaultSummary( 'Proposing deletion: tagging ' ).getPage.lift( function ( pageText ) {       	return '\n' + pageText;    	} ).savePage.exec; jsMsg( 'Template added' ); },	init: function { var t = document.getElementById('t-whatlinkshere'); if (!t) return; var li = document.createElement('li'); var a = document.createElement('a'); a.setAttribute('href', 'javascript:aband.tag'); a.id = 'aband'; a.appendChild(document.createTextNode('tag abandoned')); li.appendChild(a); t.parentNode.appendChild(li); } }

$(aband.init);