User:Sethvogel/myscript.js

// Qwikify // 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  {

//see below "Portlets" subsection // A portlet adds custom menus and tabs var link = mw.util.addPortletLink( 'p-cactions', '#', 'Wikify', 'ca-wikify', 'Usul'); // args(-,-,name,id,mouseover) $( link ).click( function ( event ) { // jQuery .click listens for clicks           event.preventDefault; // prevent the default action when a link is clicked, i.e. suppress following the link            doQwikify; // "edits the edit box"			function doQwikify {			    document.editform.wpTextbox1.value = "{" + "{wikify}}\n\n" + document.editform.wpTextbox1.value; // separate { so it doesn't expand?			    document.editform.submit;			}        } ); } ); } );