Extension:ConditionalShow

What can this extension do?
This extension implementes the tag which conditionally shows wikitext within the tags based on user group rights and certain other parameters.

Using the tags should be to make the user experience less confusing or more useful by only showing information relevant to the user and specific groups that user belongs to.  PLEASE NOTE!!!

This tag does not protect information or instructions from being disclosed to the reader.

The user can still see the information by editing the page or even by "view source". If you are looking to actually protect information, this is NOT the extension you want to use!

This extension only helps you selectively show content or navigation based on groups the user belongs to.

Note
This extension is not 'cache' friendly; if one requires this feature, then BizzWiki platform provides a solution through Parser Phase 2 extension.

Usage
Like other tags, this can be used two ways - by using the tag itself within wikitext, or by using the tag function within templates.

If you are using it within normal wikitext, the. . . syntax suffices. If you are using it within a template, you will need to use the parser tag function as illustrated below.

Example in Wikitext
By default, the section of wikitext within the tags is HIDDEN unless the conditions are met - in this case the user must be logged in and belong the group 'sysops'

 This text will appear if a user with membership to 'sysop' group views this page

Example within a Template
If you are using this within a template or as part of a template, you need to use the syntax.

Arguments
By default, the tagged section is HIDDEN unless the following conditions are met:
 * Argument: logged = '1' or '0'
 * Argument: ingroup = 'group XYZ' (Note, as of version 1.5, you can list multiple groups, e.g. 'sysop,approved'

If no arguments are provided for: logged  --> assume 'don't care' innGroup --> assume ''           (no group)

In other words, if no 'ingroup' parameter is given, then the condition 'ingroup' is never met.

If no "logged" parameter is given, then this condition is always met.

Download instructions
The current version is available from SVN.

Source Code and additional information can also be found at. The code should be loaded to:

. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

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

Other Options

 * Extension:ConditionalContent