|
|
(42 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
− | <includeonly>{{User:Aperture AI/Template:Test/cell | + | <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|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
| |
− | | #default = 1
| |
− | }}
| |
− | | {{#if:{{{instant|}}}|instant|null}} = {{{instant|}}}
| |
− | | {{#if:{{{width|}}}|width|null}} = {{{width|}}}
| |
− | | icon1 = [[{{{file-1}}}|70px]]
| |
− | | icon2 = [[{{{file-2}}}|70px]]
| |
− | | icon3 = [[{{{file-3}}}|70px]]
| |
− | | icon4 = [[{{{file-4}}}|70px]]
| |
− | | icon5 = [[{{{file-5}}}|70px]]
| |
− | | icon6 = [[{{{file-6}}}|70px]]
| |
− | | icon7 = [[{{{file-7}}}|70px]]
| |
− | | icon8 = [[{{{file-8}}}|70px]]
| |
− | | icon9 = [[{{{file-9}}}|70px]]
| |
− | | icon10 = [[{{{file-10}}}|70px]]
| |
− | | {{#if:{{{file-desc-11|}}}|icon11|null}} = {{Icon class|class=Random|icon-size={{{icon-size|24px}}}|link=Classes}} {{ucfirst:{{MediaWiki:Searchall{{if lang}}}}}}
| |
− | <div style="float:left; height:500px; width:300px; overflow:scroll; margin:0; margin-left:10px; margin-bottom:10px; | |
− | | content1 = [[{{{file-1}}}|border|center|500px]]
| |
− | | content2 = [[{{{file-2}}}|border|center|500px]]
| |
− | | content3 = [[{{{file-3}}}|border|center|500px]]
| |
− | | content4 = [[{{{file-4}}}|border|center|500px]]
| |
− | | content5 = [[{{{file-5}}}|border|center|500px]]
| |
− | | content6 = [[{{{file-6}}}|border|center|500px]]
| |
− | | content7 = [[{{{file-7}}}|border|center|500px]]
| |
− | | content8 = [[{{{file-8}}}|border|center|500px]]
| |
− | | content9 = [[{{{file-9}}}|border|center|500px]]
| |
− | | content10 = [[{{{file-10}}}|border|center|500px]]
| |
− | | {{#if:{{{all-class|}}}|content10|null}} = {{{all-class|}}}</div>
| |
− | }}</includeonly><noinclude>
| |
− | {{doc begin}}
| |
− | Wrapper for {{tl|Tabs}} with class-specific tabs.
| |
| | | |
− | === Parameters ===
| + | [[File:Unknownweapon.png|256px|link=]] |
− | * {{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 ===
| + | <strong> |
− | <pre> | + | I use this page for testing global changes in high-use templates.<br/> |
− | {{User:Aperture AI/Template:Test
| + | This page is currently empty. '''[[User:Aperture AI|Go back]]'''.<br/> |
− | | title = Classes
| + | </strong> |
− | | name = ClassTabs
| + | <center> |
− | | selected = heavy
| + | <div style="width: 300px; margin: 5px; border: 1px solid #dddddd; border-radius: 7px; -moz-border-radius: 7px"> |
− | | size = 24px
| + | <div style="padding: 3px; background-color: #dddddd; border-radius: 7px 7px 0 0; font-weight: 700;">Previously tested templates:</div> |
− | | + | <small> |
− | | scout = Scout
| + | * [[Template:Backpack item|Backpack item]] - custom icon |
− | | soldier = Soldier
| + | * [[Template:Item infobox|Item infobox]] - custom icon |
− | | pyro = Pyro
| + | * [[Template:Item infobox|Item infobox]] - new team color box |
− | | demoman = Demoman
| + | </small> |
− | | heavy = Heavy
| + | </div> |
− | | engineer = Engineer
| + | </center> |
− | | medic = Medic
| |
− | | sniper = Sniper
| |
− | | spy = Spy
| |
− | }}
| |
− | </pre> | |
− | | |
− | {{User:Aperture AI/Template:Test
| |
− | | title = Promo images
| |
− | | name = Slideshow
| |
− | | selected = file-4
| |
− | | size = 10px
| |
− | | |
− | | file-1 = File:Poker night cover.jpg
| |
− | | file-desc-1 = Poker
| |
− | | file-2 = File:Max ears.jpg
| |
− | | file-desc-2 = Max
| |
− | | file-3 = File:Soldier worms small.png
| |
− | | file-desc-3 = Worms
| |
− | | file-4 = File:Rift.jpg
| |
− | | file-desc-4 = Rift
| |
− | | file-5 = File:Tf2 items.jpg
| |
− | | file-desc-5 = Ellis
| |
− | | file-6 = File:Soldier engy.png
| |
− | | file-desc-6 = Hatless
| |
− | | file-7 = File:Mbsf promo.jpg
| |
− | | file-desc-7 = MBSF | |
− | | file-8 = File:Poker night cover.jpg
| |
− | | file-desc-8 = Poker 2 | |
− | | file-9 = File:Rift.jpg
| |
− | | file-desc-9 = Rift 2 | |
− | }}
| |
− | | |
− | == See also ==
| |
− | * {{tl|Tabs}}
| |
− | | |
− | </noinclude> | |