Configuration: Difference between revisions

From Tweeki
Jump to: navigation, search
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Default Configuration Options ==
This options can be set in LocalSettings.php (after the inclusion of tweeki.php):


<code><nowiki>$wgTweekiSkinHideAll = array();</nowiki></code>
:This variable can be used to hide elements from everybody. The [[#Tweekihide parser function|<nowiki>{{#tweekihide}}</nowiki> parser function]] will add to this array. Only hiding of elements that are also listed in <nowiki>$wgTweekiSkinHideable</nowiki> will actually be put into effect.
<code><nowiki>$wgTweekiSkinHideable = array( 'firstHeading' );</nowiki></code>
:In order to prevent abuse, only elements listed in this array are allowed to be hidden by the [[#Tweekihide parser function|<nowiki>{{#tweekihide}}</nowiki> parser function]].
<code><nowiki>$wgTweekiSkinHideAnon = array();</nowiki></code>
:Elements in this array will be hidden for users who are not logged in.
<code><nowiki>$wgTweekiSkinHideNonPoweruser = array( 'TOOLBOX', 'EDIT-EXT-special' );</nowiki></code>
:Elements in this array will only be shown to users who have chosen in their preferences to be "powerusers".
<code><nowiki>$wgTweekiSkinFooterIcons = true;</nowiki></code>
:If set to false, the icons in the footer will be replaced by text aquivalents.
== Messages ==
[[Mediawiki:Tweeki-navbar-brand]]
:Content of the "brand" link.
[[Mediawiki:Tweeki-navbar-left]]
:Content of the left side of the navbar.
[[Mediawiki:Tweeki-navbar-right]]
:Content of the right side of the navbar.
[[Mediawiki:Tweeki-subnav]]
:Content of the sub navigation. Set to "-" to not show a sub navigation.
[[Mediawiki:Tweeki-sidebar]]
:Content of the sidebar.
[[Mediawiki:Tweeki-login]]
:Text used for the login link.
[[Mediawiki:Tweeki-toolbox]]
:Custom link content for toolbox dropdown. (e.g. <code><nowiki><i class="icon icon-cog"></i></nowiki></code>)
== Tweekihide parser function ==
Usage: <code><nowiki>{{#tweekihide:element1|element2|...}}</nowiki></code>
This parser function can be used to hide elements from a specific page (e.g. the main page).
You can use the following elements:
* page sections: navbar, navbar-brand, navbar-left, navbar-right, subnav, sidebar, firstHeading, footer
* navigational elements: EDIT, EDIT-EXT, PAGE, TOOLBOX, VARIANTS, VIEW, ACTIONS, PERSONAL, LOGIN, SIDEBAR, LANGUAGES, SEARCH, LOGO, FIRSTHEADING, TOC

Latest revision as of 11:55, 10 February 2015