Jump to content

Template:Navigation header/Tabs

From Meta, a Wikimedia project coordination wiki
Template documentation

Usage

[edit]

Generates navigation tabs for headers (up to 9 tabs).

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Border colortabcolor

Color for top border of the tabs (standard color name or hexadecimal code).

Example
#AA0000
Stringoptional
First tab label or contenttab1

Text label for first tab, or full tab content if you don’t set `First label link`.

Example
Home
Contentrequired
First tab linktab1link

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.

Example
Nice project/Home
Page namesuggested
Second tab label/contenttab2

Text label for second tab.

Example
Join us
Contentsuggested
Second tab linktab2link

Page name used as target for second tab.

Page namesuggested
Third tab label/contenttab3

Text label for third tab.

Contentsuggested
Third tab linktab3link

Page name used as target for third tab.

Page namesuggested
Fourth tab label/contenttab4

Text label for fourth tab.

Contentoptional
Fourth tab linktab4link

Page name used as target for fourth tab.

Page nameoptional
Fifth tab label/contenttab5

Text label for fifth tab.

Contentoptional
Fifth tab linktab5link

Page name used as target for fifth tab.

Page nameoptional
Sixth tab label/contenttab6

Text label for sixth tab.

Contentoptional
Sixth tab linktab6link

Page name used as target for sixth tab.

Page nameoptional
Seventh tab label/contenttab7

Text label for seventh tab.

Contentoptional
Seventh tab linktab7link

Page name used as target for seventh tab.

Page nameoptional
Eighth tab label/contenttab8

Text label for eighth tab.

Contentoptional
Eighth tab linktab8link

Page name used as target for Eighth tab.

Page nameoptional
Ninth tab label/contenttab9

Text label for ninth tab.

Contentoptional
Ninth tab linktab9link

Page name used as target for ninth tab.

Page nameoptional
Formatting classesclasses

Set to `flex` to allow tabs to fit width.

Suggested values
flex
Stringoptional
Active tabsactive

Index of tab which is currently visited, to add it `active` CSS class and to disable wikilink.

Suggested values
1 2 3 4 5 6 7 8 9
Example
1
Numberoptional