Template:Page tabs: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
| Line 27: | Line 27: | ||
=== Basic Usage === | === Basic Usage === | ||
<pre> | <pre> | ||
{{ | {{Page_Tabs | ||
|tab1name=Introduction | |tab1name=Introduction | ||
|tab1content=Welcome to our wiki. | |tab1content=Welcome to our wiki. | ||
| Line 41: | Line 41: | ||
=== Advanced Usage === | === Advanced Usage === | ||
<pre> | <pre> | ||
{{ | {{Page_Tabs | ||
|class=my-custom-class | |class=my-custom-class | ||
|default=2 | |default=2 | ||
Revision as of 04:00, 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
{{Page_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
{{Page_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...
}}