Extension:Tabs

From MediaWiki.org
Jump to navigation Jump to search
Other languages: English
MediaWiki extensions manual
Crystal Clear action run.svg
Tabs
Release status: stable
Tabs extension.png
Implementation Tag, Parser function
Description Allows simple creation of tab menus, dropdown menus, and collapsible boxes.
Author(s) Joeytje50talk
Latest version 1.3 (2015-01-10)
MediaWiki 1.22+
PHP 5.4+
Database changes No
License GNU General Public License 3.0 or later
Download
Tags

  • <tabs>
  • <tab>
Hooks used
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]

  • 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:
    wfLoadExtension( 'Tabs' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

To users running MediaWiki 1.24 or earlier:

The instructions above describe the new way of installing this extension using wfLoadExtension() If you need to install this extension on these earlier versions (MediaWiki 1.24 and earlier), instead of wfLoadExtension( 'Tabs' );, you need to use:

require_once "$IP/extensions/Tabs/Tabs.php";

Configuration parameters[edit]

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

Usage[edit]

See Extension:Tabs/Usage.

See also[edit]

Other languages: English