User:Mr. Stradivarius/common.js

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

// Make sure the utilities module is loaded (will only load if not already) mw.loader.using( 'mediawiki.util', function {    // Wait for the page to be parsed    $(document).ready( function  { var link = mw.util.addPortletLink( 'p-caction', '#', 'Wikify', 'ca-wikify', 'Mark for wikification'); $( link ).click( function ( event ) {           event.preventDefault;            doQwikify;        } ); } ); } );