Difference between revisions of "Template:End tab"

From BTAWiki
Jump to navigation Jump to search
(copy original from wikipedia)
m (5 revisions imported)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>{{esoteric}}<div></noinclude><includeonly><!--
+
<div><includeonly><!--
  
 
-->{{clear}}</div><!--
 
-->{{clear}}</div><!--
-->{{#if:{{{URL-1|}}}|<div style="float:right; margin-top: 0.0em; margin-bottom:3px; background-color: {{{Off tab color|#cee0f2}}}; padding: .2em .6em; font-size: 130%; border: {{{border|1px solid #a3b1bf}}}; {{#if:{{{rounding|}}}|-moz-border-radius: {{{rounding}}} {{{rounding}}} 0 0; border-radius: {{{rounding}}} {{{rounding}}} 0 0;}}"> Next page : {{#switch:{{FULLPAGENAME}}|
+
-->{{#if:{{{URL-1|}}}|<div style="float:right; margin-top: 0.0em; margin-bottom:3px; background-color: {{{Off tab color|#cee0f2}}}; padding: .2em .6em; font-size: 130%; border: {{{border|1px solid #a3b1bf}}}; {{#if:{{{rounding|}}}|border-radius: {{{rounding}}} {{{rounding}}} 0 0;}}"> Next page : {{#switch:{{FULLPAGENAME}}|
 
{{{URL-1}}}=[[{{{URL-2|{{{URL-End|{{{URL-1}}}}}}}}}|'''{{{Tab-2|{{{Tab-End|{{{Tab-1}}}}}}}}}''']]|
 
{{{URL-1}}}=[[{{{URL-2|{{{URL-End|{{{URL-1}}}}}}}}}|'''{{{Tab-2|{{{Tab-End|{{{Tab-1}}}}}}}}}''']]|
 
{{{URL-2}}}=[[{{{URL-3|{{{URL-End|{{{URL-1}}}}}}}}}|'''{{{Tab-3|{{{Tab-End|{{{Tab-1}}}}}}}}}''']]|
 
{{{URL-2}}}=[[{{{URL-3|{{{URL-End|{{{URL-1}}}}}}}}}|'''{{{Tab-3|{{{Tab-End|{{{Tab-1}}}}}}}}}''']]|
Line 14: Line 14:
 
{{{URL-10}}}=[[{{{URL-End|{{{URL-1}}}}}}|'''{{{Tab-End|{{{Tab-1}}}}}}''']]|
 
{{{URL-10}}}=[[{{{URL-End|{{{URL-1}}}}}}|'''{{{Tab-End|{{{Tab-1}}}}}}''']]|
 
}}<span style="font-size: larger; font-weight: bold;">&rarr;</span><!--
 
}}<span style="font-size: larger; font-weight: bold;">&rarr;</span><!--
--><div style="clear:both"></div></div>|<div style="clear:both"></div>}}</div></includeonly><noinclude>{{doc|content=
+
--><div style="clear:both"></div></div>|<div style="clear:both"></div>}}</div></includeonly><noinclude>{{doc}}</noinclude>
 
 
; Purpose : To create a tabbed interface for usage on portals and projects, help pages and user pages.<br />'''''Do not use in the encyclopaedic mainspace'''''
 
; 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>
 
 
 
==Specification and Parameters==
 
* The maximum number of available tabs is 10.
 
* To use the next page feature, end the page with the {{tl|End tab}} template.
 
* It is possible to define the following optional parameters :
 
** <code>border=</code> : set border style.
 
** <code>Off tab color=</code> : color of the currently unselected tabs and box
 
** <code>rounding=</code> : add rounding effect to edges of tab boxes.
 
 
 
==Example==
 
===Basic===
 
''Example for [[w:Wikipedia: WikiProject Athletics]]''
 
<poem><code><nowiki>
 
{{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
 
}}
 
</nowiki></code></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
 
{{{{FULLPAGENAME}}
 
|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
 
}}
 
 
 
===Stylised===
 
''Example for [[w:Wikipedia: WikiProject Athletics]]''
 
<poem><code><nowiki>
 
{{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
 
}}
 
</nowiki></code></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
 
{{{{FULLPAGENAME}}
 
|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
 
}}
 
 
 
==See also==
 
* {{tl|Start tab}}
 
* {{tl|Tab}}
 
* {{tl|Page tabs}}
 
 
 
[[Category:Formatting templates]]
 
 
 
}}</noinclude>
 

Latest revision as of 21:36, 30 October 2020