MediaWiki: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
#p-tb { display: none; } | #p-tb { display: none; } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Footer == | == Footer == | ||
Line 74: | Line 68: | ||
'''Mainpage''' | '''Mainpage''' | ||
Typing [[Main Page|MediaWiki:Mainpage]] in search bar, and validating with Enter. | Typing [[Main Page|MediaWiki:Mainpage]] in search bar, and validating with Enter. | ||
== '''Extension''' == | |||
To hide info for users, I have installed [[mediawikiwiki:Extension:UserFunctions|UserFunctions]] | |||
To modify and hide some info/links on the sidebar I have installed [[mediawikiwiki:Extension:GroupsSidebar|GroupsSidebar]] | |||
== Search Engine Indexing == | == Search Engine Indexing == | ||
Typing MediaWiki:Robots.txt in search bar, and validating with Enter. | Typing MediaWiki:Robots.txt in search bar, and validating with Enter. |
Revision as of 09:25, 7 December 2024
SideBar
Sidebar Typing MediaWiki:Sidebar in search bar, and validating with Enter.
This hides the tools from the sidebar
#p-tb { display: none; }
Poweredby logo This hides the Poweredby logo on pages.
# Edit LocalSettings.php and add line:
unset( $wgFooterIcons['poweredby'] );
This hides the footer (Vector skin)
/* remove some */
#footer-places-privacy { display: none; }
#footer-places-about { display: none; }
#footer-places-disclaimer { display: none; }
/* Or remove them all*/
#footer-places { display: none; }
# Edit LocalSettings.php and add line:
$wgHooks['SkinAddFooterLinks'][] = function ( Skin $skin, string $key, array &$footerlinks ) {
if ( $key === 'info' ) {
$footerlinks['tagline'] = $skin->msg( 'footer-tagline' )->parse();
}
};
Now create a Footer-tagline page
Header
Disabling section links
.mw-editsection { display: none;}
This hides the [Discussion] tab on pages.
/* CSS placed here will be applied to all skins */
#ca-talk {
display: none !important;
}
Custom CSS
Typing MediaWiki:Common.css in search bar, and validating with Enter.
Typing MediaWiki:Group-user.css in search bar, and validating with Enter.
MainPage
Mainpage Typing MediaWiki:Mainpage in search bar, and validating with Enter.
Extension
To hide info for users, I have installed UserFunctions
To modify and hide some info/links on the sidebar I have installed GroupsSidebar
Search Engine Indexing
Typing MediaWiki:Robots.txt in search bar, and validating with Enter.