|
|
(58 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
− | <includeonly>{{Tabs | + | <div class="plainlinks plainlinks2" style="text-align:center;"> |
− | | title = {{{title}}}
| + | <strong style="font-size: 1.5em;">Template test page</strong> |
− | | name = {{{name}}}
| |
− | | collapsed = {{{collapsed|}}}
| |
− | | orientation = {{{orientation|vertical}}}
| |
− | | {{#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]]
| + | [[File:Unknownweapon.png|256px|link=]] |
− | | 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 ===
| + | <strong> |
− | * {{code|title}} – box title
| + | I use this page for testing global changes in high-use templates.<br/> |
− | * {{code|name}} – name of the template
| + | This page is currently empty. '''[[User:Aperture AI|Go back]]'''.<br/> |
− | * {{code|selected}} – tab to automatically display
| + | </strong> |
− | * {{code|size}} – size of class icons
| + | <center> |
− | * {{code|width}} – control the width of the box
| + | <div style="width: 300px; margin: 5px; border: 1px solid #dddddd; border-radius: 7px; -moz-border-radius: 7px"> |
− | * {{code|instant}} – set to 'yes' to disable animations
| + | <div style="padding: 3px; background-color: #dddddd; border-radius: 7px 7px 0 0; font-weight: 700;">Previously tested templates:</div> |
− | * {{code|<class name>}} – content ({{code|scout}}, {{code|soldier}}, {{code|pyro}}, etc, {{code|all-class}} for the all-class tab).
| + | <small> |
− | | + | * [[Template:Backpack item|Backpack item]] - custom icon |
− | === Example ===
| + | * [[Template:Item infobox|Item infobox]] - custom icon |
− | <pre> | + | * [[Template:Item infobox|Item infobox]] - new team color box |
− | {{User:Aperture AI/Template:Test
| + | </small> |
− | | title = Classes
| + | </div> |
− | | name = ClassTabs
| + | </center> |
− | | selected = heavy
| |
− | | size = 24px
| |
− | | |
− | | scout = Scout
| |
− | | soldier = Soldier
| |
− | | pyro = Pyro
| |
− | | demoman = Demoman
| |
− | | heavy = Heavy
| |
− | | engineer = Engineer
| |
− | | medic = Medic
| |
− | | sniper = Sniper
| |
− | | spy = Spy
| |
− | }}
| |
− | </pre> | |
− | | |
− | {{User:Aperture AI/Template:Test
| |
− | | 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> | |