FANDOM


{{{tab1}}}

Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Parent_Tab_Template/doc to edit this documentation. (How does this work?)
Description

This template can be used as it is to display tabs in the subpages of an article, but it's recommended to create another template to easily modify it if necessary.

Syntax
{{Parent Tab Tempate
|backcolor     = 
|altbackcolor  = 
|textcolor     = 
|alttextcolor  = 
|bordercolor   = 
|activeborder  = 
|borderradius  = 
|height        = 
|minwidth      = 
|maxwidth      = 
|tab1 = 
|tab2 =            |title2 = 
|tab3 =            |title3 = 
|tab4 =            |title4 = 
|tab5 =            |title5 = 
|tab6 =            |title6 = 
|tab7 =            |title7 = 
|tab8 =            |title8 = 
|tab9 =            |title9 = 
}}
Parameters

All parameters, except tab1, are optional.
backcolor - background color of active tab; default: #DDDDDD;
altbackcolor - background color of inactive tabs; default: transparent;
textcolor - text color of the active tab; default: black;
alttextcolor - text color of the inactive tab; default: default text link color;
bordercolor - border color of every tab; default: gray;
activeborder - border color of the active tab; default: the same as bordercolor;
borderradius - border radius of every tab; default: 4;
height - height of tabs, in em; default: 3.8em;
minwidth - min. width of tabs, in em; default: 5.0em;
maxwidth - max. width of tabs, in em; default: 12.0em;
tab1 - an arbitrary title of the first tab;
tab2 - title of the second tab; it must correspond to the part after "/" of the name of the page, to which it links
tab3, tab4, tab5, tab6, tab7, tab8, tab9 - like tab2
title2 - the title you want to display in the tab. title3, title4, title5, title6, title7, title8, title9 - like title2

Samples
{{Parent Tab Template
|backcolor=blue
|altbackcolor=#CCCC
|textcolor=black
|bordercolor=red
|activeborder=black
|borderradius=6
|height=2.2
|maxwidth=20
|tab1=Overview
|tab2=Affiliation
|tab3=Relationships
|tab4=Quotes
|tab5=Images
|tab6=Appearance In Other Media
}}
gives:
{{Parent Tab Template
|backcolor=blue
|altbackcolor=#CCCC
|textcolor=black
|alttextcolor=red
|bordercolor=black
|activeborder=blue
|borderradius=16
|height=2.2
|maxwidth=20
|tab1=Overview
|tab2=Affiliation |title2=Affili.
|tab3=Relationships |title3=Relation.
|tab4=Quotes |title4=Quotes
|tab5=Images |title5=Images
|tab6=Appearance In Other Media |title6=Media Appear.
}}
gives:
See Also

- Category:Tab Templates.


Community content is available under CC-BY-SA unless otherwise noted.