MediaWiki: Difference between revisions
		
		
		
		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 [view source] tab on protected pages.  | |||
<  | <pre>  | ||
<!-- No [view source] tab on protected pages -->  | |||
<?php global $wgTitle; if( $wgTitle->isProtected('edit') ) { ?>  | |||
      <style type="text/css">  | |||
        #ca-viewsource { display: none !important; }  | |||
      </style>    | |||
    <?php } ?>   | |||
</pre>  | |||
Revision as of 23:24, 4 December 2024
Sidebar Typing MediaWiki:Sidebar in search bar, and validating with Enter.
MediaWiki:Common.css
No tabs for certain pages
This hides the [view source] tab on protected pages.
<!-- No [view source] tab on protected pages -->
<?php global $wgTitle; if( $wgTitle->isProtected('edit') ) { ?>
      <style type="text/css">
        #ca-viewsource { display: none !important; }
      </style> 
    <?php } ?> 
- navigation
- mainpage|mainpage-description
 - recentchanges-url|recentchanges
 - randompage-url|randompage
 - helppage|help-mediawiki
 
 - SEARCH
 - TOOLBOX
 - LANGUAGES