Template:Tabber: Difference between revisions
From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
(New Page: <div class="tabber {{#if:{{{class|}}}|{{{class}}}}}" style="{{#if:{{{style|}}}|{{{style}}}}}"> <div class="tabbertab" title="{{{title1}}}"> {{{tab1}}} </div>{{#if:{{{tab2|}}}| <div clas...) |
mNo edit summary |
||
(23 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<div class="tabber {{#if:{{{ | <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}}}"}}> | ||
{{{content{{#var:key}}}}}</div>}}</div><templatestyles src="Tabber/styles.css"/></includeonly><noinclude> | |||
Used for inserting a tab box containing any number of content tabs. | |||
<div class="tabbertab" title="{{ | == Usage == | ||
'''Optional parameters''' (not needed in most cases): <code>align</code> (left/right/center), <code>width</code>, <code>height</code>. | |||
=== Infoboxes === | |||
{{{ | When used in an infobox, downscaled images should be set to the same width. For example: | ||
<div | <pre>{{tabber|title1=Tab 1|content1=[[File:Image 1.png|250px]]|title2=Tab 2|content2=[[File:Image 2.png|250px]]}}</pre> | ||
</div> | [[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]]}}