Extension:DynamicTabs

What can this extension do?
DynamicTabs extension makes it possible to remove and/or add custom tabs either to articles with the same name in a different namespace or other internal and external links.

Usage
You can use this extension if you would like to hide tabs from users in a better way than CSS can do. You can also us it to add new tabs either based on namespaces, internal links or external links. Read more about configuration here.

Download instructions
Please cut and paste the code found below and place it in. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Then create a configuration file based on the instructions below and put them in.

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

Configuration
The configuration file can hold five arrays: $nsUnsetUser[], $nsUnsetNone[], $nsTabs[], $internalLinks['key'] and $externalLinks ['key'].

Tabs in $nsUnsetUser[] will be hidden to all but sysops, tabs in $nsUnsetNone[] will be shown to all, $nsTabs[] will hold names of namespaces that will have tabs on each page, $internalLinks['key'] holds internal links that will have corresponding tabs and $externalLinks ['key'] does the same with external links. This is an example of a configuration file (vars.php).