Extension:RightFunctions

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
RightFunctions

Release status: stable

Implementation Parser function
Description Permission-based parser functions
Author(s) Ryan Schmidt (Skizzerztalk)
Last version 1.10
MediaWiki 1.10+
Database changes no
License None (Public Domain)
Download
Parameters
  • $wgRightFunctionsUserGroups
  • $wgRightFunctionsDisableFunctions
  • $wgRightFunctionsAllowExpensiveQueries
  • $wgRightFunctionsAllowCaching
Hooks used
ParserFirstCallInit
Check usage and version matrix

The RightFunctions extension tests various page or user permissions and displays text based off of them.

Usage [edit]

Please view the documentation for usage instructions.

Download instructions [edit]

Please download the code and place it in $IP/extensions/RightFunctions/. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

 If you have MediaWiki versions 1.11.1 or lower (as well as earlier versions of 1.12), download RightFunctions_old.php (ignore the other two files), then rename it to RightFunctions.php. If you have 1.12.0, download RightFunctions.php and RightFunctions.i18n.php (ignore RightFunctions_old.php).

Installation [edit]

To install this extension, add the following to LocalSettings.php:

require_once("$IP/extensions/RightFunctions/RightFunctions.php");
# put any parameters here, BELOW the require_once call