Manual:Footer
Contents |
[edit]
As of 1.17 you can modify the list of links in the footer using the SkinTemplateOutputPageBeforeExec to modify the footerlinks arrays and setting new template keys for the values.
For example, putting this in your LocalSettings.php will add a new "Terms of Service" link after the disclaimer link.
$wgHooks['SkinTemplateOutputPageBeforeExec'][] = 'lfTOSLink'; function lfTOSLink( $sk, &$tpl ) { $tpl->set( 'termsofservice', $sk->footerLink( 'termsofservice', 'termsofservicepage' ) ); $tpl->data['footerlinks']['places'][] = 'termsofservice'; return true; }
From there you can put "Terms of Service" in MediaWiki:Termsofservice for the link's text and in MediaWiki:Termsofservicepage define the title of the page that you want the Terms of Service link to point to.
Remember it may take a while to update due to MediaWiki caches.
[edit] Before 1.17
Before Mediawiki 1.17, to add or remove items from the footer on your MediaWiki page, you must edit the individual skin.
For example: if you go in to MonoBook.php (located by default in the skins folder) you will find the following code:
$footerlinks = array( 'lastmod', 'viewcount', 'numberofwatchingusers', 'credits', 'copyright', 'privacy', 'about', 'disclaimer', 'tagline', );
In the above you can simply add and remove items from the array that you wish to appear in your footer. This must be done for each skin. It may take a while to update due to MediaWiki caches.
[edit] Customizing the Built-in items
You can also customize the individual build-in items by modifying certain pages or parameters:
- lastmod - edit MediaWiki:Lastmodifiedat (version 1.8 and after) or MediaWiki:Lastmodified (version 1.7 and before). If $wgMaxCredits is enabled, then edit MediaWiki:Lastmodifiedatby (verison 1.8 and after) or MediaWiki:Lastmodifiedby (version 1.7 and before). You may also want to edit MediaWiki:othercontribs that shows other contributors. (6518)
- viewcount - edit MediaWiki:Viewcount
- numberofwatchingusers - edit MediaWiki:Number of watching users pageview. This only appears if you also add
$wgPageShowWatchingUsers = true;to LocalSettings.php. - credits - If $wgMaxCredits is not zero it will display page editors
- copyright - edit MediaWiki:Copyright. The parameter $1 on that page is replaced with a link to the details of copyright for your wiki. In LocalSettings.php $wgRightsText for the link text and set either $wgRightsPage or $wgRightsUrl with the location of a wiki page or external URL.
- privacy - this is a link only. Edit MediaWiki:Privacy for the link text and MediaWiki:Privacypage for the wiki page to which to link.
- about - this is a link only. Edit MediaWiki:Aboutsite for the link text and MediaWiki:Aboutpage for the wiki page to which to link.
- disclaimer - this is a link only. Edit MediaWiki:Disclaimers for the link text and MediaWiki:Disclaimerpage for the wiki page to which to link.
- tagline - not currently used in the footer
[edit] Images
- See $wgFooterIcons.