Difference between revisions of "Template:ClassTabs"

From Team Fortress Wiki
Jump to: navigation, search
m (Fixing missing bracket that caused a reference to a non existant template 'Style' across 300 pages)
Line 19: Line 19:
 
   | #default = 1
 
   | #default = 1
 
   }}
 
   }}
  | {{#if:{{style|}}}|style|null}}                        = {{{style|}}}
+
  | {{#if:{{{style|}}}|style|null}}                        = {{{style|}}}
 
  | {{#if:{{{edittabs|}}}|edittabs|null}}                = {{{edittabs|}}}
 
  | {{#if:{{{edittabs|}}}|edittabs|null}}                = {{{edittabs|}}}
 
  | {{#if:{{{edit1|{{{editscout|}}}}}}|edit1|null}}      = {{{edit1|{{{editscout|}}}}}}
 
  | {{#if:{{{edit1|{{{editscout|}}}}}}|edit1|null}}      = {{{edit1|{{{editscout|}}}}}}

Revision as of 13:12, 23 February 2012

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