Template:TabView

From Bohemia Interactive Community
Jump to navigation Jump to search

This template allows for horizontal tabs.

This template is used on these pages.

Usage

{{TabView|title1..10|content1..10|selected}}

  • title1..10: named parameter - tab #'s title
  • content1..10: named parameter - tab #'s content
  • selected: named parameter - selected tab (not 0-based index, e.g 1 = first tab, 2 = second etc)
Examples
Code Result
{{Tabs}}
{{TabView |title1= Tab 1 title}}
Tab 1 title
{{TabView |title1= Tab 1 title |content1= First tab content, yay!}}
Tab 1 title
First tab content, yay!
{{Tabs |title1= Tab 1 title |title2= Tab 2 title}}
Tab 1 title
Tab 2 title
{{TabView |title1= Tab 1 title |content1= First tab content... |title2= Tab 2 title |content2= Second tab content, yay!}}
Tab 1 title
Tab 2 title
First tab content...
Second tab content, yay!
{{TabView |selected= 2 |title1= Tab 1 title |content1= First tab content... |title2= Tab 2 title |content2= Second tab content, yay!}}
Tab 1 title
Tab 2 title
First tab content...
Second tab content, yay!