Tabbed Sections#
This JSPWikiStyle allows to add tabbed sections to your wiki pages, similar to the ones used in edit or page-info mode. The formatting of the tabs can be customised in the jspwiki.css.
This feature is now part of the standard JSPWiki v2.3.x. Initially it appeared as part
of the BrushedTemplate.
--DF, Aug 05
Usage#
Enclose all tabbed sections inside a %%tabbedSection ../%. Next, add each tabbed section inside a %%tab-tabname .. /%. Replace tabname with the name of your tab: use only alphanumeric characters or a dash in the name of your tabs (no other punctuations), the name of the tab may not start with a digit. (css classname restrictions) Use ~CapitalisedWords for multi-word tabnames.
When the page loads, only the first tab will be visible. All other sections are hidden, until you click the corresponding tab.
%%tabbedSection %%tab-ThisIsMyFirstTab Some text inside the first tab. /% %%tab-ThisIsMyLastTab Some other text inside the second tab. /% /%
Reality check: #
Notes / FAQ#
- How can you float content next to a tabbed section ?
- A %%tabbedSections always occupies the full width of the page, and does not allow to float other content next to it. Use css trickery to work around this limitation: wrap the %%tabbedSection in a floating block with a reduced width.