Difference between revisions of "User:AdvanS3b/StylesTab"

From Team Fortress Wiki
Jump to: navigation, search
(test)
Line 5: Line 5:
 
  | orientation = {{{orientation|vertical}}}
 
  | orientation = {{{orientation|vertical}}}
 
  | {{#if:{{{selected|}}}|selected|null}} = {{#switch:{{lc:{{{selected|}}}}}
 
  | {{#if:{{{selected|}}}|selected|null}} = {{#switch:{{lc:{{{selected|}}}}}
   | scout   = 1
+
   | test1   = 1
   | soldier  = 2
+
   | test2    = 2
   | pyro    = 3
+
   | test3    = 3
   | demoman  = 4
+
   | test4    = 4
   | heavy   = 5
+
   | test5   = 5
 
   | #default = 1
 
   | #default = 1
 
   }}
 
   }}
Line 15: Line 15:
 
  | {{#if:{{{instant|}}}|instant|null}} = {{{instant|}}}
 
  | {{#if:{{{instant|}}}|instant|null}} = {{{instant|}}}
 
  | {{#if:{{{width|}}}|width|null}} = {{{width|}}}
 
  | {{#if:{{{width|}}}|width|null}} = {{{width|}}}
  | icon1 = {{Paint name|Australium Gold}}
+
  | icon1 = {{Paint name|Mann Co. Orange}}
  | icon2 = {{Paint name|Australium Gold}}
+
  | icon2 = {{Paint name|{{BASEPAGENAME}}}}
  | icon3 = {{Paint name|Australium Gold}}
+
  | icon3 = {{Paint name|styles }}
 
  | icon4 = {{Paint name|Australium Gold}}
 
  | icon4 = {{Paint name|Australium Gold}}
 
  | icon5 = {{Paint name|Australium Gold}}
 
  | icon5 = {{Paint name|Australium Gold}}
Line 29: Line 29:
 
{{doc begin}}
 
{{doc begin}}
 
Wrapper for {{tl|Tabs}} with class-specific tabs.
 
Wrapper for {{tl|Tabs}} with class-specific tabs.
 
=== Parameters ===
 
* {{code|title}} – box title
 
* {{code|notitle}} – Hide box title from top bar
 
* {{code|name}} – name of the template
 
* {{code|selected}} – tab to automatically display
 
* {{code|size}} – size of class icons
 
* {{code|width}} – control the width of the box
 
* {{code|instant}} – 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).
 
 
=== Example ===
 
<pre>
 
{{User:AdvanS3b/StylesTab
 
| title    = Styles
 
| selected = heavy
 
| size    = 24px
 
 
| scout    = Scout
 
| soldier  = Soldier
 
| pyro    = Pyro
 
| demoman  = Demoman
 
| heavy    = Heavy
 
}}
 
</pre>
 
  
 
{{User:AdvanS3b/StylesTab
 
{{User:AdvanS3b/StylesTab

Revision as of 01:16, 13 May 2011

Documentation for AdvanS3b/StylesTab

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


See also