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)))
mNo edit summary
 
(19 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><div class="tabber" style="{{#if:{{{width|}}}|width:{{{width}}}}}">
<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>}}
</div></includeonly><noinclude>
Used for inserting up to 10 tabs on the wiki. The <code>width</code> parameter is optional. Format:


<pre>{{tabber
== Usage ==
|width=260px
'''Optional parameters''' (not needed in most cases): <code>align</code> (left/right/center), <code>width</code>, <code>height</code>.
|title1=Tab name 1
 
|tab1=Tab content 1
=== Infoboxes ===
|title2=Tab name 2
When used in an infobox, downscaled images should be set to the same width. For example:
|tab2=Tab content 2
 
|title3=Tab name 3
<pre>{{tabber|title1=Tab 1|content1=[[File:Image 1.png|250px]]|title2=Tab 2|content2=[[File:Image 2.png|250px]]}}</pre>
|tab3=Tab content 3}}</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]]}}