Template:Tabs: Difference between revisions

From The Coffin of Andy and Leyley

(Undo revision 310 by Ashley Graves (talk))
Tag: Undo
m (Wrap actual code in a includeonly)
Line 1: Line 1:
<div style="font-size:{{{font-size|97%}}}; text-align:center; margin-bottom:0px; clear:both; font-variant:small-caps; font-family:Faustina;">
<includeonly><div style="font-size:{{{font-size|97%}}}; text-align:center; margin-bottom:0px; clear:both; font-variant:small-caps; font-family:Faustina;">
{{#ifeq:{{{base|{{SUBPAGENAME}}}}}|{{PAGENAME}}| <!-- main page -->
{{#ifeq:{{{base|{{SUBPAGENAME}}}}}|{{PAGENAME}}| <!-- main page -->
<div style="min-width:{{{minwidth|5.6}}}em; max-width:{{{maxwidth|10}}}em; float:left; border:1.5px solid {{{activeborder|{{{bordercolor|gray}}}}}}; -moz-border-radius-topright: {{{borderradius|4}}}px; -moz-border-radius-topleft: {{{borderradius|4}}}px; border-top-right-radius: {{{borderradius|4}}}px; border-top-left-radius: {{{borderradius|4}}}px; -webkit-border-top-right-radius: {{{borderradius|4}}}px; -webkit-border-top-left-radius: {{{borderradius|4}}}px; padding: .0em 0.5em; height:{{{height|2.5}}}em; margin-bottom:10px; margin-right:3.5px; background-color:{{{backcolor|#DDDDDD}}}; font-size:100%; font-weight:bold;">
<div style="min-width:{{{minwidth|5.6}}}em; max-width:{{{maxwidth|10}}}em; float:left; border:1.5px solid {{{activeborder|{{{bordercolor|gray}}}}}}; -moz-border-radius-topright: {{{borderradius|4}}}px; -moz-border-radius-topleft: {{{borderradius|4}}}px; border-top-right-radius: {{{borderradius|4}}}px; border-top-left-radius: {{{borderradius|4}}}px; -webkit-border-top-right-radius: {{{borderradius|4}}}px; -webkit-border-top-left-radius: {{{borderradius|4}}}px; padding: .0em 0.5em; height:{{{height|2.5}}}em; margin-bottom:10px; margin-right:3.5px; background-color:{{{backcolor|#DDDDDD}}}; font-size:100%; font-weight:bold;">
Line 135: Line 135:
}}
}}
}}<br style="clear:both;" />
}}<br style="clear:both;" />
</div><noinclude>
</div></includeonly><noinclude>


==Usage==
==Usage==

Revision as of 16:58, 2 January 2024


Usage

{{Tabs

|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

Note

Borrowed from MDZS wiki.