Extension:DynamicTabs

What can this extension do?
DynamicTabs extension makes it possible to remove and/or add custom tabs (tabs are eg. the edit button, history button and so on) 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
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
All configuration is done on wiki att Mediawiki:DynamicTabs. If this page doesn't exist the extension will do nothing. On this page you can create five different configuration sections:
 * hideUsers
 * hideSysop
 * nsTabs
 * intLinks
 * extLinks

Section headers are denoted by a star ( * ) in the configuration page, and tabs are denoted by a hash sign ( # ) followed by the name of the tab. These are the sections and possible options:
 * hideUsers - this section holds tabs that should be hidden from ordinary users. Possible options are:
 * 1) nstab-main -tab for main namespace
 * 2) nstab-mediawiki -tab for mediawiki namespace
 * 3) nstab-project -tab for project namespace
 * 4) nstab-user -tab for user namespace
 * 5) nstab-image -tab for file namespace
 * 6) nstab-template -tab for template namespace
 * 7) nstab-category -tab for category namespace
 * 8) nstab-custom_namespace_here -tab for any custom namespace you have created
 * 9) talk -tab for talkpages
 * 10) viewsource -edit tab for anonumous users
 * 11) edit - edit tab for registered users
 * 12) history - hostory tabs
 * 13) move - move tab
 * 14) watch - watch tab


 * hideSysop - this section hold tabs that should be hidden from sysops. Possible options are:
 * 1) nstab-main -tab for main namespace
 * 2) nstab-mediawiki -tab for mediawiki namespace
 * 3) nstab-project -tab for project namespace
 * 4) nstab-user -tab for user namespace
 * 5) nstab-image -tab for file namespace
 * 6) nstab-template -tab for template namespace
 * 7) nstab-category -tab for category namespace
 * 8) nstab-custom_namespace_here -tab for any custom namespace you have created
 * 9) talk -tab for talkpages
 * 10) edit - edit tab
 * 11) history - hostory tabs
 * 12) move - move tab
 * 13) protect - protection tab
 * 14) delete - delete tab
 * 15) watch - watch tab

If you have a custom namespace called e.g. "Help" where users can ask questions related to the topic of an article, rather than discuss how to write the article it self (which is what the talkpage is for) you can do this:
 * nsTabs - this section allows you to add links to the same page in a specified namespace, similar to how the talk tab works.
 * 1) Help - adds a link to the corresponding page in help-namespace to every page. Note: The name of the namespace must be specified with uppercase on the first letter.


 * intLinks - this sections hold internal static links to pages on the wiki, for example:
 * 1) Main
 * 2) A page
 * 3) Main_page|Main
 * 4) A page


 * extLinks - this section holds external static links to pages off wiki, for example:
 * 1) - will display http://mediawiki.org as link text
 * 2) wikipedia - will display wikipedia as link text
 * 3) http://google.com - will display http://google.com as link text
 * 4) http://xkcd.com xkcd - will display xkcd as link text

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) huvud
 * extLinks
 * 1) google