Help:Header Tabs

From Stamps of the World


Please note due to wikimedia updates and non-updates certain features applied historically may or may not work. This is one such function.  The errors arise in that you may not be able to edit sections of a headertab tables. Resulting in, you will have to edit the full page instead. To reduce this error ongoing until the software is updated to current version you can choose to use or not use headertabs. However SOTW admin. will change pages that are likely to be prone to this update error as having no headertabs.

Usage

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

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

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...

[edit]

This will be displayed on second tab

Third section header

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__.