Jump to content

MediaWiki:Gadget-NamespaceNotice.js: Difference between revisions

From Wikimedia Foundation Governance Wiki
Content deleted Content added
MZMcBride (talk | contribs)
updated code
MZMcBride (talk | contribs)
fixed code
Line 1: Line 1:
/* Show a notice inside <div id="contentSub"></div> on pages in the Talk namespace */
/* Show a notice inside <div id="contentSub"></div> on pages in the Talk namespace */
if ( mw.config.get( 'wgNamespaceNumber' == 1) ) {
if ( mw.config.get( 'wgNamespaceNumber' ) == 1 ) {
$('#contentSub').html('<div>hello</div>');
$('#contentSub').html('<div>hello</div>');
}
}

Revision as of 01:41, 30 April 2012

/* Show a notice inside <div id="contentSub"></div> on pages in the Talk namespace */
if ( mw.config.get( 'wgNamespaceNumber' ) == 1 ) {
  $('#contentSub').html('<div>hello</div>');
}