Template:Tabber: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly><div class="tabber {{#if:{{{float|}}}|go{{{float}}}}}" style="{{#if:{{{width|}}}|width:{{{width}}}}}">
<includeonly><div class="tabber {{#if:{{{align|}}}|go{{{align}}}}}" style="{{#if:{{{width|}}}|width:{{{width}}}}}">
{{#if:{{{tab1|}}}|<div class="tabbertab" title="{{{title1}}}" style="{{#if:{{{height|}}}|height:{{{height}}}}}">
{{#if:{{{tab1|}}}|<div class="tabbertab" title="{{{title1}}}" style="{{#if:{{{height|}}}|height:{{{height}}}}}">
{{{tab1}}}
{{{tab1}}}

Revision as of 15:32, March 14, 2019

Used for inserting a tab box containing up to 25 content tabs.

When used in an infobox, it's generally recommended to set all images to the same width to keep the tab box a constant width when switching between tabs:

{{tabber|title1=Tab 1|tab1=[[File:Image 1.png|250px]]|title2=Tab 2|tab2=[[File:Image 2.png|250px]]}}

If some of the images are narrower than the rest, it's possible to set the overall tab box width so its size doesn't change:

{{tabber|width=265px|title1=Tab 1|tab1=[[File:Image 1.png|250px]]|title2=Tab 2|tab2=[[File:Image 2.png|175px]]}}

Set the overall tab box width 15px higher than the width of the widest image.