Help:Header Tabs

From Stamps of the World

Usage[edit]

To enable tabs on a page you need to add

<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, page should have top level headers defined in it like this:

= Header title =

Linking to tabs[edit]

To allow users to switch to specific tab by just clicking a link on the page (in another tab or outside tab view), you can call the {{#switchtablink}} parser function 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 some page other than the current one, you can optionally add the third parameter, "Page Name".

Example[edit]

Some text above the tab view

= First section header =
This will be displayed on first tab

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

= Second section header =
This will be displayed on second tab

<headertabs/>

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

Some text above the tab view

[edit]

This will be displayed on first tab

Click here to go to the next tab...

This will be displayed on second tab

Third section header[edit]

This will be always displayed under the tab view because it's below <nowiki><headertabs/></nowiki> tag.

Header titles get automatically converted into tab titles.

Table of contents doesn't make much sense when tabs are used. Right now you can disable it with __NOTOC__.