Template:ClassTabs: Difference between revisions
Jump to navigation
Jump to search
DoktorAkcel (talk | contribs) (Created page with "<includeonly>{{Tabs | title = {{{title}}} | name = {{{name}}} | collapsed = {{{collapsed|}}} | orientation = {{{orientation|vertical}}} | {{#if:{{{selected|}}}|selected|null...") |
DoktorAkcel (talk | contribs) No edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
| orientation = {{{orientation|vertical}}} | | orientation = {{{orientation|vertical}}} | ||
| {{#if:{{{selected|}}}|selected|null}} = {{#switch:{{lc:{{{selected|}}}}} | | {{#if:{{{selected|}}}|selected|null}} = {{#switch:{{lc:{{{selected|}}}}} | ||
| | | hats = 1 | ||
| | | misc = 2 | ||
| | | skins = 3 | ||
| | | gestures = 4 | ||
| #default = 1 | | #default = 1 | ||
}} | }} | ||
| {{#if:{{{edittabs|}}}|edittabs|null}} = {{{edittabs|}}} | | {{#if:{{{edittabs|}}}|edittabs|null}} = {{{edittabs|}}} | ||
| {{#if:{{{edit1|{{{ | | {{#if:{{{edit1|{{{edithats|}}}}}}|edit1|null}} = {{{edit1|{{{edithats|}}}}}} | ||
| {{#if:{{{edit2|{{{ | | {{#if:{{{edit2|{{{editmisc|}}}}}}|edit2|null}} = {{{edit2|{{{editmisc|}}}}}} | ||
| {{#if:{{{edit3|{{{ | | {{#if:{{{edit3|{{{editskins|}}}}}}|edit3|null}} = {{{edit3|{{{editskins|}}}}}} | ||
| {{#if:{{{edit4|{{{ | | {{#if:{{{edit4|{{{editgestures|}}}}}}|edit4|null}} = {{{edit4|{{{editgestures|}}}}}} | ||
| {{#if:{{{notitle|}}}|notitle|null}} = {{{notitle|}}} | | {{#if:{{{notitle|}}}|notitle|null}} = {{{notitle|}}} | ||
| {{#if:{{{noheader|}}}|noheader|null}} = {{{noheader|}}} | | {{#if:{{{noheader|}}}|noheader|null}} = {{{noheader|}}} | ||
| {{#if:{{{instant|}}}|instant|null}} = {{{instant|}}} | | {{#if:{{{instant|}}}|instant|null}} = {{{instant|}}} | ||
| {{#if:{{{width|}}}|width|null}} = {{{width|}}} | | {{#if:{{{width|}}}|width|null}} = {{{width|}}} | ||
| icon1 = {{ | | icon1 = {{item name|headgear}} | ||
| icon2 = {{ | | icon2 = {{item name|misc items}} | ||
| icon3 = {{ | | icon3 = {{item name|skins}} | ||
| icon4 = {{ | | 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}}}}}}}} | ||
| content1 = {{{ | | content1 = {{{hats}}} | ||
| content2 = {{{ | | content2 = {{{misc}}} | ||
| content3 = {{{ | | content3 = {{{skins}}} | ||
| content4 = {{{ | | content4 = {{{gestures}}} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{doc begin}} | {{doc begin}} | ||
Line 77: | Line 52: | ||
| title = Classes | | title = Classes | ||
| name = ClassTabs | | name = ClassTabs | ||
| selected = | | selected = hats | ||
| size = 24px | | size = 24px | ||
| | | hats = hats | ||
| | | gestures = gestures | ||
| | | skins = skins | ||
| | | misc = misc | ||
}} | }} | ||
</pre> | </pre> | ||
Line 95: | Line 65: | ||
| title = Classes | | title = Classes | ||
| name = ClassTabs | | name = ClassTabs | ||
| selected = | | selected = hats | ||
| size = 24px | | size = 24px | ||
| | | hats = hats | ||
| | | gestures = gestures | ||
| | | skins = skins | ||
| | | misc = misc | ||
}} | }} | ||
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.
This is normal.
Documentation for ClassTabs
Wrapper for {{Tabs}}
with class-specific tabs.
Parameters
title
– box titlenotitle
– Hidetitle
from top barnoheader
– Hide top bar completelyname
– name of the templateorientation
–vertical
orhorizontal
selected
– tab to automatically displaysize
– size of class iconswidth
– control the width of the boxicononly
– 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 }}
See also
{{Tabs}}