Help:Tabview

From Memory Alpha, the free Star Trek reference.

Jump to: navigation, search
Help  Contents → Tabview

Tabview allows for the creation of tabbed tables. JavaScript must be enabled to use this extension.

[edit] Syntax

The basic syntax of the tabview extension is:

<tabview title="title text">
tab 1 link|tab text|cache|active
tab 2 link|tab text|cache|active
tab 3 link|tab text|cache|active
tab 4 link|tab text|cache|active
</tabview>
where "tab x link" is a valid Memory Alpha page name, "tab text" is the (optional) tab text, "cache" (optional, true or false) is whether or not to cache the indicated page, and "active" (optional, true or false) is whether or not to make the tab active. For example:
'''<tabview title="Particles">'''
baryon
boson||true|true
electron
meson
</tabview>
would produce
Particles

Note that if two or more tabs are specified as active, the last one listed becomes the active tab. If no tabs are specified as active, then the table remains collapsed until the user selects a tab.

Personal tools