MediaWiki: Difference between revisions

From The Brain Rot MediaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(34 intermediate revisions by the same user not shown)
Line 1: Line 1:
__TOC__
== SideBar ==
'''Sidebar'''  
'''Sidebar'''  
Typing MediaWiki:Sidebar in search bar, and validating with Enter.
Typing MediaWiki:Sidebar in search bar, and validating with Enter.


'''Common.css'''  
This hides the tools from the sidebar
Typing MediaWiki:Common.css in search bar, and validating with Enter.
<syntaxhighlight lang="python" line>
#p-tb { display: none; }
</syntaxhighlight>
 
== Footer ==
'''Poweredby logo'''
This hides the Poweredby logo on pages.
 
<syntaxhighlight lang="python" line>
# Edit LocalSettings.php and add line:
unset( $wgFooterIcons['poweredby'] );
</syntaxhighlight>
 
This hides the footer (Vector skin)
 
<syntaxhighlight lang="python" line>
/* 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; }
</syntaxhighlight>
 
<syntaxhighlight lang="php" line="1">
# 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();
    }
};
</syntaxhighlight>
 
Now create a [https://nas.avweert.local/mediawiki/index.php?title=MediaWiki:Footer-tagline Footer-tagline] page
 
== Header ==
 
Disabling section links
<syntaxhighlight lang="python" line="1">
.mw-editsection { display: none;}
</syntaxhighlight>


This hides the [Discussion] tab on pages.
This hides the [Discussion] tab on pages.
<pre>
<syntaxhighlight lang="python" line>
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */
#ca-talk {
#ca-talk {
     display: none !important;
     display: none !important;
}
}
</pre>This hides the footer (Vector skin)
</syntaxhighlight>


<pre>
== Custom CSS ==
/* CSS placed here will be applied to all skins */


#footer-places-privacy { display: none; }
Typing '''MediaWiki:Common.css''' in search bar, and validating with Enter.
#footer-places-about { display: none; }
#footer-places-disclaimer { display: none; }


/* Or remove them all*/
Typing '''MediaWiki:Group-user.css''' in search bar, and validating with Enter.
#footer-places { display: none; }
</pre>


== MainPage ==
'''Mainpage'''  
'''Mainpage'''  
Typing MediaWiki:Mainpage in search bar, and validating with Enter.  
Typing [[Main Page|MediaWiki:Mainpage]] in search bar, and validating with Enter.


'''Poweredby logo'''
== '''Extension''' ==
This hides the Poweredby logo on pages.
To hide info for users, I have installed [[mediawikiwiki:Extension:UserFunctions|UserFunctions]]
<pre>
# Edit LocalSettings.php and add line:  


unset( $wgFooterIcons['poweredby'] );
To modify and hide some info/links on the sidebar I have installed [[mediawikiwiki:Extension:GroupsSidebar|GroupsSidebar]]
</pre>


To Search Engine Optimisation I have installed [[mediawikiwiki:Extension:WikiSEO|WikiSEO]]


* navigation
== Search Engine Indexing ==
** mainpage|mainpage-description
Typing MediaWiki:Robots.txt in search bar, and validating with Enter.
** recentchanges-url|recentchanges
** randompage-url|randompage
** helppage|help-mediawiki
* SEARCH
* TOOLBOX
* LANGUAGES

Latest revision as of 16:15, 12 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; }

Footer

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

To Search Engine Optimisation I have installed WikiSEO

Search Engine Indexing

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