Last modified: 2011-11-08 17:34:24 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T34235, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32235 - Editing the footer does not work
Editing the footer does not work
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.17.x
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-11-07 15:47 UTC by sophmediawiki
Modified: 2011-11-08 17:34 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description sophmediawiki 2011-11-07 15:47:29 UTC
I would like to add these 4 seperate lines to my footer:

    This page was last modified on {the date} at {the time}.

    Text is available under the {CC-BY}; additional terms may apply. See {some other link} for details.

    {my wiki is ran by blah blah blah}

    Contact us Privacy policy About {our site} Disclaimers


However, the new footer settings do not allow you to be able to change it. Adding the code on [[Manual:Footer]] will leave you with <termsofservice> in the footer.

Is there a way to customize the footer to the above and can the current way be reverted in the next release?
Comment 1 Brion Vibber 2011-11-07 18:19:13 UTC
"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."

Did you do that part? It works for me...
Comment 2 Daniel Friesen 2011-11-08 17:29:55 UTC
 The stuff on [[mw:Manual:Footer]] is obviously an example of how to do it, adapt the technique to whatever you need out of it.

Vector gives each group a separate list, if you want multiple lines you can add new groups to the first level of the array. And instead of using $sk->footerLink if you want something other than a link you can just use a string of html.

$set->data['footerlinks'] = array(

);
Comment 3 Daniel Friesen 2011-11-08 17:34:24 UTC
 The stuff on [[mw:Manual:Footer]] is obviously an example of how to do it, adapt the technique to whatever you need out of it.

Vector gives each group a separate list, if you want multiple lines you can add new groups to the first level of the array. And instead of using $sk->footerLink if you want something other than a link you can just use a string of html.

$tpl->set( 'runby', 'That text about who the wiki is run by.' );
$tpl->set( 'contactus', $sk->footerLink( 'contactus', 'contactuspage' ) );
$tpl->data['footerlinks'] = array(
  'lastmod' => array( 'lastmod' ),
  'copyright' => array( 'copyright' ),
  'runby' => array( 'runby' ),
  'places' => array( 'contactus' ) + $tpl->data['footerlinks']['places'],
);

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links