Template:JsTabs
Template documentation (for the above template, sometimes hidden or invisible)
- 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
-
- Uses javascript called upon from an id. See MediaWiki:Common.js/JsTabs.js.
- 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>
Visit Template:JsTabs/doc to edit this text! (How does this work?)
Done editing it? Refresh this page! (Why?)
Done editing it? Refresh this page! (Why?)