1 2 3 4 5 6 7 8 9 10 11 12
/* * JavaScript for WikiEditor Template Editor */ $( document ).ready( function() { // Disable in template namespace if ( mw.config.get( 'wgNamespaceNumber' ) == 10 ) { return true; } // Add template editor module $( 'textarea#wpTextbox1' ).wikiEditor( 'addModule', 'templateEditor' ); });