Template:JsTabs/doc

From Toon Wiki
Revision as of 11:46, 5 January 2014 by imported>ToonWikiBot (Imported from Avatar Wiki)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Description
This template is used to facilitate easy organization of content around Toon Wiki's project pages. It functions by dividing selected content on a single page with separate tabs, revealing the content of one tab by default while hiding the rest. Clicking other tabs will correspondingly reveal their content in addition to hiding that of the previous tab.
Dependencies
Syntax
Type {{JsTabs|<firstTab>|<secondTab>|<...>|<defaultTab>}} on a page you wish to use the tabber.
In order for the template to function, tabbed content must also be divided by div tags with the same id as the tab name. Tabs not open by default must have style="display:none" added alongside the div id. Example:
  • {{JsTabs|2005|2006|default=2005}}
    <div id="2005">2005 Content</div>
    <div id="2006" style="display:none">2006 Content</div>