Difference between revisions of "Footer Examples"

From Tweeki
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 33: Line 33:
 
}}
 
}}
  
=== Settings for tweeki.thai-land.at ===
+
=== Settings for tweeki.kollabor.at ===
  
 
{{footer-settings
 
{{footer-settings
Line 99: Line 99:
  
 
If you want complete control over the footer's content, you should use the <code>$wgTweekiSkinSpecialElements</code> configuration setting and overwrite the default function. Define your own function in <code>LocalSettings.php</code> or in an extension that directly outputs the HTML code for your footer.
 
If you want complete control over the footer's content, you should use the <code>$wgTweekiSkinSpecialElements</code> configuration setting and overwrite the default function. Define your own function in <code>LocalSettings.php</code> or in an extension that directly outputs the HTML code for your footer.
 
  
 
{{footer-settings
 
{{footer-settings

Latest revision as of 11:21, 25 June 2021

Default

By default, footer-info is hidden for all users, and footer-custom (with a login link as standard content) will only be shown to anonymous users.

This is how the footer looks for anonymous users:

CONFIG Messages Configuration Options
  • MediaWiki:Tweeki-footer: FOOTER
  • MediaWiki:Tweeki-footer-custom: LOGIN
$wgTweekiSkinHideAll['footer-info'] = true;
$wgTweekiSkinHideLoggedin['footer-custom'] = true;
RESULT

Show Icons

CONFIG Messages Configuration Options
$wgTweekiSkinFooterIcons = true;
RESULT

Settings for tweeki.kollabor.at

CONFIG Messages Configuration Options
 $wgTweekiSkinHideAll['footer-icons'] = true;
RESULT

Show footer-info

footer-info contains information about the time of the last edit and about the copyright.

You can additionally set $wgMaxCredits to a non-zero value to show one, some or all of the contributors to a page.


CONFIG Messages Configuration Options
 $wgTweekiSkinHideAll['footer-info'] = false;
RESULT

Add Custom Links

CONFIG Messages Configuration Options
  • MediaWiki:Tweeki-footer-custom: My Page
$wgTweekiSkinHideLoggedin['footer-custom'] = false;
RESULT

Show Only Custom Links

You can add as many links as you wish using standard button markup.

CONFIG Messages Configuration Options
  • MediaWiki:Tweeki-footer-custom: My Page,Another Page|Page Title
$wgTweekiSkinHideLoggedin['footer-custom'] = false;
$wgTweekiSkinHideAll['footer-places'] = true;
$wgTweekiSkinHideAll['footer-icons'] = true;
RESULT

Completely customize the footer

If you want complete control over the footer's content, you should use the $wgTweekiSkinSpecialElements configuration setting and overwrite the default function. Define your own function in LocalSettings.php or in an extension that directly outputs the HTML code for your footer.

CONFIG Messages Configuration Options
$wgTweekiSkinSpecialElements['FOOTER'] = 'myFooter';

function myFooter( $skin, $context ) {
    echo 'My custom footer.';
}
RESULT