Jump to content
Menü aufrufen
Toggle preferences menu
Persönliches Menü aufrufen
Nicht angemeldet
Ihre IP-Adresse wird öffentlich sichtbar sein, wenn Sie Änderungen vornehmen.

Vorlage:Parent Tab/doc: Unterschied zwischen den Versionen

Aus DragonballWiki
Vorlage:Parent Tab/doc
Inhalt gelöscht Inhalt hinzugefügt
 
Zeile 105: Zeile 105:
<pre>
<pre>
{{Parent Tab
{{Parent Tab
|base=Usopp
|base=Vegeta
|backcolor=yellow
|backcolor=yellow
|altbackcolor=#CCCC
|altbackcolor=#CCCC
Zeile 115: Zeile 115:
|height=2.2
|height=2.2
|maxwidth=20
|maxwidth=20
|tab1=Introduction
|tab1=Einführung
|tab2=Personality and Relationships |title2=Pers. & Rel.
|tab2=Persönlichkeit und Beziehungen |title2=Pers. & Bez.
|tab3=Abilities and Powers |title3=Ab. & Pow.
|tab3=Fähigkeiten |title3=Fähigkeiten
|tab4=Fähigkeiten |title4=Hist.
|tab4=Sonstiges |title4=Sonstiges
|tab5=Sonstiges |title5=Sonstiges
}}
}}
</pre> gives:<br/>
</pre> gives:<br/>
Zeile 133: Zeile 132:
|height=2.2
|height=2.2
|maxwidth=20
|maxwidth=20
|tab1=Introduction
|tab1=Einführung
|tab2=Personality and Relationships |title2=Pers. & Rel.
|tab2=Persönlichkeit und Beziehungen |title2=Pers. & Bez.
|tab3=Abilities and Powers |title3=Ab. & Pow.
|tab3=Fähigkeiten und Kräfte |title3=Fähigkeiten und Kräfte
|tab4=History |title4=Hist.
|tab4=Sonstiges |title4=Sonstiges
|tab5=Misc. |title5=Miscellaneous
}}
}}



Aktuelle Version vom 3. Oktober 2023, 17:41 Uhr

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 
| backcolor     = 
| altbackcolor  = 
| textcolor     = 
| alttextcolor  = 
| bordercolor   = 
| activeborder  = 
| borderradius  = 
| font-size     = 
| height        = 
| minwidth      = 
| maxwidth      = 
| tab1 = 
| image1 =          |size1  = 
| tab2 =            |title2 = 
                    |image2 =          |size2 = 
| 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
  • image1 - inserts an image that links to the base page (tab1, textcolor & font-size are not needed if this is used)
  • image2 - inserts an image that links to the subpage (i.e. whatever is linked in tab2; use of tab2 is needed here, title2, alttextcolor & font-size are not needed if this is used)
  • size1 - sets the size of the image placed in the image1 parameter
  • size2 - like size1, but applies to the image2 parameter
Samples
{{Parent Tab 
|base=Son-Goku
|backcolor=yellow
|altbackcolor=#CCCC
|textcolor=blue
|bordercolor=red
|activeborder=blue
|borderradius=6
|height=2.2
|maxwidth=20
|tab1=Einführung
|tab2=Geschichte
|tab3=Persönlichkeit und Beziehungen
|tab4=History
|tab5=Misc.
}}

gives:


{{Parent Tab 
|base=Vegeta
|backcolor=yellow
|altbackcolor=#CCCC
|textcolor=green
|alttextcolor=green
|bordercolor=red
|activeborder=blue
|borderradius=16
|height=2.2
|maxwidth=20
|tab1=Einführung
|tab2=Persönlichkeit und Beziehungen |title2=Pers. & Bez.
|tab3=Fähigkeiten |title3=Fähigkeiten
|tab4=Sonstiges |title4=Sonstiges
}}

gives:


Attribution

All credit for this template goes to One Piece Wiki.

See Also

- Category:Tab Templates.

Cookies helfen uns bei der Bereitstellung von DragonballWiki. Durch die Nutzung von DragonballWiki erklärst du dich damit einverstanden, dass wir Cookies speichern.