Difference between revisions of "User:Aperture AI/Template:Test"
Aperture AI (talk | contribs) m |
Aperture AI (talk | contribs) m |
||
Line 1: | Line 1: | ||
− | < | + | <includeonly>{{Tabs |
− | + | | title = {{{title}}} | |
− | | | + | | name = {{{name}}} |
− | + | | collapsed = {{{collapsed|}}} | |
− | + | | orientation = {{{orientation|horizontal}}} | |
− | + | | {{#if:{{{selected|}}}|selected|null}} = {{#switch:{{lc:{{{selected|}}}}} | |
− | + | | file-1 = 1 | |
− | + | | file-2 = 2 | |
− | {{ | + | | file-3 = 3 |
− | + | | file-4 = 4 | |
− | + | | file-5 = 5 | |
− | + | | file-6 = 6 | |
− | + | | file-7 = 7 | |
− | + | | file-8 = 8 | |
− | + | | file-9 = 9 | |
− | + | | file-10 = 10 | |
− | + | | file-11 = 11 | |
− | + | | file-12 = 12 | |
− | + | | file-13 = 13 | |
− | + | | file-14 = 14 | |
− | + | | file-15 = 14 | |
− | {{ | + | | #default = 1 |
− | + | }} | |
− | + | | {{#if:{{{instant|}}}|instant|null}} = {{{instant|}}} | |
− | + | | {{#if:{{{width|}}}|width|null}} = {{{width|}}} | |
− | + | | icon1 = {{Class link|size={{{size|{{{icon-size|24px}}}}}}|Scout}} | |
− | + | | icon2 = {{Class link|size={{{size|{{{icon-size|24px}}}}}}|Soldier}} | |
− | + | | icon3 = {{Class link|size={{{size|{{{icon-size|24px}}}}}}|Pyro}} | |
− | + | | icon4 = {{Class link|size={{{size|{{{icon-size|24px}}}}}}|Demoman}} | |
− | + | | icon5 = {{Class link|size={{{size|{{{icon-size|24px}}}}}}|Heavy}} | |
− | </ | + | | icon6 = {{Class link|size={{{size|{{{icon-size|24px}}}}}}|Engineer}} |
− | + | | icon7 = {{Class link|size={{{size|{{{icon-size|24px}}}}}}|Medic}} | |
− | + | | icon8 = {{Class link|size={{{size|{{{icon-size|24px}}}}}}|Sniper}} | |
− | </ | + | | 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}} – box title | ||
+ | * {{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>}} – 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 titlename
– name of the templateselected
– tab to automatically displaysize
– size of class iconswidth
– control the width of the boxinstant
– 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
{{Tabs}}