Difference between revisions of "Template:Football kit box"

From blackwiki
Jump to navigation Jump to search
imported>Jonesey95
(Fix Linter errors. Add default for align= when value provided does not match any supported options.)
imported>Wikisaurus
(using metatemplate template:image frame)
Line 1: Line 1:
{{#switch: {{{align|right}}}  
+
{{Image frame
| left = <div class="thumb tleft">
+
| width  = {{#if: {{{width|}}} | {{{width|}}} | 120}}
| right = <div class="thumb tright">
+
| content =  
| center|centre = <div class="center"><div class="thumb tnone">
+
{{Football kit
| #default = <div class="thumb tright">
 
}}<div class="thumbinner" style="width: {{{width|120}}}px;"><div class="thumbimage">{{Football kit
 
 
| filetype  = {{{filetype|png}}}
 
| filetype  = {{{filetype|png}}}
 
| alt        = {{{alt|}}}
 
| alt        = {{{alt|}}}
Line 18: Line 16:
 
| socks      = {{{socks|}}}
 
| socks      = {{{socks|}}}
 
| title      =  
 
| title      =  
}}</div><div class="thumbcaption">{{{title|}}}</div></div></div>{{#switch: {{{align|right}}}  
+
}}
<!-- close an extra div for center -->
+
| caption = {{{title|}}}
| center|centre = </div>
+
| link    =
 +
| align  = {{{align|}}}
 
}}<noinclude>
 
}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 13:12, 21 September 2019

50px 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

{{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