Jump to content

Template:Cricket uniform/doc

From Simple English Wikipedia, the free encyclopedia

Specification

[change source]

This template was created to easily show the colours or uniforms used by a cricket team. It is not usually used be used directly on a page, more commonly inside an infobox such as {{infobox cricket team}}. It is based on {{Baseball uniform}} and therefore ultimately on {{Football kit}}; see additional documentation there.

Examples

[change source]

A simple set of whites

{{Cricket uniform
| pattern_la    = 
| pattern_b     = _collar
| pattern_ra    = 
| pattern_pants = 
| leftarm       = fffff0
| body          = fffff0
| rightarm      = fffff0
| pants         = fffff0
| title         = A simple set of whites
}}

Something more colourful with patterned kit

{{Cricket uniform
| pattern_la    = _navyborder
| pattern_b     = _blue_stripes
| pattern_ra    = _navyborder
| pattern_pants = 
| leftarm       = cc00cc
| body          = cc00cc
| rightarm      = cc00cc
| pants         = 00ddee
| title         = Something more colourful with patterned kit
}}

Parameters

[change source]

The parameters for this template are as follows:

Note: arm patterns are identified as left and right from the reader's point of view (as opposed to the shirt-wearer's point of view).

Parameter Description
pattern_la pattern modifier for left arm
pattern_b pattern modifier for body
pattern_ra pattern modifier for right arm
pattern_pants pattern modifier for trousers
leftarm colour modifier for left arm
body colour modifier for body
rightarm colour modifier for right arm
pants colour modifier for shorts
title title that appears under the template as rendered

You may specify the optional parameter |filetype= to use a different image format than the default PNG. For example, setting "filetype = svg" will direct the template to SVG files. When using this optional parameter, you must ensure that all of the images you want to use exist in the format that you select. Currently, most images only exist as PNG files and will not work with the SVG setting.

See also

[change source]