August 12th, 2019 🚌 Wiki Weekly #21! 📚

It's the back to school period! Let's contribute on pages related to that! Take a look!

Latest Announcements

Template:Tab2

From Zelda Wiki, the Zelda encyclopedia
Jump to: navigation, search

Purpose

This template provides a bare-bones alternative to Template:Tab. With this template, the position of the tabs in relation to their content can be changed from top to bottom.

This template can create up to 20 tabs.

Usage

To use this template, start with this layout:

{{Tab2
|format= 
|align= 
|default= 
|tabsPerRow= 
|tab1= 
|content1= 
|tab2= 
|content2= 
...
|tab20= 
|content20= 
}}
  • format — The position of the tabs in relation to their contents. Defaults to "top".
  • align — Align the template to the left, right, or center. Defaults to center.
  • height — The height of the tab contents section. Fits to the contents if left blank. Base this on the largest content tab.
  • default — The tab to display when the page first loads. Defaults to "1"
  • tabsPerRow — Sets the number of tabs to display per row.
  • tab# — The name of each tab. Try to keep the names short as long names tend to look bad. You can also use images here. However, if you do, they should be entered with a blank "link=" parameter, or the linking to nothing option of Template:Image. If you neglect to do this, clicking the tab will take you to the that page instead of loading the tab.
  • content# — The content you want to display for each tab.
The above documentation is transcluded from Template:Tab2/Documentation. (edit | history)