Template:Page tabs: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
Line 4: | Line 4: | ||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
{{ | {{Page_Tabs | ||
|class=optional-custom-class | |class=optional-custom-class | ||
|default=1 | |default=1 |
Revision as of 03:59, 23 July 2024
This template creates a tabbed interface using the Tabs extension.
Usage
{{Page_Tabs |class=optional-custom-class |default=1 |tab1name=Tab 1 Title |tab1content=Content for Tab 1 |tab2name=Tab 2 Title |tab2content=Content for Tab 2 |tab3name=Tab 3 Title |tab3content=Content for Tab 3 |tab4name=Tab 4 Title |tab4content=Content for Tab 4 |tab5name=Tab 5 Title |tab5content=Content for Tab 5 }}
- You can specify up to 5 tabs.
- The `class` and `default` parameters are optional.
- Tabs 4 and 5 will only appear if content is provided for them.
Examples
Basic Usage
{{Tabs |tab1name=Introduction |tab1content=Welcome to our wiki. |tab2name=Features |tab2content=* Feature 1 * Feature 2 * Feature 3 |tab3name=Contact |tab3content=Email: example@example.com }}
Advanced Usage
{{Tabs |class=my-custom-class |default=2 |tab1name=About |tab1content=About our company... |tab2name=Products |tab2content=Our product lineup... |tab3name=Services |tab3content=Services we offer... |tab4name=Contact |tab4content=How to reach us... }}