User:A09/commons.js

function doQwikify { document.editform.wpTextbox1.value = "{" + "{wikify}}\n\n" + document.editform.wpTextbox1.value; document.editform.submit; }

mw.loader.using( 'mediawiki.util', function {

// Wait for the page to be parsed $( document ).ready( function {

//see below "Portlets" subsection var link = mw.util.addPortletLink( 'p-cactions', '#', 'Wikify', 'ca-wikify', 'Mark for wikification'); $( link ).click( function ( event ) {           event.preventDefault;            doQwikify;

} );   } ); } );