User:Gryllida/js/afch2.js

$(document).ready( function {    // Wait for the page to be parsed    $(document).ready( function  { var link = mw.util.addPortletLink( 'p-cactions', '#', 'Review2', 'ca-afch2', 'Fail at afc reviewing'); $( link ).click( function ( event ) {           event.preventDefault;            doAfch2;        } ); } ); } );

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