Template:Tabber: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
No edit summary
mNo edit summary
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><div class="tabber {{#if:{{{float|}}}|go{{{float}}}}}" style="{{#if:{{{width|}}}|width:{{{width}}};}}{{#if:{{{height|}}}|height:{{{height}}}}}">
<includeonly><div class="tabber {{#if:{{{align|}}}|go{{{align}}}}}" {{#if:{{{width|}}}|style="width:{{{width}}}"}}>{{#forargs:title|key|value|<div class="tabbertab" title="{{#var:value}}" {{#if:{{{height|}}}|style="height:{{{height}}}"}}>
{{#if:{{{tab1|}}}|<div class="tabbertab" title="{{{title1}}}">
{{{content{{#var:key}}}}}</div>}}</div><templatestyles src="Tabber/styles.css"/></includeonly><noinclude>
{{{tab1}}}
Used for inserting a tab box containing any number of content tabs.
</div>}}{{#if:{{{tab2|}}}|
<div class="tabbertab" title="{{{title2}}}">
{{{tab2}}}
</div>}}{{#if:{{{tab3|}}}|
<div class="tabbertab" title="{{{title3}}}">
{{{tab3}}}
</div>}}{{#if:{{{tab4|}}}|
<div class="tabbertab" title="{{{title4}}}">
{{{tab4}}}
</div>}}{{#if:{{{tab5|}}}|
<div class="tabbertab" title="{{{title5}}}">
{{{tab5}}}
</div>}}{{#if:{{{tab6|}}}|
<div class="tabbertab" title="{{{title6}}}">
{{{tab6}}}
</div>}}{{#if:{{{tab7|}}}|
<div class="tabbertab" title="{{{title7}}}">
{{{tab7}}}
</div>}}{{#if:{{{tab8|}}}|
<div class="tabbertab" title="{{{title8}}}">
{{{tab8}}}
</div>}}{{#if:{{{tab9|}}}|
<div class="tabbertab" title="{{{title9}}}">
{{{tab9}}}
</div>}}{{#if:{{{tab10|}}}|
<div class="tabbertab" title="{{{title10}}}">
{{{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></includeonly><noinclude>
Used for inserting a tab box containing up to 25 content tabs. Format:


<pre>{{tabber
== Usage ==
|title1=Tab name 1
'''Optional parameters''' (not needed in most cases): <code>align</code> (left/right/center), <code>width</code>, <code>height</code>.
|tab1=Tab content 1
|title2=Tab name 2
|tab2=Tab content 2
|title3=Tab name 3
|tab3=Tab content 3}}</pre>


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.
=== Infoboxes ===
When used in an infobox, downscaled images should be set to the same width. For example:
 
<pre>{{tabber|title1=Tab 1|content1=[[File:Image 1.png|250px]]|title2=Tab 2|content2=[[File:Image 2.png|250px]]}}</pre>


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

Latest revision as of 14:12, December 4, 2023

Used for inserting a tab box containing any number of content tabs.

Usage

Optional parameters (not needed in most cases): align (left/right/center), width, height.

Infoboxes

When used in an infobox, downscaled images should be set to the same width. For example:

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