Manual talk:Footer

Jump to navigation Jump to search

Add normal text to footer[edit]

I'd like to add a completely different text in the footer, something like "i love u" (along with "disclaimer", "lastmod").
I looked here: "Footer" and I found out how to change "$wgRightsText", but it's not what I'm looking for (it displays "Content is available under" before the text).
I've tried this way too, but it doesn't work either:
$footerlinks = array( 'info' => array( 'i love u', "i love u", 'numberofwatchingusers', 'copyright', ), );
I'd like to simply add some more text to this footer...seems easy, but I may have my blond moment...
Thanks! ps: Im running MW 1.16...

Bump. I'd also love to do this, but using MW1.26

Footer not wrapping[edit]

Using MW1.6.8 and when viewed through IE7 the footer links are all shown in one long line. Wikipedia doesnt have this problem. I thought I would disable the poweredby icon but I'm not sure how. Any suggestions?

I disabled the nowrap line inside main.css and it now folds nicely. Look for the comment 'hide from incapable browsers' and comment the next line out.
(See First question below. --Thnidu 23:07, 5 February 2010 (UTC))

More generic solution?[edit]

The manual mentions: "For example if you go in to MonoBook.php you will find the following code" and "this must be done for each template". Both statements are true, but the code in the various skins are not identical. I'm not familiar with php, so what I could find is the '$footerlinks' solution in Monobook and something to do with 'bottomLinks' in CologneBlue, Nostalgia and 'Standard'. However, I'm not sure how to modify this code, and I have no idea how other skins work. It would be nice if someone could describe this topic in more detail.

Ultimately my goal would be to add something to the footer for all skins. I definitely want to enable the copyright statement (which I can probably do in LocalSettings, I'll look it up), but it would also be nice to add some plain text, e.g. like Wikipedia has ("Wikipedia® is a registered trademark...").


$footerlinks = array(

       'lastmod', 'viewcount', 'numberofwatchingusers', 'credits', 'copyright',
       'privacy', 'about', 'disclaimer', 'tagline',


Where is this? I can't find it in Monobook.php.Dagoth Ur, Mad God 01:10, 26 July 2008 (UTC)

For one thing, it's MonoBook.php and it's in there. - JCM

Not present in monobook.php ver. 1.18.1 - BW


HOW can I do the same in Monobook.js ??????? 01:36, 30 January 2011 (UTC)

External links?[edit]

I'd like to set up an external disclaimers-page. Can I set the URL as it is in *:Disclaimerpage? And (sorry I'm new in MediaWiki) what's up with other languages (im my case: german) is the name of those "setting-pages" translated? And if it is... how can I find it? Where is the name defined? -- Deus Figendi

What's credits?[edit]

"credits" is in the php code line, but what is it? No manual page, and a search for "credits" gives 120 hits, the first 20 of which are irrelevant: e.g.,

  • The Contribution Credits extension adds...
  • Also, be sure to include a credits block in...

--Thnidu 22:53, 5 February 2010 (UTC)

It seems to be related to Manual:$wgMaxCredits --Frantik 23:26, 15 May 2010 (UTC)

First question[edit]

The first question on this page didn't have a level-2 header, so the answer to it -- which did -- came after the TOC. I rearranged it -- hope this is OK. --Thnidu 23:07, 5 February 2010 (UTC)

Add image to footer?[edit]

Hi all,

I run MW1.16 and I've tried to add a normal image to my footer, but I don't get how to. This following code (in Vector.php) is wrong, but does someone know why?

$footerlinks = array([[File:MyImage.jpg]], 'info' => array('lastmod', 'copyright',),'places' => array('disclaimer',),);

and could I fix it? Thx a lot!

This array is not the same in 1.17.0[edit]

It would be nice if these instructions could be updated for 1.17.0. Still can't figure out where the array is to add a link to the footer. Went to MonoBook.php, but the footer text looks different now.

Bad information for 1.17[edit]

This recommendation in a manual here to modify the core code in SkinTemplate is absolutely horrible. That footerlinks array was added because it meant you could use the existing SkinTemplateOutputPageBeforeExec hook to modify the array without modifying any core code or skin code. Suggesting to modify core code that was added to make editing skin code unnecessary is ridiculously counter-productive. Dantman 20:58, 1 September 2011 (UTC)

cant you put it back to how it was before? — Preceding unsigned comment added by (talkcontribs) 11:46, 21 October 2011
You wan't me to undo instructions on how to properly add footerlinks and replace it with the suggestion to modify core code? Can you give me a valid reason for that? 19:27, 21 October 2011 (UTC)
I mean revert the code back to the old way to change the footer so I dont need to add a load of code to my local settings or having to edit skin files just to be able to remove a link. 15:52, 7 November 2011 (UTC)
Its really hard to customize a footer atm if you are not a programmer. Could anyone make better instructions how to do it? — Preceding unsigned comment added by (talkcontribs) 19:10, 13 March 2013‎
Unfortunately that's just the situation right now. There was to much legacy coded into the skin templates to make footer links friendly to modify. Making footer links friendly to use will require a more involved and disruptive change in the future. Daniel Friesen (Dantman) (talk) 00:09, 14 March 2013 (UTC)
Thank you very much for a reply. So this feature would not be available in nearby future?
Not sure about near future. It's a non trivial code change and I don't have the time to work on it. Daniel Friesen (Dantman) (talk) 17:54, 16 March 2013 (UTC)

restored some information[edit]

the new instructions were too technical and hard to understand. The new removed/minimized how to change the footer before 1.16.

So I merged and added back much of those edits here: [1]

Igottheconch 22:39, 13 January 2012 (UTC)


Is there a simple way to change border colors for the footer in MW 1.18? -- 12:29, 9 March 2012 (UTC)

I guess you are talking about the MonoBook skin. Adding this to "MediaWiki:Monobook.css" will e.g. change them to orange:
div#footer {
  border-bottom: 1px solid #ffa500;
  border-top: 1px solid #ffa500;
Just change the hex (#......) to the colour you like. --[[kgh]] (talk) 20:45, 23 June 2014 (UTC)

How do I remove a link from the footer?[edit]

The instruction is for adding a link. Alright! But How do I remove the disclaimer link in the footer?

Just remove the word "Disclaimer" from system message "MediaWiki:Disclaimers" (as the sysop user). To delete the system message will however not work. --[[kgh]] (talk) 20:35, 23 June 2014 (UTC)
This works, but is there a hook with which one can remove footer link (like disclaimer, privacy policy) without making changes to the default skin's file?
You do not have to do this. Just remove the text form the respective system messages on the wiki itself. --[[kgh]] (talk) 14:03, 5 May 2017 (UTC)

How do you define the title of the page that you want the Terms of Service link to point to?[edit]

What do you put on MediaWiki:Termsofservice page to do that?

The name is of the system message is "MediaWiki:Termsofservicepage" (no blank) and you just add the title of the page the link should point to to this page. If this page is not in the main namespace you just prepend the namespace prefix like e.e. Project:Terms_of_Service. --[[kgh]] (talk) 13:03, 5 May 2017 (UTC)

Adding 2 or more links >1.17[edit]

Is there a way of adding more than 1 extra link to the footer? How would this code need to get changed? Simply copying this blanks the wiki.

$wgHooks['SkinTemplateOutputPageBeforeExec'][] = 'lfTOSLink';
function lfTOSLink( $sk, &$tpl ) {
	$tpl->set( 'termsofservice', $sk->footerLink( 'termsofservice', 'termsofservicepage' ) );
	$tpl->data['footerlinks']['places'][] = 'termsofservice';
	return true;

Correct subsitution of "termsofservice" and "termsofservicepage" goes without saying. --Zabien (talk) 20:00, 10 June 2015 (UTC)

A bit late to answer but perhaps this helps other. Just add the hook twice or more times into you "LocalSettings.php" file. Cheers --[[kgh]] (talk) 12:58, 5 May 2017 (UTC)

Show new links in Special:AllMessages[edit]

Another small question: How can I get the new, extra added footer links (via the code with SkinTemplateOutputPageBeforeExec to show up under Special:AllMessages? Or is there a reason for why they shouldn't? --Zabien (talk) 20:09, 10 June 2015 (UTC)

Good question. I cannot tell. However it shows up on "Special:PrefixIndex" which should be good enough to find them once content to the custom system messages was added. --[[kgh]] (talk) 13:05, 5 May 2017 (UTC)

More than one extra link[edit]

@Reedy: This change is fine with me, however this causes parsing errors like e.g. Parse error: syntax error, unexpected '$wgHooks' (T_VARIABLE) in ... for the second footer link I would like to add. So how do I add more than one extra footer link? Cheers --[[kgh]] (talk) 20:56, 23 October 2017 (UTC)

Never mind. I found the error. Forgot to add the trailing semicolon. One of these days ... :| --[[kgh]] (talk) 20:58, 23 October 2017 (UTC)