FANDOM


[edit] [purge] Template-info.png Template documentation

Usage

Normal

If present, template will automatically use subpage name for tab label.

Syntax:

{{TopNav
|Tab1 Name = Main Article Name
|Tab2 Name = Main Article Name/Subpage Name 2
|Tab3 Name = Main Article Name/Subpage Name 3
|Tab4 Name = Main Article Name/Subpage Name 4
}}

Result:



Additionally, tab label can be set manually.

Syntax:

{{TopNav
|Tab1 Name = Tab Name 1
|Tab2 Name = Tab Name 2
|Tab3 Name = Tab Name 3
|Tab3 Label = Tab Name 3 different
|Tab4 Name = Tab Name 4
|Tab4 Label = Tab Name 3 different
}}

Result:



Up to 20 tabs can be used.

Syntax:

{{TopNav
|Tab1 Name = Tab Name 1
|Tab2 Name = Tab Name 2
|Tab3 Name = Tab Name 3
|Tab4 Name = Tab Name 4
|Tab5 Name = Tab Name 5
|Tab6 Name = Tab Name 6
|Tab7 Name = Tab Name 7
|Tab8 Name = Tab Name 8
|Tab9 Name = Tab Name 9
|Tab10 Name = Tab Name 10
|Tab11 Name = Tab Name 11
|Tab12 Name = Tab Name 12
|Tab13 Name = Tab Name 13
|Tab14 Name = Tab Name 14
|Tab15 Name = Tab Name 15
|Tab16 Name = Tab Name 16
|Tab17 Name = Tab Name 17
|Tab18 Name = Tab Name 18
|Tab19 Name = Tab Name 19
|Tab20 Name = Tab Name 20
}}

Result:


Separated 1

Additionally template can be set to separate every 5 tabs into different rows, up to 4 rows. First tab goes on the top.

Syntax:

{{TopNav
|Mode = Separate 1
|Tab1 Name = Tab Name 1
|Tab2 Name = Tab Name 2
<!-- Row 2 -->
|Tab6 Name = Tab Name 6
|Tab7 Name = Tab Name 7
|Tab8 Name = Tab Name 8
|Tab9 Name = Tab Name 9
}}

Result:


Syntax:

{{TopNav
|Mode = Separate 1
|Tab1 Name = Tab Name 1
|Tab2 Name = Tab Name 2
<!-- Row 2 -->
|Tab6 Name = Tab Name 6
|Tab7 Name = Tab Name 7
|Tab8 Name = Tab Name 8
|Tab9 Name = Tab Name 9
|Tab10 Name = Tab Name 10
<!-- Row 3 -->
|Tab11 Name = Tab Name 11
|Tab12 Name = Tab Name 12
}}

Result:


Syntax:

{{TopNav
|Mode = Separate 1
|Tab1 Name = Tab Name 1
|Tab2 Name = Tab Name 2
<!-- Row 2 -->
|Tab6 Name = Tab Name 6
|Tab7 Name = Tab Name 7
|Tab10 Name = Tab Name 10
<!-- Row 3 -->
|Tab11 Name = Tab Name 11
|Tab12 Name = Tab Name 12
|Tab13 Name = Tab Name 13
<!-- Row 4 -->
|Tab16 Name = Tab Name 16
|Tab17 Name = Tab Name 17
|Tab18 Name = Tab Name 18
|Tab19 Name = Tab Name 19
}}

Result:


Syntax:

{{TopNav
|Mode = Separate 1
|Tab1 Name = Tab Name 1
|Tab2 Name = Tab Name 2
|Tab3 Name = Tab Name 3
|Tab4 Name = Tab Name 4
|Tab5 Name = Tab Name 5
<!-- Row 2 -->
|Tab6 Name = Tab Name 6
|Tab7 Name = Tab Name 7
|Tab8 Name = Tab Name 8
|Tab9 Name = Tab Name 9
|Tab10 Name = Tab Name 10
<!-- Row 3 -->
|Tab11 Name = Tab Name 11
|Tab12 Name = Tab Name 12
|Tab13 Name = Tab Name 13
|Tab14 Name = Tab Name 14
|Tab15 Name = Tab Name 15
<!-- Row 4 -->
|Tab16 Name = Tab Name 16
|Tab17 Name = Tab Name 17
|Tab18 Name = Tab Name 18
|Tab19 Name = Tab Name 19
|Tab20 Name = Tab Name 20
}}

Result:


Separated 2

Additionally template can be set to separate every 5 tabs into different rows, up to 4 rows. First tab goes on the bottom.

Syntax:

{{TopNav
|Mode = Separate 2
|Tab1 Name = Tab Name 1
|Tab2 Name = Tab Name 2
<!-- Row 2 -->
|Tab6 Name = Tab Name 6
|Tab7 Name = Tab Name 7
|Tab8 Name = Tab Name 8
|Tab9 Name = Tab Name 9
}}

Result:

Community content is available under CC-BY-SA unless otherwise noted.