MediaWiki:Gadget-NamespaceNotice.js

/* Show a notice inside on pages in the Talk namespace */ if ( ( mw.config.get( 'wgNamespaceNumber' ) == 1 ) &&    ( mw.config.get( 'wgAction') == 'view' ) &&     ( mw.config.get( 'wgUserName' ) == null ) ) { var text = $.getJSON(       wgScriptPath + '/api.php?',        {            action: 'parse',            prop: 'text',            page: 'Template:Contribute',            format: 'json'        },        function( data ) {            if ( data ) {                var text = data.parse.text['*'];                $('#contentSub').html(text).css({'margin':'1em 0', 'color':'#000'});            }        }  ) }