Template:Tabs
| {{{tab1}}} | {{{tab2}}} |
Template documentation
View or edit this documentation. (About template documentation)
Note: portions of the template sample may not be visible without values provided.
The Tabs template is used to add tabs in user and user talk pages.
Usage
{{tabs
|this-tab = n
|tab1 = [[Link 1|Tab 1]]
|tab2 = [[Link 2|Tab 2]]
|tab3 = [[Link 3|Tab 3]]
.
.
|tab20 = [[Tab 20|Tab 20]]
|color1=Non-Highlighted Tab Color
|color2=Highlighted Tab Color
|color3=Border Line Color
}}
Notes:
- this-tab is optional. It determines which tab to activate or highlight.
- tab1 and tab2 are mandatory parameters.
- Currently, the maximum number of tabs is 20.
TemplateData
Adds tabs in user and user talk pages.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Tab Color | color1 | Hex code or Color template for non-highlighted Tab Color
| Line | suggested |
| Highlighted color | color2 | Hex code or Color template for the Highlighted tab
| Line | suggested |
| Border Color | color3 | Hex code or Color template for the Border
| Line | suggested |
| Border Color override | col-border | Complete override for the border color. Allows for color word, and hexcode or color template with # | Line | optional |
| Highlighted tab number | this-tab | Highlighted tab number
| Number | suggested |
| Tab 1 | tab1 | Tab 1 header | String | required |
| Tab 2 | tab2 | Tab 2 header | String | required |
| Tab 3 | tab3 | Tab 3 header | String | suggested |
| Tab 4 | tab4 | Tab 4 header | String | suggested |
| Tab 5 | tab5 | Tab 5 header | String | suggested |
| Tab 6 | tab6 | Tab 6 header | String | suggested |
| Tab 7 | tab7 | Tab 7 header | String | suggested |
| Tab 8 | tab8 | Tab 8 header | String | suggested |
| Tab 9 | tab9 | Tab 9 header | String | suggested |
| Tab 10 | tab10 | Tab 10 header | String | suggested |
| Tab 11 | tab11 | Tab 11 header | String | optional |
| Tab 12 | tab12 | Tab 12 header | String | optional |
| Tab 13 | tab13 | Tab 13 header | String | optional |
| Tab 14 | tab14 | Tab 14 header | String | optional |
| Tab 15 | tab15 | Tab 15 header | String | optional |
| Tab 16 | tab16 | Tab 16 header | String | optional |
| Tab 17 | tab17 | Tab 17 header | String | optional |
| Tab 18 | tab18 | Tab 18 header | String | optional |
| Tab 19 | tab19 | Tab 19 header | String | optional |
| Tab 20 | tab20 | Tab 20 header | String | optional |
Examples
No tabs highlighted
{{tabs
|tab1 = [[User:Example|Tab 1]]
|tab2 = [[User:Example|Tab 2]]
|tab3 = [[User:Example|Tab 3]]
}}
gives:
| Tab 1 | Tab 2 | Tab 3 |
Second tab highlighted
{{tabs
|this-tab = 2
|tab1 = [[User:Example|Tab 1]]
|tab2 = [[User:Example|Tab 2]]
|tab3 = [[User:Example|Tab 3]]
}}
gives:
| Tab 1 | Tab 2 | Tab 3 |
Multiple tabs
{{tabs
|this-tab = 4
|tab1 = [[User:Example|Tab 1]]
|tab2 = [[User:Example|Tab 2]]
|tab3 = [[User:Example|Tab 3]]
|tab4 = [[User:Example|Tab 4]]
|tab5 = [[User:Example|Tab 5]]
|tab6 = [[User:Example|Tab 6]]
|tab7 = [[User:Example|Tab 7]]
|tab8 = [[User:Example|Tab 8]]
}}
gives:
| Tab 1 | Tab 2 | Tab 3 | Tab 4 | Tab 5 | Tab 6 | Tab 7 | Tab 8 |