模板:End tab
![]() | 本模板的源代码中包含了一些精密的可选参数和构造。 建议您于编辑模板前先熟悉其构造与解析器函数。若您的编辑导致了意外的问题,请尽快撤销编辑,因该模板或于相当数量的页面中出现。 所有实验性的编辑可于沙盒模板或者您自己的用户页中进行。 |
![文档图示](http://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/50px-Test_Template_Info-Icon_-_Version_%282%29.svg.png)
- Purpose
- To create a tabbed interface for usage on portals and projects, help pages and user pages.
Do not use in the encyclopaedic mainspace - Examples
- Wikiversity:WikiProject Athletics
- Syntax
{{Start tab|Tab-1=Title 1|URL-1=Page 1|Tab-2=Title 2|URL-2=page 2|…}}
Text on page.
{{End tab|Tab-1=Title 1|URL-1=Page 1|Tab-2=Title 2|URL-2=Page 2|…}}
Specification and Parameters
- The maximum number of available tabs is 10.
- To use the next page feature, end the page with the {{End tab}} template.
- It is possible to define the following optional parameters :
border=
: set border style.Off tab color=
: color of the currently unselected tabs and boxrounding=
: add rounding effect to edges of tab boxes.
Example
Basic
Example for Wikiversity: WikiProject Athletics
{{Start tab
|Tab-1=Current page
|URL-1=Template:End tab
|Tab-2=Project
|URL-2=Wikiversity:WikiProject Athletics
|Tab-3=Project talk
|URL-3=Wikiversity talk:WikiProject Athletics
|Tab-4=Olympics Project
|URL-4=Wikiversity: WikiProject Olympics
}}
Text on page here
{{End tab
|Tab-1=Current page
|URL-1=Template:End tab
|Tab-2=Project
|URL-2=Wikiversity:WikiProject Athletics
|Tab-3=Project talk
|URL-3=Wikiversity talk:WikiProject Athletics
|Tab-4=Olympics Project
|URL-4=Wikiversity: WikiProject Olympics
}}
Text on page here
Stylised
Example for Wikiversity: WikiProject Athletics
{{Start tab
|Tab-1=Current page
|URL-1=Template:End tab
|Tab-2=Project
|URL-2=Wikiversity:WikiProject Athletics
|Tab-3=Project talk
|URL-3=Wikiversity talk:WikiProject Athletics
|Tab-4=Olympics Project
|URL-4=Wikiversity: WikiProject Olympics
|border=1px solid #808080
|Off tab color=#f0f0ff
|On tab color=
|rounding=5em
|Tab alignment=center
}}
Text on page here
{{End tab
|Tab-1=Current page
|URL-1=Template:End tab
|Tab-2=Project
|URL-2=Wikiversity:WikiProject Athletics
|Tab-3=Project talk
|URL-3=Wikiversity talk:WikiProject Athletics
|Tab-4=Olympics Project
|URL-4=Wikiversity: WikiProject Olympics
|border=1px solid #808080
|Off tab color=#f0f0ff
|On tab color=
|rounding=5em
|Tab alignment=center
}}
Text on page here
See also
编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。 本模板的子页面。 |