Шаблон:Baseball uniform/документація

Матеріал з Вікіпедії — вільної енциклопедії.
Перейти до навігації Перейти до пошуку

Syntax[ред. код]

Template:Baseball uniform is a template for a basic baseball uniform. It is based on ideas from Template:Football kit. Home and away uniforms, using this template, are used by Template:Infobox baseball team, which may be a useful infobox for non-major league teams.

Team colors
Team colors Team colors Team colors
Team colors
Team colours
 
Something
{{Baseball uniform
 | cap           = 0000AA
 | pattern_cap   = _redbill
 | leftarm       = 9999FF
 | pattern_la    = 
 | body          = 0000AA
 | pattern_b     = _baseball_whitepiping
 | rightarm      = 9999FF
 | pattern_ra    = 
 | pants         = 0000AA
 | pattern_pants = _pinstripesonwhite
 | socks         = AA0000
 | title         = Ugly
}}

As with Template:Football_kit, patterns are suffixes to the basic images that make up the template. Thus, in the example above, _thinstripesonwhite gets the body pattern (i.e., pattern_b) with pinstripes on a white field. There are many examples of shirts and sleeves at the talk page for the football kit template (i.e., Template talk:Football kit. However, for baseball we may need special patterns for caps and pants.

Baseball-specific patterns[ред. код]

For new patterns, please use the same dimensions as for the basic patterns. When you upload your pattern image (with the correct name, of course), please add it to the appropriate list below. If it is a shirt, please add it to the talk page for the football kit, as well.

When you create patterns, please use transparency! This allows other users of the template to utilize the images you've created.

Caps[ред. код]

The base image is called 'Image:Kit_baseball_cap.png'. You might need to create a new pattern if the bill of the cap is different from the crown, etc.

(default)
(default)

_redbill
_redbill

_blackcrown
_blackcrown

_yellowbill
_yellowbill

_greenbill
_greenbill

_greencrown
_greencrown

_redcrown
_redcrown

Pants[ред. код]

I called the base image 'Image:Kit_trousers.png' because I was gunshy about the word "pants."

(default)
(default)

_beltongrey
_beltongrey

_beltonwhite
_beltonwhite

_greenbelt
_greenbelt

_pinstripesongrey
_pinstripesongrey

_pinstripesonwhite
_pinstripesonwhite

_pinstripesonwhite_redbelt
_pinstripesonwhite_redbelt

Baseball Shirts[ред. код]

_baseball
_baseball

_baseball whitebuttons
_baseball whitebuttons

_baseball_blackpiping
_baseball_blackpiping

_baseball_doublegreenpiping
_baseball_doublegreenpiping

_baseball_doublepipingongrey
_baseball_doublepipingongrey

_baseball_doublepipingonwhite
_baseball_doublepipingonwhite

_baseball_greypiping
_baseball_greypiping

_baseball_greywhiteshoulderpiping
_baseball_greywhiteshoulderpiping

_baseball_grey_shoulders
_baseball_grey_shoulders

_baseball_pipingonblack
_baseball_pipingonblack

_baseball_pipingongrey
_baseball_pipingongrey

_baseball_pipingonwhite
_baseball_pipingonwhite

_baseball_pinstripes
_baseball_pinstripes

_baseball_pinstripesongrey
_baseball_pinstripesongrey

_baseball_redpiping
_baseball_redpiping

_baseball_unknown
_baseball_unknown

_baseball_whitepiping
_baseball_whitepiping

Generic patterns[ред. код]

The patterns below were created for use with the {{Football kit}} template and may not be appropriate for most baseball uniforms. However, they should give many ideas for what you can do with this framework.

{{{2}}}
[[Image:Kit_{{{1}}}_{{{2}}}.png|{{{2}}}]]