Difference between revisions of "Parser Functions"

From Tweeki
Jump to: navigation, search
Line 1: Line 1:
 
__TOC__
 
__TOC__
== Tweekihide parser function ==
+
=== Tweekihide parser function ===
  
 
Usage: <code><nowiki>{{#tweekihide:element1|element2|...}}</nowiki></code>
 
Usage: <code><nowiki>{{#tweekihide:element1|element2|...}}</nowiki></code>
Line 9: Line 9:
  
 
<strong>Attention!</strong> Elements need to be listed in [[Configuration_Options#Hiding_Page_Elements|<code>$wgTweekiSkinHideable</code>]] to be hideable via the parser function!
 
<strong>Attention!</strong> Elements need to be listed in [[Configuration_Options#Hiding_Page_Elements|<code>$wgTweekiSkinHideable</code>]] to be hideable via the parser function!
 +
 +
=== Tweekibodyclass parser function ===
 +
 +
Usage: <code><nowiki>{{#tweekibodyclass:class1|class2|...}}</nowiki></code>
 +
 +
This parser function be used to add a class to the <code><body></code> tag of a specific page.

Revision as of 12:54, 27 December 2017

Tweekihide parser function

Usage: {{#tweekihide:element1|element2|...}}

This parser function can be used to hide elements from a specific page (e.g. the main page).

You can use all navigational sections and elements (also custom ones).

Attention! Elements need to be listed in $wgTweekiSkinHideable to be hideable via the parser function!

Tweekibodyclass parser function

Usage: {{#tweekibodyclass:class1|class2|...}}

This parser function be used to add a class to the <body> tag of a specific page.