Difference between revisions of "Template:Infobox MLB player/testcases"
Jump to navigation
Jump to search
imported>Frietjes |
imported>John Cline (Save testcase) |
||
| Line 1: | Line 1: | ||
| − | {{ | + | {{infobox |
| + | | bodyclass = bordered vcard | ||
| + | | bodystyle = width: {{{width|25em}}}; text-align: left; font-size: 95%; | ||
| − | == | + | | headerstyle= {{Baseball primary color|{{{team}}}}}; {{Baseball secondary color|{{{team}}}}} |
| + | | abovestyle = {{Baseball primary color|{{{team}}}}}; {{Baseball secondary color|{{{team}}}}}; font-size:larger; | ||
| + | | datastyle = text-align:left; | ||
| − | {{ | + | | aboveclass = fn |
| − | + | | above = <span class="note">{{{name}}}</span><!-- | |
| − | + | Top section uses a child box to facilitate a secondary header color, and allow for the two-column bats/throws section | |
| − | + | -->{{infobox|child=yes | |
| − | + | | headerstyle = {{Baseball alternative primary color|{{{team}}}}}; {{Baseball alternative secondary color|{{{team}}}}} | |
| − | + | | labelstyle = text-align:center; font-weight:normal; width:50%; | |
| − | + | | datastyle = text-align:center; | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | | ||
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | == | + | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image<includeonly>|</includeonly>}}}|size={{{image_size|{{{width|}}}}}}|sizedefault=200px|alt={{{alt<includeonly>|</includeonly>}}}|suppressplaceholder=yes}} |
| + | | caption = {{{caption<includeonly>|</includeonly>}}} | ||
| + | |||
| + | | header1 = {{#if:{{{team<includeonly>|</includeonly>}}}|<span class="note" style="font-weight:bold">{{{team}}} {{#if:{{{number<includeonly>|</includeonly>}}}| – No. {{{number|--}}}}}</span>}} | ||
| − | {{ | + | | data2 = {{#if:{{{position<includeonly>|</includeonly>}}}| '''{{{position}}}''' }} |
| − | | | + | | data3 = {{#if:{{{positionplain<includeonly>|</includeonly>}}}| '''{{{positionplain}}}''' }} |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | }} | ||
| − | == | + | | data4 = {{#if:{{{birth_date<includeonly>|</includeonly>}}}{{{birth_place<includeonly>|</includeonly>}}} |
| + | |'''Born:''' {{br separated entries | ||
| + | | 1 = {{{birth_date<includeonly>|</includeonly>}}} | ||
| + | | 2 = {{{birth_place<includeonly>|</includeonly>}}} | ||
| + | }} }} | ||
| + | | data5 = {{#if:{{{death_date<includeonly>|</includeonly>}}}{{{death_place<includeonly>|</includeonly>}}} | ||
| + | |'''Died:''' {{br separated entries | ||
| + | | 1 = {{{death_date<includeonly>|</includeonly>}}} | ||
| + | | 2 = {{{death_place<includeonly>|</includeonly>}}} | ||
| + | }} }} | ||
| − | {{ | + | | label6 = '''{{#if:{{{finalyear|}}}{{{death_date|}}}|Batted|Bats}}:''' {{{bats}}} |
| − | | | + | | data6 = '''{{#if:{{{finalyear|}}}{{{death_date|}}}|Threw|Throws}}:''' {{{throws}}} |
| − | | | + | }}<!-- |
| − | | | + | Second section uses a child box to facilitate a secondary header color |
| − | | | + | -->{{infobox|child=yes |
| − | + | | headerstyle = {{Baseball primary color|{{{team}}}}}; {{Baseball secondary color|{{{team}}}}} | |
| − | | | ||
| − | | | ||
| − | | | ||
| − | | | ||
| − | | throws | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | | ||
| − | | | ||
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | }} | ||
| − | = | + | | header1 = {{#if:{{{debutyear<includeonly>|</includeonly>}}}{{{debutteam<includeonly>|</includeonly>}}}|MLB debut}} |
| − | {{ | + | | data2 = |
| − | | | + | {{#if:{{{debutyear<includeonly>|</includeonly>}}} |
| − | | | + | |{{#if:{{{debutteam<includeonly>|</includeonly>}}} |
| − | | | + | |{{#if:{{{debutdate<includeonly>|</includeonly>}}}|{{{debutdate}}}, }}{{{debutyear}}} for the {{{debutteam}}} |
| − | + | |{{#if:{{{debutdate<includeonly>|</includeonly>}}}|{{{debutdate}}}, }}{{{debutyear}}} | |
| − | + | }} | |
| − | | | + | |{{#if:{{{debutdate<includeonly>|</includeonly>}}}|{{{debutdate}}}, }}{{{debutteam<includeonly>|</includeonly>}}} |
| − | | | + | }} |
| − | |||
| − | | | ||
| − | | | ||
| − | | | ||
| − | | | ||
| − | | | ||
| − | |||
| − | | debutdate | ||
| − | | debutyear | ||
| − | |||
| − | |||
| − | | | ||
| − | | | ||
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | }} | ||
| − | == | + | | header3 = {{#if:{{{finalyear<includeonly>|</includeonly>}}}{{{finalteam<includeonly>|</includeonly>}}}|Last MLB appearance}} |
| + | | data4 = | ||
| + | {{#if:{{{finalyear<includeonly>|</includeonly>}}} | ||
| + | |{{#if:{{{finalteam<includeonly>|</includeonly>}}} | ||
| + | |{{#if:{{{finaldate<includeonly>|</includeonly>}}}|{{{finaldate}}}, }}{{{finalyear}}} for the {{{finalteam}}} | ||
| + | |{{#if:{{{finaldate<includeonly>|</includeonly>}}}|{{{finaldate}}}, }}{{{finalyear}}} | ||
| + | }} | ||
| + | |{{#if:{{{finaldate<includeonly>|</includeonly>}}}|{{{finaldate}}}, }}{{{finalteam<includeonly>|</includeonly>}}} | ||
| + | }} | ||
| + | }}<!-- | ||
| + | Third section uses a child box to facilitate a secondary header color | ||
| + | -->{{infobox|child=yes | ||
| + | | headerstyle = {{Baseball alternative primary color|{{{team}}}}}; {{Baseball alternative secondary color|{{{team}}}}} | ||
| + | | labelstyle = text-align:right; padding-right:0.5em; | ||
| + | | datastyle = padding-left:0.5em; | ||
| − | {{ | + | | header1 = {{#if:{{{stat1value<includeonly>|</includeonly>}}}{{{stat2value|}}}{{{stat3value|}}}{{{stat4value|}}}{{{stat5value|}}}|Career statistics {{#if:{{{statyear<includeonly>|</includeonly>}}}|<br/>{{small|(through {{{statyear}}})}}}}}} |
| − | | | + | | label2 = {{{stat1label}}} |
| − | | | + | | data2 = {{#if:{{{stat1label<includeonly>|</includeonly>}}}|{{{stat1value<includeonly>|</includeonly>}}}}} |
| − | | | + | | label3 = {{{stat2label}}} |
| − | | | + | | data3 = {{#if:{{{stat2label<includeonly>|</includeonly>}}}|{{{stat2value<includeonly>|</includeonly>}}}}} |
| − | | | + | | label4 = {{{stat3label}}} |
| − | | | + | | data4 = {{#if:{{{stat3label<includeonly>|</includeonly>}}}|{{{stat3value<includeonly>|</includeonly>}}}}} |
| − | | | + | | label5 = {{{stat4label}}} |
| − | | | + | | data5 = {{#if:{{{stat4label<includeonly>|</includeonly>}}}|{{{stat4value<includeonly>|</includeonly>}}}}} |
| − | | | + | | label6 = {{{stat5label}}} |
| − | | | + | | data6 = {{#if:{{{stat5label<includeonly>|</includeonly>}}}|{{{stat5value<includeonly>|</includeonly>}}}}} |
| − | | | + | | label7 = {{{stat6label}}} |
| − | | | + | | data7 = {{#if:{{{stat6label<includeonly>|</includeonly>}}}|{{{stat6value<includeonly>|</includeonly>}}}}} |
| − | | | + | }} |
| − | | | ||
| − | | | ||
| − | | | ||
| − | | | ||
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | }} | ||
| − | = | + | | header1 = {{#if:{{{formerteams|}}}|Former teams}}<!--deprecated, use teams instead--> |
| + | | data2 = | ||
| + | {{{formerteams|}}} | ||
| − | {{ | + | | header3= {{#if:{{{teams<includeonly>|</includeonly>}}}|Teams}} |
| − | | | + | | data4 = |
| − | | | + | {{{teams<includeonly>|</includeonly>}}} |
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | }} | ||
| − | == | + | | header5 = {{#if:{{{awards|{{{highlights<includeonly>|</includeonly>}}}}}}|Career highlights and awards}} |
| + | | data6 = | ||
| + | {{{awards|{{{highlights<includeonly>|</includeonly>}}}}}} | ||
| − | {{ | + | | header7 = {{#if:{{{hofdate<includeonly>|</includeonly>}}}| |
| − | | | + | <div style="background:#A50024; width:100%">[[National Baseball Hall of Fame and Museum|<span style="color:white;">{{#if:{{{hoffuture|}}}|Incoming }}Member of the National</span>]]</div> |
| − | + | <div style="background:#11225b; width:100%">[[File:Empty Star.svg|20px|link=]] [[File:Empty Star.svg|20px|link=]] [[File:Empty Star.svg|20px|link=]] [[National Baseball Hall of Fame and Museum|<span style="color:white;">Baseball Hall of Fame</span>]] [[File:Empty Star.svg|20px|link=]] [[File:Empty Star.svg|20px|link=]] [[File:Empty Star.svg|20px|link=]]</div><!-- | |
| − | + | -->{{infobox|child=yes | |
| − | + | | labelstyle = text-align:right; padding-right:0.5em; | |
| − | + | | datastyle = padding-left:0.5em; | |
| − | + | | label1 = Induction | |
| − | + | | data1 = {{{hofdate<includeonly>|</includeonly>}}} | |
| − | + | | label2 = Vote | |
| − | + | | data2 = {{{hofvote<includeonly>|</includeonly>}}} | |
| − | + | | label3 = Election Method | |
| − | + | | data3 = {{{hofmethod<includeonly>|</includeonly>}}} | |
| − | + | }} | |
| − | + | }} | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | }} | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | {{ | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | { | ||
| − | |||
| − | |||
| − | {{ | ||
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | | ||
| − | }} | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | | | ||
| − | | | ||
| − | |||
| − | |||
| − | | | ||
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | | ||
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | | | ||
| − | |||
| − | |||
| − | | | ||
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | | | ||
| − | | | ||
| − | | | ||
| − | |||
| − | < | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
}} | }} | ||
Revision as of 08:02, 20 November 2013
| {{{name}}} | |
|---|---|
| [[File:{{{image}}}|200px|alt={{{alt}}}|{{{alt}}}]] {{{caption}}} | |
| {{{team}}} – No. -- | |
| {{{position}}} | |
| {{{positionplain}}} | |
| Born: {{{birth_date}}} {{{birth_place}}} | |
| Died: {{{death_date}}} {{{death_place}}} | |
| Bats: {{{bats}}} | Throws: {{{throws}}} |
| MLB debut | |
| {{{debutdate}}}, {{{debutyear}}} for the {{{debutteam}}} | |
| Last MLB appearance | |
| {{{finaldate}}}, {{{finalyear}}} for the {{{finalteam}}} | |
| Career statistics (through {{{statyear}}}) | |
| {{{stat1label}}} | {{{stat1value}}} |
| {{{stat2label}}} | {{{stat2value}}} |
| {{{stat3label}}} | {{{stat3value}}} |
| {{{stat4label}}} | {{{stat4value}}} |
| {{{stat5label}}} | {{{stat5value}}} |
| {{{stat6label}}} | {{{stat6value}}} |
| Teams | |
| {{{teams}}} | |
| Career highlights and awards | |
| {{{highlights}}} | |
| Induction | {{{hofdate}}} |
| Vote | {{{hofvote}}} |
| Election Method | {{{hofmethod}}} |