Extension:Tabs

From MediaWiki.org
Jump to: navigation, search
Language:Project:Language policy English


MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png
Tabs

Release status:Extension status stable

Tabs extension.png
ImplementationTemplate:Extension#type Tag, Parser function
DescriptionTemplate:Extension#description Allows simple creation of tab menus, dropdown menus, and collapsible boxes.
Author(s)Template:Extension#username Joeytje50talk
Latest versionTemplate:Extension#version 1.3 (2015-01-10)
MediaWikiTemplate:Extension#mediawiki 1.22+
PHPTemplate:Extension#php 5.4+
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license GNU General Public License 3.0 or later
Download
TagsTemplate:Extension#tags

  • <tabs>
  • <tab>
Hooks usedTemplate:Extension#hook
ParserFirstCallInitManual:Hooks/ParserFirstCallInit

Translate the Tabs extension if it is available at translatewiki.net

Check usage and version matrix.

The Tabs extension makes it possible to insert tab menus, dropdown menus, and collapsible boxes into any page, using the <tabs> and <tab> tags, or the {{#tab:}} parser function. This extension requires no JavaScript to work, except for older browsers such as Internet Explorer 8 and lower as a CSS :checked polyfill. As opposed to other extensions, this independence from JavaScript results in having no flash of unstyled content when the page loads.

Installation[edit source]

  • Download and place the file(s) in a directory called Tabs in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    require_once "$IP/extensions/Tabs/Tabs.php";
    
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

You can also download the code directly via Git from the MediaWiki source code repository. From a command line, call the following:

git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/Tabs.git

Configuration parameters[edit source]

None, but the default background colour for dropdown menus is stored on the "MediaWiki:tabs-dropdown-bgcolor" page.

Usage[edit source]

See Extension:Tabs/Usage.

See also[edit source]

Language:Project:Language policy English