Difference between revisions of "Template:ClassTabs"

From Team Fortress Wiki
Jump to: navigation, search
m (+icononly)
m
Line 31: Line 31:
 
  | {{#if:{{{edit10|{{{editallclass|}}}}}}|edit10|null}}  = {{{edit10|{{{editallclass|}}}}}}
 
  | {{#if:{{{edit10|{{{editallclass|}}}}}}|edit10|null}}  = {{{edit10|{{{editallclass|}}}}}}
 
  | {{#if:{{{notitle|}}}|notitle|null}} = {{{notitle|}}}
 
  | {{#if:{{{notitle|}}}|notitle|null}} = {{{notitle|}}}
 +
| {{#if:{{{noheader|}}}|noheader|null}} = {{{noheader|}}}
 
  | {{#if:{{{instant|}}}|instant|null}} = {{{instant|}}}
 
  | {{#if:{{{instant|}}}|instant|null}} = {{{instant|}}}
 
  | {{#if:{{{width|}}}|width|null}} = {{{width|}}}
 
  | {{#if:{{{width|}}}|width|null}} = {{{width|}}}
Line 60: Line 61:
 
=== Parameters ===
 
=== Parameters ===
 
* {{code|title}} – box title
 
* {{code|title}} – box title
* {{code|notitle}} – Hide box title from top bar
+
* {{code|notitle}} &ndash; Hide <code>title</code> from top bar
 +
* {{code|noheader}} &ndash; Hide top bar completely
 
* {{code|name}} &ndash; name of the template
 
* {{code|name}} &ndash; name of the template
 
* {{code|orientation}} &ndash; <code>vertical</code> or <code>horizontal</code>
 
* {{code|orientation}} &ndash; <code>vertical</code> or <code>horizontal</code>

Revision as of 01:14, 18 May 2011

Documentation for ClassTabs

Wrapper for {{Tabs}} with class-specific tabs.

Parameters

  • title – box title
  • notitle – Hide title from top bar
  • noheader – Hide top bar completely
  • name – name of the template
  • orientationvertical or horizontal
  • selected – tab to automatically display
  • size – size of class icons
  • width – control the width of the box
  • icononly – only display the class icons (no text labels)
  • instant – set to 'yes' to disable animations
  • <class name> – content (scout, soldier, pyro, etc, all-class for the all-class tab).

Example

{{ClassTabs
| title    = Classes
| name = ClassTabs
| selected = heavy
| size     = 24px

| scout    = Scout
| soldier  = Soldier
| pyro     = Pyro
| demoman  = Demoman
| heavy    = Heavy
| engineer = Engineer
| medic    = Medic
| sniper   = Sniper
| spy      = Spy
}}
[hide]Classes
Scout
Soldier
Pyro
Demoman
Heavy
Engineer
Medic
Sniper
Spy
show;hide

See also