Template:Tabber: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
mNo 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:{{{float|}}}|go{{{float}}}}}" style="{{#if:{{{width|}}}|width:{{{width}}};}}{{#if:{{{height|}}}|height:{{{height}}}}}">
{{#if:{{{tab1|}}}|<div class="tabbertab" title="{{{title1}}}">
{{#if:{{{tab1|}}}|<div class="tabbertab" title="{{{title1}}}">
{{{tab1}}}
{{{tab1}}}
Line 86: Line 86:
|tab3=Tab content 3}}</pre>
|tab3=Tab content 3}}</pre>


An optional <code>width</code> parameter can be set to define the width of the tab box, and an optional <code>float</code> parameter can be set to <code>left</code> or <code>right</code> to have the tab box float next to the page content.
Optional <code>width</code> and <code>height</code> parameters can be set to define the dimensions of the tab box, and an optional <code>float</code> parameter can be set to <code>left</code> or <code>right</code> to have the tab box float next to the page content.


[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 13:19, February 23, 2019

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

{{tabber
|title1=Tab name 1
|tab1=Tab content 1
|title2=Tab name 2
|tab2=Tab content 2
|title3=Tab name 3
|tab3=Tab content 3}}

Optional width and height parameters can be set to define the dimensions of the tab box, and an optional float parameter can be set to left or right to have the tab box float next to the page content.