Template documentationedit documentation
Use this template to create up to 9 tabs.
Warning! Tabs don't show well on print and editing their content with the visual editor becomes harder.
Examples[edit source]
Single-page content[edit source]
The following wikitext:
{{Tabs | tab1 = Foo | tab2 = Bar | tab3 = Baz | content1 = Hello world! | content2 = Lorem ipsum! | content3 = Yolo! }}
will output:
Hello world!
Lorem ipsum!
Yolo!
Notice that the first tab is activated by default.
Multi-page content[edit source]
You can also use this template to create tabs that link different pages together, like so:
{{Tabs | [[Template:Menu|Menus]] | [[Template:Tabs|Tabs]] | [[Template:Navbox|Navboxes]] }}
will output:
Notice that the tab of the current page is activated by default.
See also[edit source]
Template data[edit source]
Use this template to create up to 9 tabs.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Tab 1 | tab1 1 | Text or link of the first tab
| String | suggested |
Content 1 | content1 | Content of the first tab | Content | optional |
Tab 2 | tab2 2 | Text or link of the second tab
| String | suggested |
Content 2 | content2 | Content of the second tab | Content | optional |
Tab 3 | tab3 3 | Text or link of the third tab
| String | optional |
Content 3 | content3 | Content of the third tab | Content | optional |