Template:Tabber/doc

From Elwiki
Revision as of 23:47, 18 March 2022 by Ritsu (talk | contribs) (Created page with "== Overview == This is the refreshed version of Template:Tabs and what you should be using for making tabs now. This version is enhanced with Mobile Frontend support and i...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Overview

This is the refreshed version of Template:Tabs and what you should be using for making tabs now. This version is enhanced with Mobile Frontend support and is generally cleaned up. Also, the syntax has been updated.

Parameters

 Tip: All parameters get parsed as tab=content, unless they start with the $ sign.
  • $containerclass - adds a custom class to the wrapper of the tabs
  • $containerstyle - adds a style to the wrapper of the tabs
  • $tab[number]style - adds styles to the tab on the specified index
  • $tab[number]style - adds styles to the content box on the specified index
  • $tabstyle - adds styles to tabs
  • $contentsstyle - adds styles to content boxes

Example usage

{{Tabber
|$containerclass=test
|Tab 1=Content of tab 1
|Tab 2=Content of tab 2
|Tab 3=Content of tab 3
|Tab 4=Content of tab 4
}}

Result:

  • Tab 1
  • Tab 2
  • Tab 3
  • Tab 4

Content of tab 1

 Tip: Nested tabs are also supported.
  • Tab 1
  • Tab 2
  • Tab 3
  • Tab 4
  • Tab 1
  • Tab 2
  • Tab 3
  • Tab 4

Content of tab 1