Template:ClassTabs: Difference between revisions

From the Portal Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 20: Line 20:
  | {{#if:{{{instant|}}}|instant|null}} = {{{instant|}}}
  | {{#if:{{{instant|}}}|instant|null}} = {{{instant|}}}
  | {{#if:{{{width|}}}|width|null}} = {{{width|}}}
  | {{#if:{{{width|}}}|width|null}} = {{{width|}}}
  | icon1 = Hats
  | icon1 = {{item name|headgear}}
  | icon2 = {{|size={{{size|{{{icon-size|24px}}}}}}|Misc}}
  | icon2 = {{item name|misc items}}
  | icon3 = {{|size={{{size|{{{icon-size|24px}}}}}}|Skins}}
  | icon3 = {{item name|skins}}
  | icon4 = {{|size={{{size|{{{icon-size|24px}}}}}}|Gestures}}
  | icon4 = {{item name|gestures}}
  | {{#if:{{{all-class|}}}|icon10|null}} = [[File:TF2 crosshair orange.png|24px|link=Classes{{if lang}}]] {{#if:{{{icononly|}}}||{{ucfirst:{{MediaWiki:Searchall{{if lang}}}}}}}}
  | {{#if:{{{all-class|}}}|icon10|null}} = [[File:TF2 crosshair orange.png|24px|link=Classes{{if lang}}]] {{#if:{{{icononly|}}}||{{ucfirst:{{MediaWiki:Searchall{{if lang}}}}}}}}



Latest revision as of 04:09, 23 May 2011

The template above may be partially or fully invisible or glitched due to the respected strings aren't entered.
This is normal.

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 = hats
| size     = 24px

| hats    = hats
| gestures  = gestures
| skins     = skins 
| misc  = misc
}}
[hide]Classes
  • Headgear
  • Misc. Items
  • Skins
  • Gestures
hats
misc
skins
gestures
show;hide

See also