This is a mirror host of the KP Official Wiki on Miraheze. We dont actually mirror we host the same content
Template:TabbedHeader/doc: Difference between revisions
From Kaiju Paradise Official Wiki
No edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 37: | Line 37: | ||
|rootpage = Kaiju | |rootpage = Kaiju | ||
|namespace = | |namespace = | ||
|subpages = | |subpages = 2 | ||
|tab1 = Kaiju | |tab1 = Kaiju | ||
|tab2 = Trivia | |tab2 = Trivia | ||
|tab3 = | |tab3 = Gallery | ||
|tab4 = | |tab4 = | ||
}}</pre> | }}</pre> | ||
| Line 46: | Line 46: | ||
|rootpage = Kaiju | |rootpage = Kaiju | ||
|namespace = | |namespace = | ||
|subpages = | |subpages = 2 | ||
|tab1 = Kaiju | |tab1 = Kaiju | ||
|tab2 = Trivia | |tab2 = Trivia | ||
|tab3 = | |tab3 = Gallery | ||
|tab4 = | |tab4 = | ||
}} | }} | ||
<pre> | <!--<pre> | ||
{{TabbedHeader | {{TabbedHeader | ||
|rootpage = | |rootpage = | ||
|namespace = | |namespace = | ||
|subpages = 0 | |subpages = 0 | ||
|tab1 = | |tab1 = | ||
|tab2 = | |tab2 = | ||
|tab3 = | |tab3 = | ||
|tab4 = | |tab4 = | ||
}}</pre> | }}</pre> | ||
{{TabbedHeader | {{TabbedHeader | ||
|rootpage = | |rootpage = | ||
|namespace = | |namespace = | ||
|subpages = 0 | |subpages = 0 | ||
|tab1 = | |tab1 = | ||
|tab2 = | |tab2 = | ||
|tab3 = | |tab3 = | ||
|tab4 = | |tab4 = | ||
}} | }}--> | ||
Latest revision as of 18:03, 10 June 2024
Usage
This will create header tabs stylized to fit the wiki theme.
Parameters
{{TabbedHeader
|rootpage =
|namespace =
|subpages =
|tab1 =
|tab2 =
|tab3 =
|tab4 =
}}
Fields
| Field | Accepted Values | Example | Notes |
|---|---|---|---|
| rootpage | a page name | - OPTIONAL. Use if the root page is different than the one this template is being inserted into. | |
| namespace | a namespace | Template | - Use if the namespace is different than the one this template is being inserted into. Otherwise, leave empty (defaults to main namespace). |
| subpages | default:1/else | 1 | - OPTIONAL. Default set to 1, which will display any following tabs to be the subpages of tab1. Use/change this field if your headers are being used to link to various independant pages. |
| tab1 | Page Name | - Required. By default, what is set in this page will dictate the content/links of subsequent tabs. | |
| tab2~4 | Subpage Name | - Required. By default, content here will be the subpages of tab1. |
Examples
{{TabbedHeader
|rootpage = Kaiju
|namespace =
|subpages = 2
|tab1 = Kaiju
|tab2 = Trivia
|tab3 = Gallery
|tab4 =
}}
