Template:Tabber: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
mNo edit summary
mNo edit summary
 
(16 intermediate revisions by 2 users not shown)
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>
{{abandoned|This template has been [[MarioWiki:Proposals/Archive/68#Remove remaining uses of tabber|repealed]]. It is not to be added to any articles, and any existing usages should be immediately removed.}}
Used for inserting a tab box containing any number of content tabs.
Used for inserting a tab box containing any number of content tabs.


== About ==
== About ==
=== Use cases ===
This system is currently approved for use with infobox images for the following templates:
This system is currently approved for use with infobox images for the following templates:
* {{tem|minigame infobox}} ([[Template talk:Minigame infobox#Image in the infobox|proposal]])
* {{tem|minigame infobox}} ([[Template talk:Minigame infobox#Image in the infobox|proposal]])
* {{tem|race course infobox}} ([[MarioWiki:Proposals/Archive/63#Add tabbers to race.2Fbattle course articles|proposal]])
* {{tem|race course infobox}} ([[MarioWiki:Proposals/Archive/63#Add tabbers to race.2Fbattle course articles|proposal]])


In articles, it should not be used for anything other than infobox images for pre-approved 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 ''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
 
For users without JavaScript, all tabbed imaged will be stacked vertically, so their number of stacked images should remain unchanged.


== Usage ==
== Usage ==
Line 14: Line 25:


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

Latest revision as of 23:14, August 26, 2024

It has been decided that the Super Mario Wiki will no longer support this feature. This page is kept and protected strictly for historical purposes.
Details: This template has been repealed. It is not to be added to any articles, and any existing usages should be immediately removed.

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

For users without JavaScript, all tabbed imaged will be stacked vertically, so their number of stacked images should remain unchanged.

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