Actions

Tabs

Often when people want to have tabs in tables or in forms in MediaWiki they turn to the Header Tabs extension. Header Tabs works by simply taking all of your first level headers, such as = General = and turning them into tabs. Foreground removes the need for the Header Tabs extension by including tab functionality directly via the Foundation framework. Foreground's native tabs are faster, more flexible, and are responsive by default.

Here is an example of what the tabs look like using the "Header Tabs" extension:

Some text to show in the Lorem tab.

Some text to show in the Eleifend tab.

Some text to show in the Urna tab.

Some text to show in the Magna tab.

The code to generate these tabs with the "Header Tabs" extension:

= Lorem =
Some text to show in the Lorem tab.
= Eleifend =
Some text to show in the Eleifend tab.
= Urna =
Some text to show in the Urna tab.
= Magna =
Some text to show in the Magna tab.
<headertabs />


Now using Foreground's built in tabs!

Lorem ipsum dolor sit amet, ornare neque quisque etiam posuere voluptatem erat, scelerisque ornare tellus duis arcu eget ullamcorper. Lectus orci tincidunt augue tristique. Libero mus augue tortor urna, mauris sollicitudin fusce vestibulum nec, erat blandit in placerat ultrices, facilisis interdum consectetuer. Maecenas in unde, dolor a est ornare placerat dicta, ut nostra. Vehicula aliquam erat arcu. Nibh integer vestibulum natoque lacinia quis. A felis euismod sapien, eu dapibus, adipiscing in risus fringilla, hendrerit maecenas in dolor, vel nullam a.

Eleifend vel ut ultrices, vestibulum elit eget tempus urna mauris pede, nec ipsum congue penatibus vehicula cras, suspendisse nunc vitae consectetuer feugiat mauris id, hac odio pellentesque suscipit hymenaeos mattis. Penatibus etiam habitasse, in donec libero vivamus orci fermentum, congue risus auctor in, libero diam velit eget ad, aenean nam etiam faucibus wisi. Fringilla ultricies quam erat placerat, nec purus sit proin. Nulla diam sapien in massa. Nonummy sollicitudin. Aliquet risus. Aenean commodo sit inventore ridiculus.

Urna sed. Integer pellentesque odio sem donec accumsan, vel amet ultrices lobortis ac neque, diam quam lobortis enim vestibulum, ut consectetuer class interdum sit neque donec. Venenatis ullamcorper et sagittis porttitor tincidunt, rhoncus mauris sagittis, sagittis risus mi ante elit volutpat libero. Hac placerat vitae curae, voluptas quam adipiscing urna, luctus elit duis, euismod ornare nec nisl ac ac, minim dolor et metus id vel quia. Malesuada vivamus dui ut nec aliquam vel. Explicabo eget placerat auctor nam, luctus vitae sed libero urna consectetuer, nulla lacus habitasse eligendi, lorem quia, mauris nisl tortor nascetur lacus vestibulum. Varius bibendum amet sapien, pellentesque velit aliquet vitae ac maxime, posuere ipsum pellentesque nisl risus viverra dictum. Consectetuer leo sapien enim orci vel, feugiat proin orci ut commodo nullam tellus, at donec tempus dapibus, orci massa commodo lectus vel ante, interdum leo dolor elit. Lacus wisi morbi urna, pede dictum praesent mi leo. Quis ipsum metus id sit mauris ipsum. Dui elit feugiat cum cras, suscipit a imperdiet et, enim lectus inventore donec aliquet, cubilia tincidunt. Aliquam potenti vestibulum feugiat molestie.

Magna pede, dignissim diam diam, in ac quis molestie felis, facilisis rhoncus, est vestibulum libero suspendisse. Ac sed eget est arcu, tempus hac, maecenas potenti eu, aliquam sit praesent vestibulum sapien aliquet. Accumsan aliquam velit aliquam cupidatat orci rhoncus, quis massa cum condimentum enim bibendum ante, leo odio suspendisse id vestibulum nibh. At donec sociis quis leo ac, consectetuer donec, tempus consectetuer congue dolor magna, libero nam in vivamus proin praesent, nulla in et sollicitudin cras. Lorem enim tincidunt convallis mauris a viverra, cras dictumst gravida, pulvinar ut commodo turpis, nonummy dui id.

Lorem ipsum dolor sit amet, ornare neque quisque etiam posuere voluptatem erat, scelerisque ornare tellus duis arcu eget ullamcorper. Lectus orci tincidunt augue tristique. Libero mus augue tortor urna, mauris sollicitudin fusce vestibulum nec, erat blandit in placerat ultrices, facilisis interdum consectetuer. Maecenas in unde, dolor a est ornare placerat dicta, ut nostra. Vehicula aliquam erat arcu. Nibh integer vestibulum natoque lacinia quis. A felis euismod sapien, eu dapibus, adipiscing in risus fringilla, hendrerit maecenas in dolor, vel nullam a.

Eleifend vel ut ultrices, vestibulum elit eget tempus urna mauris pede, nec ipsum congue penatibus vehicula cras, suspendisse nunc vitae consectetuer feugiat mauris id, hac odio pellentesque suscipit hymenaeos mattis. Penatibus etiam habitasse, in donec libero vivamus orci fermentum, congue risus auctor in, libero diam velit eget ad, aenean nam etiam faucibus wisi. Fringilla ultricies quam erat placerat, nec purus sit proin. Nulla diam sapien in massa. Nonummy sollicitudin. Aliquet risus. Aenean commodo sit inventore ridiculus.

Urna sed. Integer pellentesque odio sem donec accumsan, vel amet ultrices lobortis ac neque, diam quam lobortis enim vestibulum, ut consectetuer class interdum sit neque donec. Venenatis ullamcorper et sagittis porttitor tincidunt, rhoncus mauris sagittis, sagittis risus mi ante elit volutpat libero. Hac placerat vitae curae, voluptas quam adipiscing urna, luctus elit duis, euismod ornare nec nisl ac ac, minim dolor et metus id vel quia. Malesuada vivamus dui ut nec aliquam vel. Explicabo eget placerat auctor nam, luctus vitae sed libero urna consectetuer, nulla lacus habitasse eligendi, lorem quia, mauris nisl tortor nascetur lacus vestibulum. Varius bibendum amet sapien, pellentesque velit aliquet vitae ac maxime, posuere ipsum pellentesque nisl risus viverra dictum. Consectetuer leo sapien enim orci vel, feugiat proin orci ut commodo nullam tellus, at donec tempus dapibus, orci massa commodo lectus vel ante, interdum leo dolor elit. Lacus wisi morbi urna, pede dictum praesent mi leo. Quis ipsum metus id sit mauris ipsum. Dui elit feugiat cum cras, suscipit a imperdiet et, enim lectus inventore donec aliquet, cubilia tincidunt. Aliquam potenti vestibulum feugiat molestie.

Magna pede, dignissim diam diam, in ac quis molestie felis, facilisis rhoncus, est vestibulum libero suspendisse. Ac sed eget est arcu, tempus hac, maecenas potenti eu, aliquam sit praesent vestibulum sapien aliquet. Accumsan aliquam velit aliquam cupidatat orci rhoncus, quis massa cum condimentum enim bibendum ante, leo odio suspendisse id vestibulum nibh. At donec sociis quis leo ac, consectetuer donec, tempus consectetuer congue dolor magna, libero nam in vivamus proin praesent, nulla in et sollicitudin cras. Lorem enim tincidunt convallis mauris a viverra, cras dictumst gravida, pulvinar ut commodo turpis, nonummy dui id.


Multiple Tab Sets

You can create a group of horizontal tabs using minimal markup.

HTML MARKUP
<ul class="tabs" data-tab>
  <li class="tab-title active"><a href="#panel1">Tab 1</a></li>
  <li class="tab-title"><a href="#panel2">Tab 2</a></li>
  <li class="tab-title"><a href="#panel3">Tab 3</a></li>
  <li class="tab-title"><a href="#panel4">Tab 4</a></li>
</ul>
<div class="tabs-content">
  <div class="content active" id="panel1">
    <p>This is the first panel of the basic tab example. You can place all sorts of content here including a grid.</p>
  </div>
  <div class="content" id="panel2">
    <p>This is the second panel of the basic tab example. This is the second panel of the basic tab example.</p>
  </div>
  <div class="content" id="panel3">
    <p>This is the third panel of the basic tab example. This is the third panel of the basic tab example.</p>
  </div>
  <div class="content" id="panel4">
    <p>This is the fourth panel of the basic tab example. This is the fourth panel of the basic tab example.</p>
  </div>
</div>
RENDERED HTML

This is the first panel of the basic tab example. You can place all sorts of content here including a grid.

This is the second panel of the basic tab example. This is the second panel of the basic tab example.

This is the third panel of the basic tab example. This is the third panel of the basic tab example.

This is the fourth panel of the basic tab example. This is the fourth panel of the basic tab example.


Vertical Tabs

You can create a group of vertical tabs using minimal markup. Just adding the class vertical changes the orientation of horizontal tabs.

HTML MARKUP
<ul class="tabs vertical" data-tab>
  <li class="tab-title active"><a href="#panel11">Tab 1</a></li>
  <li class="tab-title"><a href="#panel21">Tab 2</a></li>
  <li class="tab-title"><a href="#panel31">Tab 3</a></li>
  <li class="tab-title"><a href="#panel41">Tab 4</a></li>
</ul>
<div class="tabs-content">
  <div class="content active" id="panel11">
    <p>This is the first panel of the basic tab example. You can place all sorts of content here including a grid.</p>
  </div>
  <div class="content" id="panel21">
    <p>This is the second panel of the basic tab example. This is the second panel of the basic tab example.</p>
  </div>
  <div class="content" id="panel31">
    <p>This is the third panel of the basic tab example. This is the third panel of the basic tab example.</p>
  </div>
  <div class="content" id="panel41">
    <p>This is the fourth panel of the basic tab example. This is the fourth panel of the basic tab example.</p>
  </div>
</div>


RENDERED HTML

This is the first panel of the basic tab example. You can place all sorts of content here including a grid.

This is the second panel of the basic tab example. This is the second panel of the basic tab example.

This is the third panel of the basic tab example. This is the third panel of the basic tab example.

This is the fourth panel of the basic tab example. This is the fourth panel of the basic tab example.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.