Template:TabRow: Difference between revisions

From TowersWiki

No edit summary
No edit summary
Line 7: Line 7:
{{TabRow |<Tab1Name>|<Tab2Name>|...<TabNName>|name=<name>}}
{{TabRow |<Tab1Name>|<Tab2Name>|...<TabNName>|name=<name>}}
</pre>
</pre>
The <name> field gives the TabRow a name
The <name> field gives the TabRow a name to help with styling.
Give each tab a name via <Tab1Name>, <Tab2Name>, etc, up to <Tab10Name>.
From there, add your [[Template:TabPane]]s to the page.  Note: the <pre>name</pre> field of each [[Template:TabPane]] must match the names of the tabs given to your TabRow.


</noinclude>
</noinclude>

Revision as of 05:30, 21 July 2024

This template creates a row of Template:Tabs. These tabs can be clicked, which will then display the respective Template:TabPane.

Usage

The TabRow uses the following syntax:

{{TabRow |<Tab1Name>|<Tab2Name>|...<TabNName>|name=<name>}}

The <name> field gives the TabRow a name to help with styling. Give each tab a name via <Tab1Name>, <Tab2Name>, etc, up to <Tab10Name>.

From there, add your Template:TabPanes to the page. Note: the

name

field of each Template:TabPane must match the names of the tabs given to your TabRow.