Help:Tabs

From Armbar Error Society Wiki
Jump to: navigation, search

The Tabs extension does what it says and allows you to embed tabs into a page, which is especially useful for using a single page for multiple gimmicks or alternate universe shenanigans. They come in two flavors, boxed and plain. Boxed is good for little bits of pages that need tabbed content. Plain is good for whole pages as it doesn't add the block surrounding the whole thing.

Examples

Boxed Tabs

Some text or markup!
Text and markup 2. Now this is exciting.

Plain Tabs

Some text or markup!
Text and markup 2. Now this is exciting. You can even wrap a whole page in this.

Code

Plain tabs (For whole pages)

<tabs plain>
<tab block name="Test Tab 1">Some text or markup!</tab>
<tab block name=Test Tab 2">Text and markup 2. Now this is exciting. You can even wrap a whole page in this.</tab>
</tabs>
  • Notice the difference - block ensures your pages will display properly. To use this to have two pages in one, just put the
    <tabs plain>
    and
    <Tab Name="name">
    parts at the very start of your page and
    </tabs>
    at the very end.

Boxed Tabs

<tabs>
<tab name="Test Tab 1">Some text or markup!</tab>
<tab name=Test Tab 2">Text and markup 2. Now this is exciting.</tab>
</tabs>

Linking to Tabs

To link to a tab - For example if you wanted to link specifically to the Aestas tab on the Alice Skye page - Just add a "#Tab_Name" at the end of the page name. For example Alice_Skye#Aestas -DZWA would open up the Alice Skye page and automatically open the Aestas tab. That way you can link a page like so:

[[Alice Skye#Aestas -DZWA|Aestas]]

To get this result: Aestas

Note

Unfortunately, tabbed pages do not automatically generate a table of contents. Just keep that in mind when creating a tabbed page.

Example Pages