Template:Navigation header/Tabs/doc
This is a documentation subpage for Template:Navigation header/Tabs. It contains usage information, categories, and other content that is not part of the original template page. |
Usage
[edit]Generates navigation tabs for headers (up to 9 tabs).
Parameter | Description | Type | Status | |
---|---|---|---|---|
Border color | tabcolor | Color for top border of the tabs (standard color name or hexadecimal code).
| String | optional |
First tab label or content | tab1 | Text label for first tab, or full tab content if you don’t set `First label link`.
| Content | required |
First tab link | tab1link | Page name used as target for first tab. You can also manually set a link in `First tab label or content` parameter and omit this one.
| Page name | suggested |
Second tab label/content | tab2 | Text label for second tab.
| Content | suggested |
Second tab link | tab2link | Page name used as target for second tab. | Page name | suggested |
Third tab label/content | tab3 | Text label for third tab. | Content | suggested |
Third tab link | tab3link | Page name used as target for third tab. | Page name | suggested |
Fourth tab label/content | tab4 | Text label for fourth tab. | Content | optional |
Fourth tab link | tab4link | Page name used as target for fourth tab. | Page name | optional |
Fifth tab label/content | tab5 | Text label for fifth tab. | Content | optional |
Fifth tab link | tab5link | Page name used as target for fifth tab. | Page name | optional |
Sixth tab label/content | tab6 | Text label for sixth tab. | Content | optional |
Sixth tab link | tab6link | Page name used as target for sixth tab. | Page name | optional |
Seventh tab label/content | tab7 | Text label for seventh tab. | Content | optional |
Seventh tab link | tab7link | Page name used as target for seventh tab. | Page name | optional |
Eighth tab label/content | tab8 | Text label for eighth tab. | Content | optional |
Eighth tab link | tab8link | Page name used as target for Eighth tab. | Page name | optional |
Ninth tab label/content | tab9 | Text label for ninth tab. | Content | optional |
Ninth tab link | tab9link | Page name used as target for ninth tab. | Page name | optional |
Formatting classes | classes | Set to `flex` to allow tabs to fit width.
| String | optional |
Active tabs | active | Index of tab which is currently visited, to add it `active` CSS class and to disable wikilink.
| Number | optional |