Template:Tabber: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<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}}}"}}>
<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>
{{{content{{#var:key}}}}}</div>}}</div><templatestyles src="Tabber/styles.css"/></includeonly><noinclude>
Used for inserting a tab box containing any number of content tabs. __NOTOC__
Used for inserting a tab box containing any number of content tabs.


== About ==
== About ==

Revision as of 12:50, December 29, 2023

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

About

Use cases

This system is currently approved for use with infobox images for the following templates:

In articles, it should not be used for anything other than infobox images for pre-approved cases.

Rule of thumb

Tabber should be limited to infobox images which would be stacked vertically in the infobox if we didn't have tabber. In other words:

  • Don't add additional images to the infobox just because tabber exists
  • If the images can fit side-by-side, then they should not be tabbified

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]]}}