Difference between revisions of "Configuration"

From Tweeki
Jump to: navigation, search
 
(21 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.
 
 
== Tweekihide parser function ==
 
 
Usage: <code><nowiki>{{#tweekihide:element1|element2|...}}</nowiki></code>
 

Latest revision as of 11:55, 10 February 2015