Open main menu
Home
Random
Log in
Settings
About BrineRIS Dataspace
Disclaimers
BrineRIS Dataspace
Search
Changes
← Older edit
MediaWiki:Common.js
(view source)
Revision as of 10:49, 29 March 2023
331 bytes added
,
10:49, 29 March 2023
show mw-slot-wrapper-header / footer in namespaces different from Main
Line 7:
Line 7:
//load ImageMapHighlighter
//load ImageMapHighlighter
mw.loader.load( '/w/index.php?title=MediaWiki:ImageMapHighlighter.js&action=raw&ctype=text/javascript' );
mw.loader.load( '/w/index.php?title=MediaWiki:ImageMapHighlighter.js&action=raw&ctype=text/javascript' );
+
+
if (mw.config.get('wgNamespaceNumber')!==0) {
+
$("#mw-slot-wrapper-header").attr("style", "display: revert"); /* hidden in MediaWiki:Common.css, show in namespaces different from Main */
+
$("#mw-slot-wrapper-footer").attr("style", "display: revert"); /* hidden in MediaWiki:Common.css, show in namespaces different from Main */
+
}
Simon Stier
Bots
,
Bureaucrats
,
Interface administrators
,
Administrators (Semantic MediaWiki)
,
Curators (Semantic MediaWiki)
,
Editors (Semantic MediaWiki)
,
Administrators
,
Upload Wizard campaign editors
3,926
edits