Difference between revisions of "Parser Functions"
(3 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
This parser function can be used to hide elements from a specific page (e.g. the main page). | This parser function can be used to hide elements from a specific page (e.g. the main page). | ||
+ | |||
+ | You can use all [[Navigation|navigational sections and elements]] (also custom ones). | ||
+ | |||
+ | <strong>Attention!</strong> Elements need to be listed in [[Configuration_Options#Hiding_Page_Elements|<code>$wgTweekiSkinHideable</code>]] to be hideable via the parser function! | ||
+ | |||
+ | === Tweekihideexcept parser function === | ||
+ | |||
+ | Usage: <code><nowiki>{{#tweekihideexcept:group1,group2|element1|element2|...}}</nowiki></code> | ||
+ | |||
+ | This parser function can be used to hide elements from a specific page (e.g. the main page) for all except the members of the group specified with the first argument. | ||
You can use all [[Navigation|navigational sections and elements]] (also custom ones). | You can use all [[Navigation|navigational sections and elements]] (also custom ones). | ||
Line 14: | Line 24: | ||
Usage: <code><nowiki>{{#tweekibodyclass:class1|class2|...}}</nowiki></code> | 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. | + | This parser function can be used to add a class to the <code><body></code> tag of a specific page. |
+ | |||
+ | === Tweekirealname parser function === | ||
+ | |||
+ | Usage: <code><nowiki>{{#tweekirealname:username}}</nowiki></code> | ||
+ | |||
+ | This parser function can be used to show a user's real name if it has been set in their preferences. If not, the user name will be returned. |
Latest revision as of 18:12, 3 January 2021
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!
Tweekihideexcept parser function
Usage: {{#tweekihideexcept:group1,group2|element1|element2|...}}
This parser function can be used to hide elements from a specific page (e.g. the main page) for all except the members of the group specified with the first argument.
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 can be used to add a class to the <body>
tag of a specific page.
Tweekirealname parser function
Usage: {{#tweekirealname:username}}
This parser function can be used to show a user's real name if it has been set in their preferences. If not, the user name will be returned.