Thread:Project:Support desk/How to reorder links in the footer and include HTML?/reply (2)

Ohh, I never knew I could do that.

I feel that what I have done is not that understandable, so I shall explain it here:

$wgHooks['SkinTemplateOutputPageBeforeExec'][] = 'lfTOSLink'; function lfTOSLink( $sk, &$tpl ) { $tpl->set( 'copyright-notice', $sk->footerLink( 'copyright-notice', 'copyright-noticepage' ) ); $tpl->data['footerlinks']['places'][] = 'copyright-notice'; return true; }
 * In LocalSettings.php I have added:


 * On the page MediaWiki:Copyright-notice, I added the text "test" which shows on the footer (image on commons)


 * I added the text what is on MediaWiki:Wikimedia-copyright to MediaWiki:Copyright-notice and it produced this: Image on commons

I would like that footer to do what MediaWiki:Wikimedia-copyright does and for it to be in a different position.

Hopefully that made sense.