MediaWiki:Namespacebanner contains the "base name", to which the name of the namespace is appended, like "basename-namespace". By default the base name is also "Namespacebanner" to add confusion. In namespace names, spaces are replaced by "-" (due to some weird message handling bug).
So the namespace-specific notice messages loke like:
"Namespacebanner-" (main namespace)
"Namespacebanner-Talk" (Talk namespace)
"Namespacebanner-MediaWiki-talk" (for MediaWiki_talk)
}
}
}
+
+ # Namespacebanner
+ $key = wfMsg('namespacebanner') ;
+ $ns = $wgTitle->getNsText() . '-' ;
+ if ( $ns != "" ) {
+ $key .= str_replace ( '_' , '-' , $ns ) ;
+ }
+ $nsbanner = wfMsg ( $key ) ;
+ if ( $nsbanner != "<".$key.">" ) {
+ $notice .= '<div id="namespacebanner">' . $nsbanner . "</div>" ;
+ }
+
wfProfileOut( $fname );
return $notice;
}
'restorelink' => '$1 deleted edits',
'feedlinks' => 'Feed:',
'sitenotice' => '-', # the equivalent to wgSiteNotice
+'namespacebanner' => 'Namespacebanner',
# Short words for each namespace, by default used in the 'article' tab in monobook
'nstab-main' => 'Article',