模板:Tabs/doc

< Template:Tabs這是此頁面最近一次修訂;沒有已批准修訂。

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 1tab11

Text or link of the first tab

範例
Foo
字串建議
Content 1content1

Content of the first tab

內容選填
Tab 2tab22

Text or link of the second tab

範例
Bar
字串建議
Content 2content2

Content of the second tab

內容選填
Tab 3tab33

Text or link of the third tab

範例
Baz
字串選填
Content 3content3

Content of the third tab

內容選填