Template:Tabs

From Team Fortress Wiki
Revision as of 18:06, 15 November 2025 by BrazilianNut (talk | contribs) (Parameters: Expanded descriptions of some of the parameters; added descriptions for commonly used parameters that weren't listed.)
Jump to: navigation, search
[hide]{{{title}}}
  • {{{icon1}}}
{{{content1}}}
show;hide

Documentation for Tabs

Parameters

title
Title of the Tabs.
notitle
Tabs with no title. Only the selected tab's name is shown on the header.
iconn
Name displayed on the tabs/buttons. Replace n with a number up to 45.
contentn
Content displayed when clicking on the tabs/buttons. Replace n with a number up to 45.
orientation (optional)
Orientation of the tabs/buttons. Accepts vertical and horizontal (defaults to vertical).
width (optional)
Width of the tabs. Accepts both px and % values (defaults to 800px).
noalign (optional)
Set it to 1 to align the Tabs to the left (defaults to 0 and aligns the Tabs to center).
collapsed (optional)
Set it to 1 to load the article with contents hidden (defaults to 0 and loads them shown).

Example

{{Tabs
| title = Tabs example
| orientation = vertical
| icon1 = Tab #1
| icon2 = Tab #2
| content1 =
Hello Wiki! Look at my cool hat!
<gallery>
File:Engineer Wiki Cap.png
</gallery>
| content2 =
I lost my hat :(
<gallery>
File:Engineerhumiliation.png
</gallery>
}}

generates:

[hide]Tabs example
  • Tab #1
  • Tab #2
Hello Wiki! Look at my cool hat!
I lost my hat :(
show;hide