Extension:Tabber

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual
Crystal Clear action run.png
Tabber

Release status: stable

Implementation Parser function
Description Create pages with "Tabs" to dynamically switch between content.
Author(s) Eric Fortin, Alexia E. Smith
Latest version 2.1 (2015-04-21)
MediaWiki 1.23+
PHP 5.4+
License Unknown
Download
Hooks used
ParserFirstCallInit

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

Check usage and version matrix; code metrics

The Tabber extension can assign blocks of content to specified tabs and allow user to dynamically switch between them. Based off the Javascript code from barelyfitz.com.

Project Homepage
Documentation at Github
Mediawiki Extension Page
Extension:Tabber
Source Code
Source Code at Github
Bugs
Issue Tracker at Github
Licensing
Tabber is released under The GNU General Public License, version 3.0.

Installation[edit | edit source]

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

Usage[edit | edit source]

Tabs are created as follows: <tabName>=<tabBody>

Tabs are separated by: "|-|"

<tabber>
 tab1=Some neat text here
|-|
 tab2=
 [http://www.google.com Google]<br>
 [http://www.cnn.com Cnn]<br>
|-|
 tab3={{Template:SomeTemplate}}
</tabber>

Multiple word tabs[edit | edit source]

Add &nbsp; between words. Example:

<tabber>
 multiple&nbsp;word&nbsp;tab=Some neat text here
</tabber>

Parser functions and conditionals[edit | edit source]

<tabber>
Tab1 = {{{1|}}}
|-|
Tab2 = {{{2|}}}
</tabber>

Becomes:

{{#tag:tabber|
Tab1={{{1|}}}
{{!}}-{{!}}
Tab2={{{2|}}}
}}

See also[edit | edit source]