FANDOM


{{{tab1}}}


[edit] 50px Template documentation
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.

Dependencies

This template uses !. To fix a color visualization problem in monobook this CSS code should be added:

table, abbr, acronym, .explain {
	color:inherit;
	background-color:inherit;
}

(just the table is enough)

Syntax
{{Parent Tab Template
| backcolor     = 
| altbackcolor  = 
| textcolor     = 
| alttextcolor  = 
| bordercolor   = 
| activeborder  = 
| borderradius  = 
| font-size     = 
| height        = 
| minwidth      = 
| maxwidth      = 
| tab1 = 
| custom1 = 
| tab2 =            |title2 = 
| custom2 = 
| tab3 =            |title3 = 
| tab4 =            |title4 = 
| tab5 =            |title5 = 
| tab6 =            |title6 = 
| tab7 =            |title7 = 
| tab8 =            |title8 = 
| tab9 =            |title9 = 
| tab10 =           |title10 =
| tab11 =           |title11 =
| tab12 =           |title12 =
}}
Parameters

All parameters, except tab1, are optional.

  • base - this optional parameter allows a different base pagename to be selected. It can be used to display a set of tabs on a page not included in the tabs.
  • 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;
  • font-size - the text size.
  • 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
  • custom1 & custom2 - these parameters are to be used when using the tab template to customize which basepage article each tab links to for tab1 and tab2. custom2 is to be used on the main basepage, and custom1 is to be used on the second basepage. custom1 and custom2 cannot be used at the same time on the main base page.
Samples
{{Parent Tab Template
|base=Sally
|backcolor=yellow
|altbackcolor=#CCCC
|textcolor=blue
|bordercolor=red
|activeborder=blue
|borderradius=6
|height=2.2
|maxwidth=20
|tab1=Introduction
|tab2=Personality and Relationships
|tab3=Abilities and Powers
|tab4=History
|tab5=Misc.
}}
gives:


{{Parent Tab Template
|base=Sonic
|backcolor=yellow
|altbackcolor=#CCCC
|textcolor=green
|alttextcolor=green
|bordercolor=red
|activeborder=blue
|borderradius=16
|height=2.2
|maxwidth=20
|tab1=Introduction
|tab2=Personality and Relationships |title2=Pers. & Rel.
|tab3=Abilities and Powers |title3=Ab. & Pow.
|tab4=History |title4=Hist.
|tab5=Misc. |title5=Miscellaneous
}}
gives:


Attribution

All credit for this template goes to One Piece Wiki.

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