Template:Tabs/doc

This template is used to create tabs to help to navigate through subpages. This template was created originally by the One Piece Wiki and all credit goes to them.
 * Description

This template uses the CSS associated to the class  on MediaWiki:Common.css and the associated JS codes on MediaWiki:Common.js.
 * Dependencies

Note: the CSS also uses CSS variables that are unique to . If you wish to export this template on another wiki, either substitute the CSS variables with normal values or make your own.


 * Syntax

All parameters are optional.
 * Parameters
 * colorscheme= name of a color scheme to use from MediaWiki:ColorSchemes.css.
 * root= full name of the root page, namespace included, default:.
 * root title= name to display in the tab for the root page link, default: the name used for root=.
 * show root= if equals to  the root tab will be hidden.
 * root tooltip= tooltip to display.
 * tab #= name of a subpage to link with a new tab. A maximum of 20 subpage tabs are supported.
 * tab # title= name to display in the tab for the subpage link, default: the name used for tab #=. If tab #= is left empty, but tab # title= is defined, then a tab without link will be displayed.
 * tab # tooltip= tooltip to display.
 * subtab #= A second Tabs can be nested to create second-level tabs under tab #=.


 * Examples

The above example is created with the following code:

The above example is created with the following code:

The above example is created with the following code:

Using two Tabs adjacent to each other will change the style of the second one a bit. The above example is created with the following code:

The above example is created with the following code:

It's possible to rearrange the tabs in a second level, even if the have the same "root", by making a tab without a link and a subtab. The above example is created with the following code:


 * Notes
 * Use subpages only when absolutely necessary, since they break up the content and it's not a good SEO practice (regardless of the use of this template). Avoid using 2nd level subpages for the same reasons.
 * Tab templates should use the "Design" template type.
 * This template is displayed on mobile as a simple list of links.
 * The basic functionality of making one-level tabs does not require the use of JavaScript.


 * See also
 * Category:Specific Tab Templates.