Difference between revisions of "Template:ClassTabs"

From Team Fortress Wiki
Jump to: navigation, search
m (+)
m (+icononly)
Line 33: Line 33:
 
  | {{#if:{{{instant|}}}|instant|null}} = {{{instant|}}}
 
  | {{#if:{{{instant|}}}|instant|null}} = {{{instant|}}}
 
  | {{#if:{{{width|}}}|width|null}} = {{{width|}}}
 
  | {{#if:{{{width|}}}|width|null}} = {{{width|}}}
  | icon1 = {{Class link|size={{{size|{{{icon-size|24px}}}}}}|Scout}}
+
  | icon1 = {{{{#if:{{{icononly|}}}|Icon class|Class link}}|size={{{size|{{{icon-size|24px}}}}}}|Scout}}
  | icon2 = {{Class link|size={{{size|{{{icon-size|24px}}}}}}|Soldier}}
+
  | icon2 = {{{{#if:{{{icononly|}}}|Icon class|Class link}}|size={{{size|{{{icon-size|24px}}}}}}|Soldier}}
  | icon3 = {{Class link|size={{{size|{{{icon-size|24px}}}}}}|Pyro}}
+
  | icon3 = {{{{#if:{{{icononly|}}}|Icon class|Class link}}|size={{{size|{{{icon-size|24px}}}}}}|Pyro}}
  | icon4 = {{Class link|size={{{size|{{{icon-size|24px}}}}}}|Demoman}}
+
  | icon4 = {{{{#if:{{{icononly|}}}|Icon class|Class link}}|size={{{size|{{{icon-size|24px}}}}}}|Demoman}}
  | icon5 = {{Class link|size={{{size|{{{icon-size|24px}}}}}}|Heavy}}
+
  | icon5 = {{{{#if:{{{icononly|}}}|Icon class|Class link}}|size={{{size|{{{icon-size|24px}}}}}}|Heavy}}
  | icon6 = {{Class link|size={{{size|{{{icon-size|24px}}}}}}|Engineer}}
+
  | icon6 = {{{{#if:{{{icononly|}}}|Icon class|Class link}}|size={{{size|{{{icon-size|24px}}}}}}|Engineer}}
  | icon7 = {{Class link|size={{{size|{{{icon-size|24px}}}}}}|Medic}}
+
  | icon7 = {{{{#if:{{{icononly|}}}|Icon class|Class link}}|size={{{size|{{{icon-size|24px}}}}}}|Medic}}
  | icon8 = {{Class link|size={{{size|{{{icon-size|24px}}}}}}|Sniper}}
+
  | icon8 = {{{{#if:{{{icononly|}}}|Icon class|Class link}}|size={{{size|{{{icon-size|24px}}}}}}|Sniper}}
  | icon9 = {{Class link|size={{{size|{{{icon-size|24px}}}}}}|Spy}}
+
  | icon9 = {{{{#if:{{{icononly|}}}|Icon class|Class link}}|size={{{size|{{{icon-size|24px}}}}}}|Spy}}
 
  | {{#if:{{{all-class|}}}|icon10|null}} = [[File:TF2 crosshair orange.png|24px|link=Classes{{if lang}}]] {{ucfirst:{{MediaWiki:Searchall{{if lang}}}}}}
 
  | {{#if:{{{all-class|}}}|icon10|null}} = [[File:TF2 crosshair orange.png|24px|link=Classes{{if lang}}]] {{ucfirst:{{MediaWiki:Searchall{{if lang}}}}}}
  
Line 62: Line 62:
 
* {{code|notitle}} – Hide box title from top bar
 
* {{code|notitle}} – Hide box title from top bar
 
* {{code|name}} – name of the template
 
* {{code|name}} – name of the template
 +
* {{code|orientation}} &ndash; <code>vertical</code> or <code>horizontal</code>
 
* {{code|selected}} &ndash; tab to automatically display
 
* {{code|selected}} &ndash; tab to automatically display
 
* {{code|size}} &ndash; size of class icons
 
* {{code|size}} &ndash; size of class icons
 
* {{code|width}} &ndash; control the width of the box
 
* {{code|width}} &ndash; control the width of the box
 +
* {{code|icononly}} &ndash; only display the class icons (no text labels)
 
* {{code|instant}} &ndash; set to 'yes' to disable animations
 
* {{code|instant}} &ndash; set to 'yes' to disable animations
 
* {{code|<class name>}} &ndash; content ({{code|scout}}, {{code|soldier}}, {{code|pyro}}, etc, {{code|all-class}} for the all-class tab).
 
* {{code|<class name>}} &ndash; content ({{code|scout}}, {{code|soldier}}, {{code|pyro}}, etc, {{code|all-class}} for the all-class tab).

Revision as of 01:05, 18 May 2011

Documentation for ClassTabs

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

Parameters

  • title – box title
  • notitle – Hide box title from top bar
  • 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