Template:Football kit
From Wikipedia, the free encyclopedia
This template has a sandbox (edit) for editors to experiment.
This template can be used to display small approximations of a football (or rugby) kit in an article.
Contents |
Usage
Note this is best used as a sub-template of an infobox such as {{Infobox Football club}} or {{Infobox National football team}}. See those templates for usage details.
To insert a standalone instance of a football kit on a page, use {{Football kit box}}.
You may specify the optional parameter "filetype" to use a different image format than the default PNG. Setting "filetype = svg" will use SVG files instead. However, you must first ensure that all of the images you want to use exist in a SVG format. Currently, most images only exist as PNG files and will not work with the SVG setting.
Example
{{Football kit
|alt = Jersey with blue and white vertical stripes, blue shorts, and blue socks
|pattern_la = _white_stripes
|pattern_b = _white_stripes
|pattern_ra = _white_stripes
|pattern_sh =
|pattern_so =
|leftarm = 1F24B4
|body = FFFFFF
|rightarm = 1F24B4
|shorts = 1F24B4
|socks = 1F24B4
|title = Principal
}}
The |alt= parameter is for visually impaired readers; see Wikipedia:Alternative text for images. The |pattern_ra= parameter is the pattern modifier for the right arm, e.g. "_white_stripes" would change the right arm to kit_right_arm_white_stripes.png.
Creating a new pattern
To create a new pattern template follow the examples below. When you have created a new pattern please add it to the list below. Do not create patterns for minor details on a kit, the template is for showing basic team colours. It is not supposed to be an accurate drawing of the kit.
- How to name your file
- Start with Kit_body_ / Kit_right_arm_ / Kit_left_arm_ as required, and end with .png (lower case).
- Never use the word transparent in your file. All files should have one transparent colour.
- Multiple vertical lines are called colourstripes.
- Single vertical lines are called colourvertical.
- Multiple horizontal lines are called colourhoops.
- Single horizontal lines are called colourhorizontal.
- Halves are called colourhalf.
- Sashes are called colourrightsash (/) or colourleftsash (\).
Make sure to include {{Football kit template}} on the image description page.