MediaWiki: Difference between revisions

From The Brain Rot MediaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:
'''MediaWiki:Common.css'''
'''MediaWiki:Common.css'''


===No tabs for certain pages===
This hides the [Discussion] tab on pages.
This hides the [view source] tab on protected pages.
<pre>
<pre>
<!-- No [view source] tab on protected pages -->
/* CSS placed here will be applied to all skins */
<?php global $wgTitle; if( $wgTitle->isProtected('edit') ) { ?>
#ca-talk {
      <style type="text/css">
    display: none !important;
        #ca-viewsource { display: none !important; }
}
      </style>
    <?php } ?>
</pre>
</pre>



Revision as of 23:29, 4 December 2024

Sidebar Typing MediaWiki:Sidebar in search bar, and validating with Enter.

MediaWiki:Common.css

This hides the [Discussion] tab on pages.

/* CSS placed here will be applied to all skins */
#ca-talk {
    display: none !important;
}





  • navigation
    • mainpage|mainpage-description
    • recentchanges-url|recentchanges
    • randompage-url|randompage
    • helppage|help-mediawiki
  • SEARCH
  • TOOLBOX
  • LANGUAGES