Header Tabs

Revision as of 15:38, 16 January 2018 by AntoniaB (talk | contribs)

Extension: Header Tabs


Overview
Description: Displays top-level headers as JavaScript-based tabs
State: stable Dependency: MediaWiki
Developer: Sergey Chernyshev, Yaron Koren License: -
Type: MediaWiki Category: Rich Articles
Edition: BlueSpice pro
For more info, visit Mediawiki.

Features

The Header Tabs extension transforms top-level MediaWiki headers into tabs using the jQuery UI JavaScript library.

Usage

To enable tabs on a page after you installed the extension, you need to add a

<headertabs />

tag into the page in place where the last tab should end (everything below this tag will be shown under the tab view). Most of the time, though, you'll want to put it at the bottom of the page. In addition to that, the page should have top-level headers defined in it like this:

= Header title =

Each such top-level header, if it's anywhere above the <headertabs/> tag, will be displayed as a tab.


You can link to a tab, both from another page and from within that same page (and, within that same page, both from another tab and from outside the tab view). This is done using the {{#switchtablink}} parser function, which is called like this: {{#switchtablink:Tab name|Link text|Page name}}

This will create a link to the tab with the name "Tab name", and the text of the link will read "Link text". If you want the link to a point to a tab on another page, you can optionally add the third parameter, "Page name".

Multibyte characters was well as formatting characters e.g. bold is not permitted if you want to link to tabs in any way.

Example

Some text above the tab view

= First section header =<br>This will be displayed on the first tab

{{#switchtablink:Second section header|Click here to go to the next tab...}}

= Second section header =<br>This will be displayed on the second tab

<headertabs/><br>= Third section header =<br>This will be always displayed under the tab view<br>because it's below the <headertabs/> tag.

The header titles get automatically converted into tab titles.


Source: mediawiki

Attachments

Discussions