Difference between revisions of "Template:End tab/doc"
(Created page with "{{Documentation subpage}} <!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> {{esoteric}} ; Purpose : To create a tabbed interface for usage on...") |
m (4 revisions imported) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> | <!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> | ||
− | {{ | + | {{Intricate template}} |
− | ; Purpose : To create a tabbed interface | + | ; Purpose : To create a tabbed interface |
− | ; Examples : [[Wikipedia:WikiProject Athletics]] | + | ; Examples : [[w:Wikipedia:WikiProject Athletics]] |
; Syntax : <code><nowiki>{{Start tab|Tab-1=Title 1|URL-1=Page 1|Tab-2=Title 2|URL-2=page 2|…}}</nowiki><br />''Text on page.''<br /><nowiki>{{End tab|Tab-1=Title 1|URL-1=Page 1|Tab-2=Title 2|URL-2=Page 2|…}}</nowiki></code> | ; Syntax : <code><nowiki>{{Start tab|Tab-1=Title 1|URL-1=Page 1|Tab-2=Title 2|URL-2=page 2|…}}</nowiki><br />''Text on page.''<br /><nowiki>{{End tab|Tab-1=Title 1|URL-1=Page 1|Tab-2=Title 2|URL-2=Page 2|…}}</nowiki></code> | ||
Latest revision as of 20:37, 30 October 2020
Script error: No such module "Template translation". Script error: No such module "Template translation".
- Purpose
- To create a tabbed interface
- Examples
- w:Wikipedia: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 Wikipedia: WikiProject Athletics
<poem>
{{Start tab
|Tab-1=Current page
|URL-1=Template:End tab
|Tab-2=Project
|URL-2=Wikipedia:WikiProject Athletics
|Tab-3=Project talk
|URL-3=Wikipedia talk:WikiProject Athletics
|Tab-4=Olympics Project
|URL-4=Wikipedia: WikiProject Olympics
}}
Text on page here
{{End tab
|Tab-1=Current page
|URL-1=Template:End tab
|Tab-2=Project
|URL-2=Wikipedia:WikiProject Athletics
|Tab-3=Project talk
|URL-3=Wikipedia talk:WikiProject Athletics
|Tab-4=Olympics Project
|URL-4=Wikipedia: WikiProject Olympics
}}
</poem>
Text on page here
Stylised
Example for Wikipedia: WikiProject Athletics
<poem>
{{Start tab
|Tab-1=Current page
|URL-1=Template:End tab
|Tab-2=Project
|URL-2=Wikipedia:WikiProject Athletics
|Tab-3=Project talk
|URL-3=Wikipedia talk:WikiProject Athletics
|Tab-4=Olympics Project
|URL-4=Wikipedia: 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=Wikipedia:WikiProject Athletics
|Tab-3=Project talk
|URL-3=Wikipedia talk:WikiProject Athletics
|Tab-4=Olympics Project
|URL-4=Wikipedia: WikiProject Olympics
|border=1px solid #808080
|Off tab color=#f0f0ff
|On tab color=
|rounding=5em
|Tab alignment=center
}}
</poem>
Text on page here
See also