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