Template:Tabber: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
m (Protected "Template:Tabber" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
No edit summary
Line 1: Line 1:
<includeonly><div class="tabber" style="{{#if:{{{width|}}}|width:{{{width}}}}}">
<includeonly><div class="tabber {{#if:{{{float|}}}|go{{{float}}}}}" style="{{#if:{{{width|}}}|width:{{{width}}}}}">
{{#if:{{{tab1|}}}|<div class="tabbertab" title="{{{title1}}}">
{{#if:{{{tab1|}}}|<div class="tabbertab" title="{{{title1}}}">
{{{tab1}}}
{{{tab1}}}
Line 29: Line 29:
<div class="tabbertab" title="{{{title10}}}">
<div class="tabbertab" title="{{{title10}}}">
{{{tab10}}}
{{{tab10}}}
</div>}}{{#if:{{{tab11|}}}|
<div class="tabbertab" title="{{{title11}}}">
{{{tab11}}}
</div>}}{{#if:{{{tab12|}}}|
<div class="tabbertab" title="{{{title12}}}">
{{{tab12}}}
</div>}}{{#if:{{{tab13|}}}|
<div class="tabbertab" title="{{{title13}}}">
{{{tab13}}}
</div>}}{{#if:{{{tab14|}}}|
<div class="tabbertab" title="{{{title14}}}">
{{{tab14}}}
</div>}}{{#if:{{{tab15|}}}|
<div class="tabbertab" title="{{{title15}}}">
{{{tab15}}}
</div>}}{{#if:{{{tab16|}}}|
<div class="tabbertab" title="{{{title16}}}">
{{{tab16}}}
</div>}}{{#if:{{{tab17|}}}|
<div class="tabbertab" title="{{{title17}}}">
{{{tab17}}}
</div>}}{{#if:{{{tab18|}}}|
<div class="tabbertab" title="{{{title18}}}">
{{{tab18}}}
</div>}}{{#if:{{{tab19|}}}|
<div class="tabbertab" title="{{{title19}}}">
{{{tab19}}}
</div>}}{{#if:{{{tab20|}}}|
<div class="tabbertab" title="{{{title20}}}">
{{{tab20}}}
</div>}}{{#if:{{{tab21|}}}|
<div class="tabbertab" title="{{{title21}}}">
{{{tab21}}}
</div>}}{{#if:{{{tab22|}}}|
<div class="tabbertab" title="{{{title22}}}">
{{{tab22}}}
</div>}}{{#if:{{{tab23|}}}|
<div class="tabbertab" title="{{{title23}}}">
{{{tab23}}}
</div>}}{{#if:{{{tab24|}}}|
<div class="tabbertab" title="{{{title24}}}">
{{{tab24}}}
</div>}}{{#if:{{{tab25|}}}|
<div class="tabbertab" title="{{{title25}}}">
{{{tab25}}}
</div>}}
</div>}}
</div></includeonly><noinclude>
</div></includeonly><noinclude>
Used for inserting up to 10 tabs on the wiki. The <code>width</code> parameter is optional. Format:
Used for inserting up to 25 tabs on the wiki. Format:


<pre>{{tabber
<pre>{{tabber
|width=260px
|title1=Tab name 1
|title1=Tab name 1
|tab1=Tab content 1
|tab1=Tab content 1
Line 41: Line 85:
|title3=Tab name 3
|title3=Tab name 3
|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.


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

Revision as of 11:23, February 23, 2019

Used for inserting up to 25 tabs on the wiki. 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}}

An optional width parameter can be set to define the width 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.