Extension:DynamicTabs

This extension is unmaintained. If you want to take over email me at mickewiki at gmail period com

This extension only works with Mediawiki 1.15.0 or later.

What can this extension do?
DynamicTabs extension removes or adds custom tabs (tabs such as the edit button, history button,etc). You can use this extension if you would like to hide tabs from users in a better way than CSS can. You can also use it to add new tabs either based on namespaces, internal links or external links. Read more about configuration here.

All default tabs can be removed.

svn
You can download the latest version of the code from svn with the command:

Make sure you issue this command from the directory.

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

Archive
Download the code tar.gzzip, unpack the archive and place the folder named  in.

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:

Configuration
If you want a tab to be hidden from anonymous users, registered users AND sysops, you have to hide the tab from each of the groups separately.

All of the extension configuration is done on your wiki on the page.

On this page you can create six different configuration sections:
 * hideAnonymous - tabs are hidden from anonymous users
 * hideUsers - tabs are hidden from registered users
 * hideSysop - tabs are hidden from administrators (sysops)
 * nsTabs
 * intLinks
 * extLinks

On :
 * 1) Section headers are denoted by a star ( * )
 * 2)  tabs are denoted by # followed by the name of the tab.

These are the sections and possible options:

*hideAnonymous
This section lists tabs that can be hidden from anonymous users. Including:

*hideUsers
hideUsers lists tabs that can be hidden from registered users. Including:

*hideSysop
hideSysop lists tabs that can be hidden from sysop. Including:

* nsTabs
nsTabs allows you to add links to the same page in a specified namespace, similar to how the discussion tab works.

If you have a custom namespace called for example "Help" where users can ask questions related to the topic of an article, rather than discuss how to write the article itself (which is what the talk page is for), you can do this:

The name of the namespace must be specified with uppercase on the first letter.

* intLinks
intLinks hold internal static links to pages on the wiki, for example:

* extLinks
extLinks  holds external static links to pages off-wiki;

for example:

Example
For example your Mediawiki:DynamicTabs could look like this:
 * hideUser
 * 1) viewsource
 * 2) edit
 * 3) talk
 * 4) history
 * 5) watch
 * 6) nstab-main
 * hideSysop
 * 1) talk
 * 2) nstab-main
 * nsTabs
 * 1) help
 * intLinks
 * 1) main
 * extLinks
 * 1) google

Known Issues
This extension does not work with the new Vector skin, this is due to the way tabs are added in the vector skin which is different from almost all other skins. Fixing this is not trivial and patches would be appreciated. See bug report for this issue.

Register bugs
An issue tracker for this extension is located at Google code. Please do not use the talk page to report new bugs.