Jump to content

Template:Parent Tab/doc

From Neptunia Wiki

Description

This template is used to display tabs for pages with subpages.

Syntax

Type {{Parent Tab}} on the top of the page with parameters shown below.

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

{{Parent Tab
|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 = 
}}

or...

{{Parent Tab
|backcolor     = 
|altbackcolor  = 
|textcolor     = 
|alttextcolor  = 
|bordercolor   = 
|activeborder  = 
|borderradius  = 
|height        = 
|minwidth      = 
|maxwidth      = 
|tab1          = 
|tab2          = 
|tab3          = 
|tab4          = 
|tab5          = 
|tab6          = 
|tab7          = 
|tab8          = 
|tab9          = 
}}

Samples

{{Parent Tab
|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
|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:

TemplateData

Creates tabs for pages with subpages. Auto values have been adjusted to match wiki theme.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Background Colorbackcolor

The background color of active tab.

Default
#DDDDDD
Example
red, green or RGB color code (#FF33FF)
Auto value
#8A2BE2
Stringsuggested
Alt. Background Coloraltbackcolor

The alternate background color of inactive tabs.

Default
transparent
Example
transparent, red or RGB color code (#FF0000)
Stringoptional
Text Colortextcolor

The text color of the active tab.

Default
black
Example
red, green or RGB color code (#FF33FF)
Auto value
#FFF
Stringsuggested
Alt. Text Coloralttextcolor

The text color of the inactive tab.

Example
red, green or RGB color code (#FF33FF)
Auto value
#D15FEE
Stringsuggested
Border Colorbordercolor

The border color of every tab.

Default
gray
Example
gray or RGB color code (#C0C0C0)
Auto value
#8A2BE2
Stringsuggested
Active Borderactiveborder

The border color of the active tab.

Stringoptional
Border Radiusborderradius

The border radius of every tab.

Default
4
Auto value
6
Numbersuggested
Heightheight

The height of tabs, in em.

Default
3.8em
Example
3.8em or 3.8
Auto value
2.2
Stringsuggested
Minimum Widthminwidth

Adjusts the minimum width of tabs.

Default
5.0em
Example
5.0em or 5
Stringoptional
Max Widthmaxwidth

The maximum width of tabs, in em.

Default
12.0em
Example
10.0em or 10
Auto value
15
Stringsuggested
Tab 1tab1

The name specified for the parent tab.

Auto value
Overview
Stringrequired
Tab 2tab2

The name specified for the second tab.

Stringsuggested
Title 2title2

The title you want to display in the second tab.

Stringoptional
Tab 3tab3

The name specified for the third tab.

Stringoptional
Title 3title3

The title you want to display in the third tab.

Stringoptional
Tab 4tab4

The name specified for the fourth tab.

Stringoptional
Title 4title4

The title you want to display in the fourth tab.

Stringoptional
Tab 5tab5

The name specified for the fifth tab.

Stringoptional
Title 5title5

The title you want to display in the fifth tab.

Stringoptional
Tab 6tab6

The name specified for the sixth tab.

Stringoptional
Title 6title6

The title you want to display in the sixth tab.

Stringoptional
Tab 7tab7

The name specified for the seventh tab.

Stringoptional
Title 7title7

The title you want to display in the seventh tab.

Stringoptional
Tab 8tab8

The name specified for the eighth tab.

Stringoptional
Title 8title8

The title you want to display in the eighth tab.

Stringoptional
Tab 9tab9

The name specified for the ninth tab.

Stringoptional
Title 9title9

The title you want to display in the ninth tab.

Stringoptional