Difference between revisions of "Footer Examples"
Line 17: | Line 17: | ||
<li class="dropup">[[Welcome|Login]]</li> | <li class="dropup">[[Welcome|Login]]</li> | ||
</ul><ul id="footer-icons"><li id="footer-copyrightico"><span>[[Welcome|CC-by-sa]]</span></li><li id="footer-poweredbyico"><span>[[Welcome|Powered by MediaWiki]]</span><span>[[Welcome|Powered by Semantic MediaWiki]]</span></li></ul> | </ul><ul id="footer-icons"><li id="footer-copyrightico"><span>[[Welcome|CC-by-sa]]</span></li><li id="footer-poweredbyico"><span>[[Welcome|Powered by MediaWiki]]</span><span>[[Welcome|Powered by Semantic MediaWiki]]</span></li></ul> | ||
+ | }} | ||
+ | |||
+ | === Show Icons === | ||
+ | |||
+ | === Default === | ||
+ | |||
+ | By default, <code>footer-info</code> is hidden for all users, and <code>footer-custom</code> (with a login link as standard content) will only be shown to anonymous users. | ||
+ | |||
+ | This is how the footer looks for anonymous users: | ||
+ | {{footer-settings | ||
+ | |config-options=<pre style="font-size:10px"> | ||
+ | $wgTweekiSkinFooterIcons = true; | ||
+ | |content=<ul id="footer-places"> | ||
+ | <li id="footer-places-privacy">[[Tweeki:Privacy policy|Privacy policy]]</li> | ||
+ | <li id="footer-places-about">[[Tweeki:About|About Tweeki]]</li> | ||
+ | <li id="footer-places-disclaimer">[[Tweeki:General disclaimer|Disclaimers]]</li> | ||
+ | </ul><ul id="footer-custom"> | ||
+ | <li class="dropup">[[Welcome|Login]]</li> | ||
+ | </ul><ul id="footer-icons"><li id="footer-copyrightico">[[Datei:cc-by-sa.png|88]]</li><li id="footer-poweredbyico"><a href="//www.mediawiki.org/"><img src="/w/resources/assets/poweredby_mediawiki_88x31.png" alt="Powered by MediaWiki" srcset="/w/resources/assets/poweredby_mediawiki_132x47.png 1.5x, /w/resources/assets/poweredby_mediawiki_176x62.png 2x" width="88" height="31"></a><a href="https://www.semantic-mediawiki.org/wiki/Semantic_MediaWiki"><img src="/w/extensions/SemanticMediaWiki/includes/../res/images/smw_button.png" alt="Powered by Semantic MediaWiki" width="88" height="31"></a></li></ul> | ||
}} | }} | ||
Revision as of 20:32, 10 March 2017
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 |
---|---|---|
|
$wgTweekiSkinHideAll['footer-info'] = true; $wgTweekiSkinHideLoggedin['footer-custom'] = true; | |
RESULT |
Show Icons
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 |
---|---|---|
$wgTweekiSkinFooterIcons = true; |content=<ul id="footer-places"> <li id="footer-places-privacy">[[Tweeki:Privacy policy|Privacy policy]]</li> <li id="footer-places-about">[[Tweeki:About|About Tweeki]]</li> <li id="footer-places-disclaimer">[[Tweeki:General disclaimer|Disclaimers]]</li> </ul><ul id="footer-custom"> <li class="dropup">[[Welcome|Login]]</li> </ul><ul id="footer-icons"><li id="footer-copyrightico">[[Datei:cc-by-sa.png|88]]</li><li id="footer-poweredbyico"><a href="//www.mediawiki.org/"><img src="/w/resources/assets/poweredby_mediawiki_88x31.png" alt="Powered by MediaWiki" srcset="/w/resources/assets/poweredby_mediawiki_132x47.png 1.5x, /w/resources/assets/poweredby_mediawiki_176x62.png 2x" width="88" height="31"></a><a href="https://www.semantic-mediawiki.org/wiki/Semantic_MediaWiki"><img src="/w/extensions/SemanticMediaWiki/includes/../res/images/smw_button.png" alt="Powered by Semantic MediaWiki" width="88" height="31"></a></li></ul> }} === Settings for tweeki.thai-land.at === {{footer-settings |config-options=<pre style="font-size:10px"> $wgTweekiSkinHideAll['footer-icons'] = true; | ||
RESULT |
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 |
---|---|---|
|
$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 |
---|---|---|
|
$wgTweekiSkinHideLoggedin['footer-custom'] = false; $wgTweekiSkinHideAll['footer-places'] = true; $wgTweekiSkinHideAll['footer-icons'] = true; | |
RESULT |
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 |