Extension:DynamicTabs
![]() |
This extension is currently not actively maintained! Meaning any reports for additional features and/or bugfixes will more than likely be ignored. Volunteers are encouraged to take on the task of developing and maintaining it. As a courtesy, you may want to contact the author. You should also remove this template and list yourself as maintaining the extension in the page's {{extension}} infobox. |
DynamicTabs Release status: experimental |
|||
---|---|---|---|
Implementation | MyWiki | ||
Description | 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 | ||
Author(s) | Micke Nordin, David Öhlin (Micketalk) | ||
Latest version | 0.5.3 (2009-10-03) | ||
MediaWiki | 1.15+ | ||
License | GNU General Public License 3.0 | ||
Download | DynamicTabs-0.5.3.tar.gz DynamicTabs-0.5.3.zip | ||
|
|||
Translate the DynamicTabs extension if it is available at translatewiki.net |
|||
Check usage and version matrix; code metrics |
Contents
Note[edit | edit source]
This extension is basicaly unmaintained. If you want to take over please shoot me an email at mickewiki at gmail period com
This extension only works with Mediawiki 1.15.0 or later. If you have an older version of MediaWiki installed, you can use version 0.1 of the extension, which does not feature the web interface. Instead you have to use a file on the server for configuration.
What can this extension do?[edit | edit source]
DynamicTabs extension makes it possible to remove and/or add custom tabs (tabs are e.g. the edit button, history button and so on). This can be done by either adding dynamic links to articles with the same name in a different namespace and/or by adding arbitrary static internal and external links. Any and all default tabs can be removed by specifying its name in the correct section on the configuration page, either for ordinary users and/or from sysops (read on below).
Usage[edit | edit source]
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.
Download instructions[edit | edit source]
svn[edit | edit source]
You can download the latest version of the code from svn with the command: svn checkout http://micke.googlecode.com/svn/DynamicTabs DynamicTabs
Make sure you issue this command from the directory $IP/extensions/
.
Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.
Archive[edit | edit source]
Download the code tar.gzzip, unpack the archive and place the folder named DynamicTabs
in $IP/extensions/
.
Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.
Installation[edit | edit source]
To install this extension, add the following to LocalSettings.php:
#DynamicTabs extension require_once("$IP/extensions/DynamicTabs/DynamicTabs.php");
Configuration[edit | edit source]
Note: This is not an hierarchical system; 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. This is because you might want to have certain tabs hidden from sysops, but not from anonymous users or registered users.
All configuration is done on wiki at the page Mediawiki:DynamicTabs
. If this page doesn't exist the extension will do nothing. On this page you can create six different configuration sections:
- hideAnonymous
- 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. Tabs are specified as a hash sign (#) followed by the name of the tab. These are the sections and possible options:
*hideAnonymous - this section holds tabs that should be hidden from anonymous users. Possible options are #nstab-main -tab for main namespace #nstab-mediawiki -tab for mediawiki namespace #nstab-project -tab for project namespace #nstab-user -tab for user namespace #nstab-image -tab for file namespace #nstab-template -tab for template namespace #nstab-category -tab for category namespace #nstab-custom_namespace_here -tab for any custom namespace you have created #talk -tab for talkpages #viewsource -edit tab for anonumous users #edit - edit tab for registered users #history - history tabs *hideUsers - this section holds tabs that should be hidden from ordinary users. Possible options are: #nstab-main -tab for main namespace #nstab-mediawiki -tab for mediawiki namespace #nstab-project -tab for project namespace #nstab-user -tab for user namespace #nstab-image -tab for file namespace #nstab-template -tab for template namespace #nstab-category -tab for category namespace #nstab-custom_namespace_here -tab for any custom namespace you have created #talk -tab for talkpages #viewsource -edit tab for anonymous users #edit - edit tab for registered users #history - history tabs #move - move tab #watch - watch tab #addsection - new section/+ *hideSysop - this section hold tabs that should be hidden from sysops. Possible options are: #nstab-main -tab for main namespace #nstab-mediawiki -tab for mediawiki namespace #nstab-project -tab for project namespace #nstab-user -tab for user namespace #nstab-image -tab for file namespace #nstab-template -tab for template namespace #nstab-category -tab for category namespace #nstab-custom_namespace_here -tab for any custom namespace you have created #talk -tab for talkpages #edit - edit tab #history - history tabs #move - move tab #protect - protection tab #delete - delete tab #watch - watch tab #addsection - new section/+ *nsTabs - this section allows you to add links to the same page in a specified namespace, similar to how the talk tab works. 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 itself (which is what the talk page is for), you can do this: #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: #[[Main_page|Main]] #[[A page]] #Main_page|Main #A page *extLinks - this section holds external static links to pages off-wiki; for example: #[http://mediawiki.org] - will display http://mediawiki.org as link text #[http://en.wikipedia.org wikipedia] - will display wikipedia as link text #http://google.com - will display http://google.com as link text #http://xkcd.com xkcd - will display xkcd as link text
For example your Mediawiki:DynamicTabs could look like this:
*hideUser #viewsource #edit #talk #history #watch #nstab-main *hideSysop #talk #nstab-main *nsTabs #help *intLinks #[[Main page|main]] *extLinks #[http://www.google.com google]
Note: The last version of this extension changes the behavior with regards to anonymous users and logged-in users. Previously tabs were hidden from anonymous users when specified under *hideUsers. This is no longer the case. You now have to hide tabs from the two groups separately.
Known Issues[edit | edit source]
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[edit | edit source]
An issue tracker for this extension is located at Google code. Please do not use the talk page to report new bugs.