Site News
Warning: This wiki contains spoilers. Read at your own risk!

Social media: Get in touch with Fire Emblem Wiki on Twitter, Facebook, or Discord!
MediaWiki update: Fire Emblem Wiki has been updated to MediaWiki 1.32.0! If you notice any errors, please report them to a member of our tech support team.

Template:Tab

From Fire Emblem Wiki, your source on Fire Emblem Wiki information. By Fans, for Fans.

{{{tab1}}} {{{tab2}}}

{{{content1}}}

Purpose

This template is a tool to create navigation templates with a tabbed layout. This condenses the overall size of the navigation template but still offers everything in it. This makes navigation templates with a lot of content far less intimidating and much easier to get around. By design, the template will display all the tab contents if the javascript does not load properly.

Usage

This template currently supports up to 15 tabs. This template should usually only be to create navigation boxes. To use this template, start with this layout:

{{Tab
|header=
|default=
|width=
|height=
|constyle= 
|tab1=
|content1=
|tab2=
|content2=
|tab3=
|content3=
...
|tab14=
|content14=
|tab15=
|content15=
}}

header: The content you want to display in the header field of the template. If left blank, the tabs will not be in a stylized container. (Optional.)

default: The tab to display when the page first loads. Defaults to "1". (Optional.)

width: The width of the navigation template. Fits to the contents if left blank. You should base this on what makes the contents look best. (Optional.)

height: The height of the tab contents section. Fits to the contents if left blank. Base this on the largest content tab. Usually 20px per line works best. You may wish to add an addition 20px to account for the bolding that happens when you're on the page for a link, as this might add a new line. (Optional.)

constyle: CSS styles to be applied to the content container. (Optional.)

tab#: The name of each tab. It's best 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. If you neglect to do this, clicking the tab will take you to the that page instead of loading the contents. (Required.)

content#: The content you want to display for each tab. There is no limit here, but you may want to insert line breaks and adjust the width and height parameters to make the whole template look its best. (Required.)

Examples

To see examples of using this template, see the templates:

Origins

This template originated from Zelda Wiki.