Difference between revisions of "User:Aperture AI/Template:Test"

From Team Fortress Wiki
Jump to: navigation, search
m
m
Line 1: Line 1:
<div class="poot-tabs-container poot-tabs-{{{orientation|vertical}}} {{#if:{{{collapsed|}}}|poot-tabs-collapsed|}} poot-tabs-selected-{{{selected|1}}} {{#if:{{{instant|}}}|poot-tabs-noanimations}}" style="width:{{{width|}}}; {{#if: {{{noalign|}}}|margin-left:0px; margin-right: 0px;|}} {{{style|}}}">
+
<includeonly>{{Tabs
<div class="poot-tabs-title">{{#if:{{{name|}}}
+
| title = {{{title}}}
  | <span class="poot-tabs-navbar">{{Navbar|{{{name}}}|fontstyle={{{basestyle|}}};{{{titlestyle|}}};border:none;|mini=1}}</span>
+
| name = {{{name}}}
  }}{{#ifeq:{{{state|}}}|off||<span class="poot-tabs-hidelink">&#91;[[#top|{{#if:{{{collapsed|}}}|show|hide}}]]&#93;</span>}}<span class="poot-tabs-titletext">{{{title}}}</span>
+
| collapsed = {{{collapsed|}}}
  </div>
+
| orientation = {{{orientation|horizontal}}}
<div class="poot-tabs">
+
| {{#if:{{{selected|}}}|selected|null}} = {{#switch:{{lc:{{{selected|}}}}}
<ul>
+
  | file-1  = 1
<li class="poot-tabs-selected">{{{desc1}}}</li>
+
  | file-2  = 2
{{#if:{{{desc2|}}}|<li>{{{desc2}}}</li>}}{{
+
  | file-3  = 3
  #if:{{{desc3|}}}|<li>{{{desc3}}}</li>}}{{
+
  | file-4  = 4
  #if:{{{desc4|}}}|<li>{{{desc4}}}</li>}}{{
+
  | file-5  = 5
  #if:{{{desc5|}}}|<li>{{{desc5}}}</li>}}{{
+
  | file-6  = 6
  #if:{{{desc6|}}}|<li>{{{desc6}}}</li>}}{{
+
  | file-7  = 7
  #if:{{{desc7|}}}|<li>{{{desc7}}}</li>}}{{
+
  | file-8  = 8
  #if:{{{desc8|}}}|<li>{{{desc8}}}</li>}}{{
+
  | file-9  = 9
  #if:{{{desc9|}}}|<li>{{{desc9}}}</li>}}{{
+
  | file-10  = 10
  #if:{{{desc10|}}}|<li>{{{desc10}}}</li>}}
+
  | file-11  = 11
</ul>
+
  | file-12  = 12
</div>
+
  | file-13  = 13
<div class="poot-tabs-content">
+
  | file-14  = 14
<div class="poot-tabs-selected">{{{file1}}}</div>
+
  | file-15  = 14
{{#if:{{{desc2|}}}|<div>{{{file2}}}</div>}}{{
+
  | #default = 1
  #if:{{{desc3|}}}|<div>{{{file3}}}</div>}}{{
+
  }}
  #if:{{{desc4|}}}|<div>{{{file4}}}</div>}}{{
+
| {{#if:{{{instant|}}}|instant|null}} = {{{instant|}}}
  #if:{{{desc5|}}}|<div>{{{file5}}}</div>}}{{
+
| {{#if:{{{width|}}}|width|null}} = {{{width|}}}
  #if:{{{desc6|}}}|<div>{{{file6}}}</div>}}{{
+
  | icon1 = {{Class link|size={{{size|{{{icon-size|24px}}}}}}|Scout}}
  #if:{{{desc7|}}}|<div>{{{file7}}}</div>}}{{
+
  | icon2 = {{Class link|size={{{size|{{{icon-size|24px}}}}}}|Soldier}}
  #if:{{{desc8|}}}|<div>{{{file8}}}</div>}}{{
+
| icon3 = {{Class link|size={{{size|{{{icon-size|24px}}}}}}|Pyro}}
  #if:{{{desc9|}}}|<div>{{{file9}}}</div>}}{{
+
  | icon4 = {{Class link|size={{{size|{{{icon-size|24px}}}}}}|Demoman}}
  #if:{{{desc10|}}}|<div>{{{file10}}}</div>}}
+
| icon5 = {{Class link|size={{{size|{{{icon-size|24px}}}}}}|Heavy}}
</div>
+
| icon6 = {{Class link|size={{{size|{{{icon-size|24px}}}}}}|Engineer}}
<!-- Poot translation switching here so that the text inside poot-tabs-showhide says "show;hide" (with this format) in the current language) -->
+
| icon7 = {{Class link|size={{{size|{{{icon-size|24px}}}}}}|Medic}}
<div class="poot-tabs-showhide">show;hide</div>
+
| icon8 = {{Class link|size={{{size|{{{icon-size|24px}}}}}}|Sniper}}
</div>
+
| icon9 = {{Class link|size={{{size|{{{icon-size|24px}}}}}}|Spy}}
 +
| {{#if:{{{all-class|}}}|icon10|null}} = {{Icon class|class=Random|icon-size={{{icon-size|24px}}}|link=Classes}} {{ucfirst:{{MediaWiki:Searchall{{if lang}}}}}}
 +
 
 +
| content1 = [[{{{file-1}}}|300px]]
 +
| content2 = [[{{{file-2}}}|300px]]
 +
| content3 = [[{{{file-4}}}|300px]]
 +
| content4 = [[{{{file-4}}}|300px]]
 +
| content5 = [[{{{file-5}}}|300px]]
 +
| content6 = [[{{{file-6}}}|300px]]
 +
| content7 = [[{{{file-7}}}|300px]]
 +
| content8 = [[{{{file-8}}}|300px]]
 +
| content9 = [[{{{file-9}}}|300px]]
 +
| content10 = [[{{{file-10}}}|300px]]
 +
| content11 = [[{{{file-11}}}|300px]]
 +
| content12 = [[{{{file-12}}}|300px]]
 +
| content13 = [[{{{file-13}}}|300px]]
 +
| content14 = [[{{{file-14}}}|300px]]
 +
| content15 = [[{{{file-15}}}|300px]]
 +
| {{#if:{{{all-class|}}}|content10|null}} = {{{all-class|}}}
 +
}}</includeonly><noinclude>
 +
{{doc begin}}
 +
Wrapper for {{tl|Tabs}} with class-specific tabs.
 +
 
 +
=== Parameters ===
 +
* {{code|title}} &ndash; box title
 +
* {{code|name}} &ndash; name of the template
 +
* {{code|selected}} &ndash; tab to automatically display
 +
* {{code|size}} &ndash; size of class icons
 +
* {{code|width}} &ndash; control the width of the box
 +
* {{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).
 +
 
 +
=== Example ===
 +
<pre>
 +
{{User:Aperture AI/Template:Test
 +
| 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
 +
}}
 +
</pre>
 +
 
 +
{{ClassTabs
 +
| title    = Promo images
 +
| name = Slideshow
 +
| selected = file-4
 +
| size    = 24px
 +
 
 +
| file-1  = File:Poker night cover.jpg
 +
| file-2  = File:Max ears.jpg
 +
| file-3  = File:Soldier worms small.png
 +
| file-4  = File:Rift.jpg
 +
| file-5  = File:Tf2 items.jpg
 +
| file-6  = File:Soldier engy.png
 +
| file-7  = File:Mbsf promo.jpg
 +
| file-8  = Sniper
 +
| file-9  = Spy
 +
}}
 +
 
 +
== See also ==
 +
* {{tl|Tabs}}
 +
 
 +
</noinclude>

Revision as of 20:48, 29 April 2011

Documentation for Aperture AI/Template:Test

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

Parameters

  • title – box title
  • name – name of the template
  • selected – tab to automatically display
  • size – size of class icons
  • width – control the width of the box
  • instant – set to 'yes' to disable animations
  • <class name> – content (scout, soldier, pyro, etc, all-class for the all-class tab).

Example

{{User:Aperture AI/Template:Test
| 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]Promo images
{{{scout}}}
{{{soldier}}}
{{{pyro}}}
{{{demoman}}}
{{{heavy}}}
{{{engineer}}}
{{{medic}}}
{{{sniper}}}
{{{spy}}}
show;hide

See also