Manual talk:Footer

From MediaWiki.org
Jump to: navigation, search

Contents

[edit] Footer not wrapping

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))

[edit] More generic solution?

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...").

[edit] Whear?

$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

[edit] Javascript?

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

[edit] External links?

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

[edit] What's credits?

"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)

[edit] First question

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)

[edit] Add normal text to footer

Hi!
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...

[edit] Add image to footer?

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!

[edit] This array is not the same in 1.17.0

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.

[edit] Bad information for 1.17

This recommendation in a mw.org 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? —The preceding unsigned comment was added by 146.227.1.15 (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? 96.48.217.226 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. 146.227.1.15 15:52, 7 November 2011 (UTC)

[edit] restored some information

the new instructions were to 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)

Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox