Difference between revisions of "Template:Football kit box/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Jonesey95
(edit to attempt linter fix (extra div tag))
imported>Jonesey95
(again)
Line 1: Line 1:
{{#switch: {{#if: {{{align|}}} | {{{align}}} | {{{1|right}}} }}
+
{{#switch: {{{align|right}}}  
 
| left = <div class="thumb tleft">
 
| left = <div class="thumb tleft">
 
| right = <div class="thumb tright">
 
| right = <div class="thumb tright">
Line 17: Line 17:
 
| socks      = {{{socks|}}}
 
| socks      = {{{socks|}}}
 
| title      =  
 
| title      =  
}}</div><div class="thumbcaption">{{{title|}}}</div></div></div>{{#switch: {{#if: {{{align|}}} | {{{align}}} | {{{1|right}}} }}
+
}}</div><div class="thumbcaption">{{{title|}}}</div></div></div>{{#switch: {{{align|right}}}  
 
<!-- close an extra div for center -->
 
<!-- close an extra div for center -->
{{#switch: {{#if: {{{align|}}} | {{{align}}} | {{{1|right}}} }}
 
| left| right = 
 
 
| center|centre = </div>
 
| center|centre = </div>
 
}}<noinclude>
 
}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 19:21, 30 August 2018

Template documentation[view] [edit] [history] [purge]

This template displays a {{football kit}} in a bordered box with a caption, like an image. It can be used to represent strips in articles outside the infobox.

Usage

Syntax is the same as with {{football kit}}, with an additional align attribute which can be set to left, right or center. The default is right if unspecified.

width can also be supplied and defaults to 120 (px).

This template is for creating standalone thumbnail-style boxes for football kit designs.

For detailed instructions see template talk:football kit.

Example

2015-16 colours
{{Football kit box
 | align      = left
 | pattern_la1=_navy_shoulder_patch
 | pattern_b1= 
 | pattern_ra1=_navy_shoulder_patch
 | leftarm    = 
 | body       =000050
 | rightarm   = 
 | shorts     =000050
 | socks      =000050
 | title      = [[Pontypridd Town AFC Home Kit|2015-16]] colours
}}

See also