Template:Custom Tabs/doc
This is the documentation page for Custom Tabs. It contains usage information, categories, and other content not part of the original template page. | ||
|---|---|---|
| Main | Documentation | Usage |
Template for creating tabs for navigation.
Syntax
{{Custom Tabs
|rootpage =
|namespace =
|subpages =
|tab1 =
|tab2 =
|tab3 =
|tab4 =
|tab5 =
|tab6 =
|tab7 =
|tab8 =
|tab9 =
}}
- rootpage — title of root page if not using current page's root.
- namespace — name of namespace if not using current page's namespace. Use empty parameter for main namespace.
- subpages — tabs are subpages of the first if set to 1, otherwise are notm. Default 1.
- tab1 — title of first tab.
- tab2, tab3, tab4, tab5, tab6, tab7, tab8, tab9 — title of subpage tabs.
Examples
{{Custom Tabs
|tab1 = Overview
|tab2 = Story
|tab3 = Voicelines
|tab4 = Media
}}
yields:
{{Custom Tabs
|rootpage = Nanafey
|namespace =
|class = custom-tabs-secondary
|tab1 = Overview
|tab2 = Story
|tab3 = Combat
|tab4 = Voicelines
|tab5 = Anima
}}
yields:
{{Custom Tabs
|namespace =
|subpages = 0
|class = custom-tabs-tertiary
|tab1 = Taileep
|tab1name = First Tab
|tab2 = Puddlipup
|tab2name = Second Tab
|tab3 = Vulberry
|tab3name = Third Tab
|tab4 = Foalhardy
|tab4name = Forth Tab
}}
yields:
Template Data
Template for creating tabs for navigation.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| rootpage | rootpage | Title of the root page to base the tab's subpages on, if not using the actual root page name (content before only the first /)
| Page name | optional |
| namespace | namespace | no description | Unknown | optional |
| subpages | subpages | Set to 0 if tabs are not subpages of the first page.
| Boolean | optional |
| class | class | Assign a different class to differentiate between multiple sets of tabs on the same page.
| String | optional |
| tab1 | tab1 | no description | Unknown | optional |
| tab1name | tab1name | no description | Unknown | optional |
| tab2 | tab2 | no description | Unknown | optional |
| tab2name | tab2name | no description | Unknown | optional |
| tab3 | tab3 | no description | Unknown | optional |
| tab3name | tab3name | no description | Unknown | optional |
| tab4 | tab4 | no description | Unknown | optional |
| tab4name | tab4name | no description | Unknown | optional |
| tab5 | tab5 | no description | Unknown | optional |
| tab5name | tab5name | no description | Unknown | optional |
| tab6 | tab6 | no description | Unknown | optional |
| tab6name | tab6name | no description | Unknown | optional |
| tab7 | tab7 | no description | Unknown | optional |
| tab7name | tab7name | no description | Unknown | optional |
| tab8 | tab8 | no description | Unknown | optional |
| tab8name | tab8name | no description | Unknown | optional |
| tab9 | tab9 | no description | Unknown | optional |
| tab9name | tab9name | no description | Unknown | optional |
| tab10 | tab10 | no description | Unknown | optional |
| tab10name | tab10name | no description | Unknown | optional |
| tab11 | tab11 | no description | Unknown | optional |
| tab11name | tab11name | no description | Unknown | optional |
| tab12 | tab12 | no description | Unknown | optional |
| tab12name | tab12name | no description | Unknown | optional |
| tab13 | tab13 | no description | Unknown | optional |
| tab13name | tab13name | no description | Unknown | optional |