Difference between revisions of "Template:MLBBioRet"

From blackwiki
Jump to navigation Jump to search
imported>Y2kcrazyjoker4
(more sensible margins to match the "quotebox" .css class)
imported>Y2kcrazyjoker4
(fixing margin when float location is not declared)
Line 1: Line 1:
<includeonly>{| style="width: 100px; font-size: 90%; float:{{{Align|right}}}; border: 2px solid #aaa; margin: {{ #switch: {{{Align}}} | right = 0.5em 0 0.8em 1.4em | center = auto | 0.5em 1.4em 0.8em 0}};"
+
<includeonly>{| style="width: 100px; font-size: 90%; float:{{{Align|right}}}; border: 2px solid #aaa; margin: {{ #switch: {{{Align}}} | right = 0.5em 0 0.8em 1.4em | center = auto | left = 0.5em 1.4em 0.8em 0 | 0.5em 0 0.8em 1.4em}};"
 
|-
 
|-
 
| colspan="2" style="text-align: center;" | [[image:{{{Image}}}|95px]]
 
| colspan="2" style="text-align: center;" | [[image:{{{Image}}}|95px]]

Revision as of 05:11, 30 July 2020

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

This infobox shows an image representing the retired number of Major League Baseball player.

Usage

This infobox may be added by copy-pasting the template as shown below into an article.

{{MLBBioRet
|Align = 
|Image  =
|Name   =
|Number =
|Team   =
|Display=
|Year   =
|Ref    = <!-- <ref></ref> -->
}}

Parameters

All parameters must be capitalized.

Parameter Explanation
Align left, right or center; defaults to right
Image The full name of the image without markup
Name Name of the player
Number Player's number
Team Name of team Wikipedia article
Display Displayed team name (if different from article name)
Year Year of retirement
Ref A reference supporting the retired number claim. Use <ref>...</ref> tags.

Example

{{MLBBioRet
|Image  = YankeesRetired3.svg
|Name   = Babe Ruth
|Number = 3
|Team   = New York Yankees
|Year   = 1948
}}
95px
Babe Ruth's number 3 was retired by the New York Yankees in 1948.

See also