Template:ClassTabs: Difference between revisions

From the Portal Wiki
Jump to navigation Jump to search
(I realised i don't need this)
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 = {{|size={{{size|{{{icon-size|24px}}}}}}|Hats}}
  | icon1 = Hats
  | icon2 = {{|size={{{size|{{{icon-size|24px}}}}}}|Misc}}
  | icon2 = {{|size={{{size|{{{icon-size|24px}}}}}}|Misc}}
  | icon3 = {{|size={{{size|{{{icon-size|24px}}}}}}|Skins}}
  | icon3 = {{|size={{{size|{{{icon-size|24px}}}}}}|Skins}}

Revision as of 19:05, 22 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
  • Hats
  • {{|size=24px|Misc}}
  • {{|size=24px|Skins}}
  • {{|size=24px|Gestures}}
{{{content1}}}
{{{content2}}}
{{{content3}}}
{{{content4}}}
show;hide

See also