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+
License None (Public Domain)
Download Download snapshot
Subversion [Help]

Browse source code
View code changes

Parameters

$wgRightFunctionsUserGroups, $wgRightFunctionsDisableFunctions, $wgRightFunctionsAllowExpensiveQueries, $wgRightFunctionsAllowCaching

Hooks used
LanguageGetMagic

Check usage (experimental)

Contents

[edit] What can this extension do?

Tests various page or user permissions and displays text based off of them.

[edit] Usage

Please view the documentation for usage instructions.

[edit] Download instructions

Please download the code from SVN 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.

Note:  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).

[edit] Installation

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

[edit] Notes

If anyone would like to test this on earlier versions (1.10 and downward) and report on my talk page whether it works or not, I'd greatly appreciate it :)

Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox