Wikia

Memory Alpha

Help:Tabview

Discuss0
37,600pages on
this wiki
Revision as of 16:37, June 21, 2012 by Renegade54 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Help icon  Contents → Tabview

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

SyntaxEdit

The basic syntax of the tabview extension is:

<tabview id="id 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 id="Particles">
baryon
boson||true|true
electron
meson
</tabview>
would produce

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.

See alsoEdit

Around Wikia's network

Random Wiki