Template:Parent Tab Template

From Pika Fanon
Jump to navigation Jump to search
{{{tab1}}}

This template is supposed to be the base template for other tab templates.

Usage[edit source]

{{Parent Tab Tempate
|backcolor=
|height=
|minwidth=       
|maxwidth=
|tab1=
|tab2=
|tab3=
|tab4=
|tab5=
|tab6=
|tab7=
|tab8=
}}

All parameters, except tab1, are optional.

  • backcolor - background color of active tab; default #DDDDDD;
  • 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 - like tab2

Example[edit source]

{{Parent Tab Template
|backcolor=yellow
|height=2.2
|maxwidth=20
|tab1=Introduction
|tab2=Personality and Relationships
|tab3=Abilities and Powers
|tab4=History
|tab5=Character Development
|tab6=Misc.
}}

The tabs will link to pages Character, Character/Personality and Relationships, Character/Abilities and Powers, Character/History, Character/Character Development, and Character/Misc.