Template:Tabs/doc
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
Single-page content
The following wikitext:
{{Tabs
| tab1 = Foo
| tab2 = Bar
| tab3 = Baz
| content1 = Hello world!
| content2 = Lorem ipsum!
| content3 = Yolo!
}}
will output:
Foo
Bar
Baz
Hello world!
Lorem ipsum!
Yolo!
Notice that the first tab is activated by default.
Multi-page content
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
Template data
Use this template to create up to 9 tabs.
| 参数 | 描述 | 类型 | 状态 | |
|---|---|---|---|---|
| Tab 1 | tab11 | Text or link of the first tab
| 字符串 | 推荐 |
| Content 1 | content1 | Content of the first tab | 内容 | 可选 |
| Tab 2 | tab22 | Text or link of the second tab
| 字符串 | 推荐 |
| Content 2 | content2 | Content of the second tab | 内容 | 可选 |
| Tab 3 | tab33 | Text or link of the third tab
| 字符串 | 可选 |
| Content 3 | content3 | Content of the third tab | 内容 | 可选 |