Difference between revisions of "Template:Infobox baseball biography"

From Sim Football Wiki
Jump to navigation Jump to search
m (Protected "Template:Infobox baseball biography" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Documentation subpage}}
+
{{infobox
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
+
| child = {{{embed|}}}
{{Person infobox header}}
+
| bodyclass = bordered vcard
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Check for unknown parameters}}
 
{{Uses TemplateStyles|Template:Infobox baseball biography/styles.css}}
 
  
This template can be used to add at-a-glance comparative information to articles on professional baseball players in any league. It is derived from {{tl|Infobox MLB player}}, which now redirects here.
+
| abovestyle = font-size:larger; {{Infobox baseball biography/style|{{{team}}}}}
 +
| datastyle = text-align:left;
  
Team colors are added to the infobox automatically when a team is entered into the team field. The colors are taken from [[Module:Sports color/baseball]].
+
| aboveclass = fn
 +
| {{#ifeq:{{{embed|}}}|yes|title|above}} = {{#ifeq:{{{embed|}}}|yes|<hr />'''Baseball career'''|<span class="note">{{{name|{{PAGENAMEBASE}}}}}</span>}}<!--
 +
  Top section uses a child box to facilitate a difference label/data alignment
 +
-->{{infobox|child=yes
 +
  | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|{{{width|}}}}}}|sizedefault=frameless|upright=1|alt={{{alt|}}}|suppressplaceholder=yes}}
 +
  | caption = {{{caption|}}}
  
== Usage ==
+
  | rowstyle1 = {{Infobox baseball biography/style|{{{team}}}|secondary}}
 +
  | header1 = {{#if:{{{team|}}}|<span class="note" style="font-weight:bold">{{{team}}} {{#if:{{{number|}}}| – No. {{{number|--}}}}}</span>}}
  
=== Common parameters===
+
  | data2 = {{#if:{{{position|}}}| '''{{{position}}}''' }}
 +
  | data3 = {{#if:{{{positionplain|}}}| '''{{{positionplain}}}''' }}
  
{{Parameter names example | name | image | image_size | team | number | position | birth_date | birth_place | death_date | death_place | bats | throws | debutleague | debutdate | debutyear | debutteam | finaldate | finalyear | finalteam | statyear | statleague | stat1label | stat1value | stat2label | stat2value | stat3label | stat3value | teams | highlights | update }}
+
  | data4 = {{#if:{{{birth_name|}}}{{{birth_date|}}}{{{birth_place|}}}
 +
    |'''Born:''' {{br separated entries
 +
      | 1 = {{{birth_name|}}}
 +
      | 2 = {{{birth_date|}}}
 +
      | 3 = {{{birth_place|}}}
 +
    }} }}
 +
  | data5 = {{#if:{{{death_date|}}}{{{death_place|}}}
 +
    |'''Died:''' {{br separated entries
 +
      | 1 = {{{death_date|}}}
 +
      | 2 = {{{death_place|}}}
 +
    }} }}
  
<pre style="font-size:100%; overflow:auto;">
+
  | data6  = {{#if:{{{bats|}}}{{{throws|}}}|
{{Infobox baseball biography
+
<table style="width:100%; border:none;border-collapse:collapse;"><tr>
| name          =  
+
<td style="text-align:center;width:50%; border-width:0 1px 0 0;">{{#if:{{{bats|}}}|'''{{#if:{{{finalyear|}}}{{{death_date|}}}|Batted|Bats}}:''' {{{bats}}}}}</td>
| image        =  
+
<td style="text-align:center;width:50%; border-width:0 0 0 1px;">{{#if:{{{throws|}}}|'''{{#if:{{{finalyear|}}}{{{death_date|}}}|Threw|Throws}}:''' {{{throws}}}}}</td>
| image_size    =
+
</tr></table>}}
| team          =
+
 
| number        =
+
  | rowstyle7 = {{Infobox baseball biography/style|{{{team}}}}}
| position      =
+
  | header7 = {{#if:{{{debutyear|}}}{{{debutteam|}}}|{{#if:{{{debut2league|}}}{{{debut2year|}}}{{{debut2team|}}}{{{debut2date|}}}{{{debut3league|}}}{{{debut3year|}}}{{{debut3team|}}}{{{debut3date|}}}|Professional debut|{{delink|{{{debutleague|}}}}} debut}}}}
| birth_date    =
+
  | data8 =  
| birth_place   =
+
{{#if:{{{debutleague|}}}
| death_date    =  
+
|{{#if:{{{debut2league|}}}{{{debut2year|}}}{{{debut2team|}}}{{{debut2date|}}}{{{debut3league|}}}{{{debut3year|}}}{{{debut3team|}}}{{{debut3date|}}}|'''{{{debutleague}}}:'''|}}
| death_place  =
+
}} {{#if:{{{debutdate|}}}|{{{debutdate}}},&nbsp;
| bats          =
+
}}{{{debutyear|}}}{{#if:{{{debutteam|}}}
| throws        =
+
|{{#if:{{{debutyear|}}}|,&nbsp;for the&nbsp;}}{{{debutteam}}}
| debutleague   =  
+
   }}
| debutdate    =
+
  | data9 =
| debutyear    =
+
{{#if:{{{debut2league|}}}
| debutteam    =
+
|'''{{{debut2league}}}:''' {{#if:{{{debut2date|}}}|{{{debut2date}}},&nbsp;
| finaldate    =
+
  }}{{{debut2year|}}}{{#if:{{{debut2team|}}}
| finalyear    =  
+
|{{#if:{{{debut2year|}}}|,&nbsp;for the&nbsp;}}{{{debut2team}}}
| finalteam    =
+
}}}}
| statleague    =
+
   | data10 =  
| statyear      =
+
{{#if:{{{debut3league|}}}
| stat1label    =
+
|'''{{{debut3league}}}:''' {{#if:{{{debut3date|}}}|{{{debut3date}}},&nbsp;
| stat1value    =  
+
  }}{{{debut3year|}}}{{#if:{{{debut3team|}}}
| stat2label    =  
+
|{{#if:{{{debut3year|}}}|,&nbsp;for the&nbsp;}}{{{debut3team}}}
| stat2value    =  
+
}}}}
| stat3label    =
+
  | data11 =  
| stat3value    =
+
{{#if:{{{debut4league|}}}
| teams        =
+
|'''{{{debut4league}}}:''' {{#if:{{{debut4date|}}}|{{{debut4date}}},&nbsp;
| highlights    =
+
  }}{{{debut4year|}}}{{#if:{{{debut4team|}}}
| update        =
+
|{{#if:{{{debut4year|}}}|,&nbsp;for the&nbsp;}}{{{debut4team}}}
 +
}}}}
 +
 
 +
  | rowstyle13 = {{Infobox baseball biography/style|{{{team}}}}}
 +
  | header13 = {{#if:{{{finalyear|}}}{{{finalteam|}}}|Last {{#if:{{{final2league|}}}{{{final2year|}}}{{{final2team|}}}{{{final2date|}}}{{{final3league|}}}{{{final3year|}}}{{{final3team|}}}{{{final3date|}}}||{{Delink|{{{finalleague|}}}}}}} appearance}}
 +
 
 +
  | data14 =  
 +
{{#if:{{{finalleague|}}}
 +
|{{#if:{{{final2league|}}}{{{final2year|}}}{{{final2team|}}}{{{final2date|}}}{{{final3league|}}}{{{final3year|}}}{{{final3team|}}}{{{final3date|}}}|'''{{{finalleague}}}:'''|}}
 +
}} {{#if:{{{finaldate|}}}|{{{finaldate}}},&nbsp;
 +
  }}{{{finalyear|}}}{{#if:{{{finalteam|}}}
 +
|{{#if:{{{finalyear|}}}|,&nbsp;for the&nbsp;}}{{{finalteam}}}
 
}}
 
}}
</pre>
 
{{clear}}
 
  
===Umpire===
+
  | data15 =
{{parameter names example | position=Umpire | birth_date | birth_place | caption | crew2 | crew3 | crew4 | crewchief | death_date | death_place | debutyear | highlights | hofdate | hoffuture | hofmethod | hofvote | image | image_size | name | number | umpirecrew | width}}
+
{{#if:{{{final2league|}}}
<pre style="font-size:100%; overflow:auto;">
+
|'''{{{final2league}}}:''' {{#if:{{{final2date|}}}|{{{final2date}}},&nbsp;
{{Infobox baseball umpire biography
+
  }}{{{final2year|}}}{{#if:{{{final2team|}}}
| position    = Umpire
+
|{{#if:{{{final2year|}}}|,&nbsp;for the&nbsp;}}{{{final2team}}}
| number      =  
+
}}}}
| name        =  
+
 
| birth_date =  
+
  | data16 =  
| birth_place =  
+
{{#if:{{{final3league|}}}
| death_date =  
+
|'''{{{final3league}}}:''' {{#if:{{{final3date|}}}|{{{final3date}}},&nbsp;
| death_place =  
+
}}{{{final3year|}}}{{#if:{{{final3team|}}}
| image      =  
+
|{{#if:{{{final3year|}}}|,&nbsp;for the&nbsp;
| width      =  
+
  }}{{{final3team}}}
| caption    =  
+
}}}}
| debutyear   =  
+
 
| umpirecrew =  
+
  | data17 =
| crewchief   =  
+
{{#if:{{{final4league|}}}
| crew2      =  
+
|'''{{{final4league}}}:''' {{#if:{{{final4date|}}}|{{{final4date}}},&nbsp;
| crew3      =  
+
}}{{{final4year|}}}{{#if:{{{final4team|}}}
| crew4      =  
+
|{{#if:{{{final4year|}}}|,&nbsp;for the&nbsp;
| highlights =  
+
  }}{{{final4team}}}
| hofdate    =  
+
}}}}
| hofvote    =  
+
 
| hofmethod   =  
+
 
}}
+
}}<!--
</pre>
+
  Middle section uses a child box to facilitate a difference label/data alignment
 +
-->{{infobox|child=yes
 +
  | decat = yes
 +
  | labelstyle = text-align:right; width:50%; padding-right:0.5em;
 +
  | datastyle  = width:50%; padding-left:0.5em;
 +
  | rowstyle1 = {{Infobox baseball biography/style|{{{team}}}|secondary}}
 +
  | header1 = {{#if:{{{stat1value|}}}{{{stat2value|}}}{{{stat3value|}}}{{{stat4value|}}}{{{stat5value|}}}| {{#if:{{{statleague|}}}|{{{statleague}}} statistics|Career statistics}} {{#if:{{{statyear|}}}|<br/>(through {{{statyear}}})}}}}
 +
  | label2 = {{{stat1label}}}
 +
  | data2  = {{#if:{{{stat1label|}}}|{{{stat1value|}}}}}
 +
  | label3 = {{{stat2label}}}
 +
  | data3  = {{#if:{{{stat2label|}}}|{{{stat2value|}}}}}
 +
  | label4 = {{{stat3label}}}
 +
  | data4  = {{#if:{{{stat3label|}}}|{{{stat3value|}}}}}
 +
  | label5 = {{{stat4label}}}
 +
  | data5  = {{#if:{{{stat4label|}}}|{{{stat4value|}}}}}
 +
  | label6 = {{{stat5label}}}
 +
  | data6  = {{#if:{{{stat5label|}}}|{{{stat5value|}}}}}
 +
  | label7 = {{{stat6label}}}
 +
  | data7  = {{#if:{{{stat6label|}}}|{{{stat6value|}}}}}
 +
  | label8 = {{{stat7label}}}
 +
  | data8  = {{#if:{{{stat7label|}}}|{{{stat7value|}}}}}
 +
 
 +
  | rowstyle10 = {{Infobox baseball biography/style|{{{team}}}|secondary}}
 +
  | header10 = {{#if:{{{stat21value|}}}{{{stat22value|}}}{{{stat23value|}}}{{{stat24value|}}}{{{stat25value|}}}| {{#if:{{{stat2league|}}}|{{{stat2league}}} statistics|Career statistics}} {{#if:{{{stat2year|}}}|<br/>(through {{{stat2year}}})}}}}
 +
  | label11 = {{{stat21label}}}
 +
  | data11  = {{#if:{{{stat21label|}}}|{{{stat21value|}}}}}
 +
  | label12 = {{{stat22label}}}
 +
  | data12  = {{#if:{{{stat22label|}}}|{{{stat22value|}}}}}
 +
  | label13 = {{{stat23label}}}
 +
  | data13  = {{#if:{{{stat23label|}}}|{{{stat23value|}}}}}
 +
  | label14 = {{{stat24label}}}
 +
  | data14  = {{#if:{{{stat24label|}}}|{{{stat24value|}}}}}
 +
  | label15 = {{{stat25label}}}
 +
  | data15  = {{#if:{{{stat25label|}}}|{{{stat25value|}}}}}
 +
  | label16 = {{{stat26label}}}
 +
  | data16  = {{#if:{{{stat26label|}}}|{{{stat26value|}}}}}
 +
  | label17 = {{{stat27label}}}
 +
  | data17  = {{#if:{{{stat27label|}}}|{{{stat27value|}}}}}
 +
 
 +
  | rowstyle20 = {{Infobox baseball biography/style|{{{team}}}|secondary}}
 +
  | header20= {{#if:{{{stat31value|}}}{{{stat32value|}}}{{{stat33value|}}}{{{stat34value|}}}{{{stat35value|}}}| {{#if:{{{stat3league|}}}|{{{stat3league}}} statistics|Career statistics}} {{#if:{{{stat3year|}}}|<br/>(through {{{stat3year}}})}}}}
 +
  | label21 = {{{stat31label}}}
 +
  | data21  = {{#if:{{{stat31label|}}}|{{{stat31value|}}}}}
 +
  | label22 = {{{stat32label}}}
 +
  | data22 = {{#if:{{{stat32label|}}}|{{{stat32value|}}}}}
 +
  | label23 = {{{stat33label}}}
 +
  | data23 = {{#if:{{{stat33label|}}}|{{{stat33value|}}}}}
 +
  | label24 = {{{stat34label}}}
 +
  | data24  = {{#if:{{{stat34label|}}}|{{{stat34value|}}}}}
 +
  | label25 = {{{stat35label}}}
 +
  | data25  = {{#if:{{{stat35label|}}}|{{{stat35value|}}}}}
 +
  | label26 = {{{stat36label}}}
 +
  | data26  = {{#if:{{{stat36label|}}}|{{{stat36value|}}}}}
 +
  | label27 = {{{stat37label}}}
 +
  | data27  = {{#if:{{{stat37label|}}}|{{{stat37value|}}}}}
 +
 
 +
  | rowstyle30 = {{Infobox baseball biography/style|{{{team}}}|secondary}}
 +
   | header30= {{#if:{{{stat41value|}}}{{{stat42value|}}}{{{stat43value|}}}{{{stat44value|}}}{{{stat45value|}}}| {{#if:{{{stat4league|}}}|{{{stat4league}}} statistics|Career statistics}} {{#if:{{{stat4year|}}}|<br/>(through {{{stat4year}}})}}}}
 +
  | label31 = {{{stat41label}}}
 +
  | data31 = {{#if:{{{stat41label|}}}|{{{stat41value|}}}}}
 +
  | label32 = {{{stat42label}}}
 +
   | data32  = {{#if:{{{stat42label|}}}|{{{stat42value|}}}}}
 +
  | label33 = {{{stat43label}}}
 +
  | data33  = {{#if:{{{stat43label|}}}|{{{stat43value|}}}}}
 +
  | label34 = {{{stat44label}}}
 +
  | data34  = {{#if:{{{stat44label|}}}|{{{stat44value|}}}}}
 +
  | label35 = {{{stat45label}}}
 +
  | data35 = {{#if:{{{stat45label|}}}|{{{stat45value|}}}}}
 +
  | label36 = {{{stat46label}}}
 +
  | data36  = {{#if:{{{stat46label|}}}|{{{stat46value|}}}}}
 +
  | label37 = {{{stat47label}}}
 +
   | data37  = {{#if:{{{stat47label|}}}|{{{stat47value|}}}}}
 +
 
 +
  | rowstyle40 = {{Infobox baseball biography/style|{{{team}}}|secondary}}
 +
  | header40 = {{#if:{{{managerwins|}}}{{{managerlosses|}}}{{{managerties|}}}| Managerial statistics {{#if:{{{statMyear|}}}|<br/>(through {{{statMyear}}})}}}}
  
===All parameters===
+
  | label41 = Wins
 +
  | data41  = {{{managerwins|}}}
  
{{Parameter names example | name | birth_name | image | image_size | alt | caption | team | number | position | positionplain | birth_date | birth_place | death_date | death_place | bats | throws | finalyear | debutyear | debutteam | debut2league | debut2year | debut2team | debut2date | debut3league | debut3year | debut3team | debut3date | debut4league | debut4year | debut4team | debut4date| debutleague | debutdate | finalteam | final2league | final2year | final2team | final2date | final3league | final3year | final3team | final4date | final4league | final4year | final4team | final4date | finalleague | finaldate | stat1value | stat2value | stat3value | stat4value | stat5value | statleague | statyear | stat1label | stat2label | stat3label | stat4label | stat5label | stat6label | stat6value | stat7label | stat7value | stat21value | stat22value | stat23value | stat24value | stat25value | stat2league | stat2year | stat21label | stat22label | stat23label | stat24label | stat25label | stat26label | stat26value | stat27label | stat27value | stat31value | stat32value | stat33value | stat34value | stat35value | stat3league | stat3year | stat31label | stat32label | stat33label | stat34label | stat35label | stat36label | stat36value | stat37label | stat37value | managerwins | managerlosses | managerties | statMyear | formerteams | teams | highlights | hofdate | hoflink | hoffuture | hoftype | hofcolor | hofvote | hofmethod | update | medaltemplates | umpirecrew | crewchief | crew2 | crew3 | crew4}}
+
  | label42 = Losses
 +
  | data42 = {{{managerlosses|}}}
  
<pre style="font-size:100%; overflow:auto;">
+
   | label43 = Ties
{{Infobox baseball all biography
+
   | data43 = {{{managerties|}}}
| name          =
 
| birth_name    =
 
| image        =
 
| image_size    =
 
| team          =
 
| number        =
 
| position      =
 
| positionplain =
 
| birth_date    =
 
| birth_place   =
 
| death_date    =  
 
| death_place   =
 
| bats          =
 
| throws        =
 
| debutleague  =
 
| debutdate    =
 
| debutyear    =
 
| debutteam    =
 
| debut2league =  
 
| debut2date    =
 
| debut2year    =
 
| debut2team    =
 
| debut3league  =
 
| debut3date    =
 
| debut3year    =
 
| debut3team    =
 
| finalleague  =
 
| finaldate    =
 
| finalyear    =
 
| finalteam    =
 
| final2league  =
 
| final2date    =
 
| final2year    =
 
| final2team    =
 
| final3league  =
 
| final3date    =
 
| final3year    =
 
| final3team    =
 
| statleague    =
 
| statyear      =
 
| stat1label    =
 
| stat1value    =
 
| stat2label    =
 
| stat2value    =
 
| stat3label    =
 
| stat3value    =
 
| stat4label    =
 
| stat4value    =
 
| stat5label    =
 
| stat5value    =
 
| stat6label    =
 
| stat6value    =
 
| stat7label    =
 
| stat7value    =
 
| stat2league  =
 
| stat2year    =
 
| stat21label  =
 
| stat21value  =
 
| stat22label  =
 
| stat22value  =
 
| stat23label  =
 
| stat23value  =
 
| stat24label  =
 
| stat24value  =
 
| stat25label  =
 
| stat25value  =
 
| stat26label  =
 
| stat26value  =
 
| stat27label  =
 
| stat27value  =
 
| stat3league  =
 
| stat3year    =
 
| stat31label  =
 
| stat31value  =
 
| stat32label  =
 
| stat32value  =
 
| stat33label  =
 
| stat33value  =
 
| stat34label  =
 
| stat34value  =
 
| stat35label  =
 
| stat35value  =
 
| stat36label  =
 
| stat36value  =
 
| stat37label  =
 
| stat37value  =
 
| statMyear    =
 
| managerwins  =
 
| managerlosses =
 
| managerties   =
 
| formerteams  =
 
| teams        =
 
| umpirecrew    =
 
| crewchief    =
 
| crew2        =
 
| crew3        =
 
| crew4        =
 
| highlights    =
 
| hofcolor      =
 
| hoflink      =
 
| hoffuture    =
 
| hoftype      =
 
| hofdate      =
 
| hofvote      =
 
| hofmethod    =
 
| medaltemplates=
 
| show-medals  =
 
| update        =
 
}}
 
</pre>
 
{{clear}}
 
  
==Parameter descriptions==
+
  }}<!-- end stats subbox -->
Note that all of these parameters are optional
 
  
* name          –
+
| rowstyle1 = {{Infobox baseball biography/style|{{{team}}}}}
* birth_name    – only if different from full name (example: John Wayne / Marion Robert Morrison)
+
| header1 = {{#if:{{{formerteams|}}}|Former teams}}<!--deprecated, use teams instead-->
* image        –
+
| data2   =
* image_size    –
+
{{{formerteams|}}}
* alt          –
 
* caption      –
 
* team         – current team played for
 
* number        –
 
* position      – [[baseball positions|Position(s)]] primarily played by the player now (active players) or in their career (retired players). For umpires, specify "Umpire".
 
* positionplain –
 
* birth_date    – if alive use sytax, <nowiki>{{birth date and age|yyyy|mm|dd}}</nowiki>
 
* birth_place  –
 
* death_date    –
 
* death_place  –
 
* bats          –
 
* throws        –
 
* debutleague  – league debuted for, should be abbreviated, e.g. <nowiki>[[Nippon Professional Baseball|NPB]]</nowiki>
 
* debutdate    – e.g. March 3
 
* debutyear    – e.g. 2003
 
* debutteam    – e.g. Seibu Lions
 
* debut2league  – if debuted in 2 top-level leagues, e.g. NPB and MLB. Up to four leagues are supported by the template.
 
* debut2date    –
 
* debut2year    –
 
* debut2team    –
 
* debut3league  –
 
* debut3date    –
 
* debut3year    –
 
* debut3team    –
 
* debut4league  –
 
* debut4date    –
 
* debut4year    –
 
* debut4team    –
 
* finalleague  – use the same league as debutleague=
 
* finaldate    – date (month and day) of last appearance in debutleague=
 
* finalyear    – year of last appearance in debutleague=
 
* finalteam    – team played on during last appearance in debutleague=
 
* final2league  – for displaying final date played in a second top-level league, e.g. NPB and MLB. Up to four leagues are supported by the template.
 
* final2date    –
 
* final2year    –
 
* final2team    –
 
* final3league  –
 
* final3date    –
 
* final3year    –
 
* final3team    –
 
* final4league  –
 
* final4date    –
 
* final4year    –
 
* final4team    –
 
* statleague    –
 
* statyear      – A year or date that the stats listed below apply to
 
* stat1label    – the most important statistic for evaluating this player.  Will vary according to what the player is best known for.
 
* stat1value    – the value of that statistic.
 
* stat2label    – another statistic (up to seven can be used – in exceptional cases!)
 
* stat2value    –
 
* stat3label    –
 
* stat3value    –
 
* stat4label    –
 
* stat4value    –
 
* stat5label    –
 
* stat5value    –
 
* stat6label    –
 
* stat6value    –
 
* stat7label    –
 
* stat7value    –
 
* stat21label  
 
* stat21value  –
 
* stat22label  –
 
* stat22value  –
 
* stat23label  –
 
* stat23value  –
 
* stat24label  –
 
* stat24value  –
 
* stat25label  –
 
* stat25value  –
 
* stat26label  –
 
* stat26value  –
 
* stat27label  –
 
* stat27value  –
 
* stat3league  –
 
* stat3year    –
 
* stat31label  –
 
* stat31value  –
 
* stat32label  –
 
* stat32value  –
 
* stat33label  –
 
* stat33value  –
 
* stat34label  –
 
* stat34value  –
 
* stat35label  –
 
* stat35value  –
 
* stat36label  –
 
* stat36value  –
 
* stat37label  –
 
* stat37value  –
 
* statMyear    –
 
* managerwins  – Managers only. Include "statyear" if applicable.
 
* managerlosses –
 
* managerties  –
 
* formerteams  –
 
* teams        – List of teams (former and present) the player has played for, with their years.
 
* highlights    –
 
* hofcolor      – If a different color is needed other than the default, e.g. [[Felipe Montemayor]].
 
* hoflink      – Link to Wikipedia page without markup, e.g. Japanese Baseball Hall of Fame
 
* hoffuture – Enter "yes" if the individual has been announced as an incoming Hall of Fame member but not yet inducted; otherwise, either omit the tag entirely or leave it blank. Setting this tag will cause "Incoming" to appear before the text "Member of the Foo Hall of Fame".
 
* hoftype      – Name of hall of fame, e.g. Japanese
 
* hofdate      – If the player is a member of a top-level hall of fame, enter the date (or at least year) that he was elected.  Setting this tag will make a Hall of Fame banner appear.
 
* hofvote      – Put details of the HoF vote (if any) here.
 
* hofmethod    – Put details of the method elected here.  Leave blank if a standard vote
 
* update        – Last time updated (for current players only). Use syntax <nowiki>{{date|yyyy-mm-dd}}</nowiki>
 
  
== Examples ==
+
| rowstyle3 = {{Infobox baseball biography/style|{{{team}}}}}
 +
| header3 = {{#if:{{{teams|}}}|Teams}}
 +
| data4 =  
 +
{{{teams|}}}
  
=== All player options on (+HoF) (retired) ===
+
| rowstyle5 = {{Infobox baseball biography/style|{{{team}}}}}
{{Infobox baseball biography
+
| header5 = {{#if:{{{umpirecrew|}}}{{{crewchief|}}}{{{crew2|}}}{{{crew3|}}}{{{crew4|}}}|Crew Information<!--
| name          = All Options On (+HoF)
+
-->{{infobox|child=yes
| birth_name    = Birth Name
+
   | labelstyle = text-align:right; padding-right:0.5em;
| image        =
+
   | datastyle  = padding-left:0.5em;
| image_size    = 150
+
   | label1 = Umpiring crew
| caption      = Caption
+
   | data1 = {{{umpirecrew|}}}
| team         = Team Name
+
   | label2 = Crew members
| number        = 99
+
   | data2 = {{unbulleted list|{{#if:{{{crewchief|}}}|'''{{{crewchief|}}}''' (crew chief)}}|{{{crew2|}}}|{{{crew3|}}}|{{{crew4|}}}}}
| position      = Position
+
  }}
| bats          = Bats
 
| throws        = Throws
 
| birth_date    = {{birth date|1955|1|1}}
 
| birth_place  = Birthplace
 
| death_date    = {{death date and age|2007|1|1|1955|1|1|}}
 
| death_place  = Deathplace
 
| debutleague  = [[Korea Baseball Championship|KBO]]
 
| debutdate    = June 1
 
| debutyear    = 1983
 
| debutteam    = Team Name
 
| debut2league  = [[Nippon Professional Baseball|NPB]]
 
| debut2date    = April 1
 
| debut2year    = 1987
 
| debut2team    = Team Name
 
| debut3league  = [[Major League Baseball|MLB]]
 
| debut3date    = June 1
 
| debut3year    = 1991
 
| debut3team    = Team Name
 
| finalleague   = MLB
 
| finaldate    = June 1
 
| finalyear    = 1995
 
| finalteam    = Team Name
 
| statleague    = KBO
 
| stat1label    = [[Batting average (baseball)|Batting average]]
 
| stat1value    = .333
 
| stat2label    = [[Run batted in|Runs batted in]]
 
| stat2value    = 333
 
| stat3label    = [[Home run]]s
 
| stat3value    = 333
 
| stat2league   = NPB
 
| stat21label  = Batting average
 
| stat21value  = .355
 
| stat22label   = Runs batted in
 
| stat22value  = 355
 
| stat23label   = Home runs
 
| stat23value  = 355
 
| stat3league  = MLB
 
| stat31label   = Batting average
 
| stat31value  = .377
 
| stat32label   = Runs batted in
 
| stat32value  = 377
 
| stat33label  = Home runs
 
| stat33value  = 377
 
| teams        =
 
* First Team Name ({{Baseball year|1983}}{{Baseball year|1986}})
 
* Second Team Name ({{Baseball year|1987}}{{Baseball year|1990}})
 
* Current Team Name ({{Baseball year|1991}}–{{Baseball year|1995}})
 
| highlights    =
 
| hoflink      = National Baseball Hall of Fame and Museum
 
| hoftype      = National
 
| hofdate      = March 20, 2000
 
| hofvote      = 88% (first ballot)
 
| hofmethod    = Veteran's Committee
 
 
}}
 
}}
  
<pre style="overflow: auto">
+
| rowstyle6 = {{Infobox baseball biography/style|{{{team}}}}}
{{Infobox baseball biography
+
| header6 = {{#if:{{{awards|{{{highlights|}}}}}}|Career highlights and awards}}
| name          = All Options On (+HoF)
+
| data7 =  
| birth_name    = Birth Name
+
{{{awards|{{{highlights|}}}}}}
| image        =
 
| image_size    = 150
 
| caption      = Caption
 
| team          = Team Name
 
| number        = 99
 
| position      = Position
 
| bats          = Bats
 
| throws        = Throws
 
| birth_date    = {{birth date|1955|1|1}}
 
| birth_place  = Birthplace
 
| death_date    = {{death date and age|2007|1|1|1955|1|1|}}
 
| death_place  = Deathplace
 
| debutleague  = [[Korea Baseball Championship|KBO]]
 
| debutdate    = June 1
 
| debutyear    = 1983
 
| debutteam    = Team Name
 
| debut2league  = [[Nippon Professional Baseball|NPB]]
 
| debut2date    = April 1
 
| debut2year    = 1987
 
| debut2team    = Team Name
 
| debut3league  = [[Major League Baseball|MLB]]
 
| debut3date    = June 1
 
| debut3year    = 1991
 
| debut3team    = Team Name
 
| finalleague  = MLB
 
| finaldate    = June 1
 
| finalyear    = 1995
 
| finalteam    = Team Name
 
| statleague    = KBO
 
| stat1label    = [[Batting average]]
 
| stat1value    = .333
 
| stat2label    = [[Run batted in|Runs batted in]]
 
| stat2value    = 333
 
| stat3label    = [[Home run]]s
 
| stat3value    = 333
 
| stat2league  = NPB
 
| stat21label  = Batting average
 
| stat21value  = .355
 
| stat22label  = Runs batted in
 
| stat22value  = 355
 
| stat23label  = Home runs
 
| stat23value  = 355
 
| stat3league  = MLB
 
| stat31label  = Batting average
 
| stat31value  = .377
 
| stat32label  = Runs batted in
 
| stat32value  = 377
 
| stat33label  = Home runs
 
| stat33value  = 377
 
| teams        =
 
* First Team Name ({{by|1983}}–{{by|1986}})
 
* Second Team Name ({{by|1987}}–{{by|1990}})
 
* Current Team Name ({{by|1991}}–{{by|1995}})
 
| highlights   =
 
| hoflink      = National Baseball Hall of Fame and Museum
 
| hoftype      = National
 
| hofdate      = March 20, 2000
 
| hofvote      = 88% (first ballot)
 
| hofmethod    = Veteran's Committee
 
}}
 
</pre>
 
  
== Tracking categories ==
+
| rowstyle8 = background:#EC1C40
* {{clc|Pages using infobox baseball biography with unknown parameters}}
+
| header8 = {{#if:{{{hofdate|}}}| [[{{{hoflink}}}|<span style="color:white;">{{#if:{{{hoffuture|}}}|Incoming&nbsp;}}Member of the {{{hoftype}}}</span>]] }}
 +
| rowstyle9 = background:{{{hofcolor|#184071}}}; white-space:nowrap;
 +
| header9 = {{#if:{{{hofdate|}}}|[[File:Empty Star.svg|15px|link=]] [[File:Empty Star.svg|15px|link=]] [[File:Empty Star.svg|15px|link=]] [[{{{hoflink}}}|<span style="color:white;">Baseball Hall of Fame</span>]] [[File:Empty Star.svg|15px|link=]] [[File:Empty Star.svg|15px|link=]] [[File:Empty Star.svg|15px|link=]]<!--
 +
-->{{infobox|child=yes
 +
  | labelstyle = text-align:right; padding-right:0.5em;
 +
  | datastyle  = padding-left:0.5em;
 +
  | label1 = Induction
 +
  | data1 = {{{hofdate|}}}
 +
  | label2 = Vote
 +
  | data2 = {{{hofvote|}}}
 +
  | label3 = Election Method
 +
  | data3 = {{{hofmethod|}}}
 +
  }}
 +
}}
  
== Redirects ==
+
| class10 = borderless
* {{tl|Infobox MLB player}}
+
| header10 = {{#if:{{{medaltemplates|}}}|{{Infobox medal templates
* {{tl|Infobox NPB player}}
+
| title  = Medals
* {{tl|Infobox CPBL player}}
+
| medals = {{{medaltemplates|}}}
* {{tl|Infobox KBO player}}
+
| expand = {{#ifeq:{{lc:{{{show-medals}}}}}|no||yes}}
 +
}}}}
  
== See also ==
+
| data11 = {{#if:{{{embedded|{{{module|}}}}}}|
* {{tl|Infobox sportsperson}}
+
{{(!}} class="borderless" style="width:100%; background-color: #f9f9f9; color: #000000;"
 +
{{!-}}
 +
{{!}} style="text-align:center" colspan=2 {{!}} {{{embedded|{{{module|}}}}}}
 +
{{!)}}
 +
}}
  
<includeonly>{{sandbox other||
+
| belowstyle = background-color:#eeeeee;
<!-- Categories below this line, please; interwikis at Wikidata -->
+
| below = {{#if:{{{update|}}}|Last updated on: {{{update}}}}}
[[Category:Baseball player infobox templates|Player]]
+
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox baseball biography with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox baseball biography]] with unknown parameter "_VALUE_"|ignoreblank=y| alt | awards | bats | birth_date | birth_name | birth_place | caption | crew2 | crew3 | crew4 | crewchief | death_date | death_place | debut2date | debut2league | debut2team | debut2year | debut3date | debut3league | debut3team | debut3year | debut4date | debut4league | debut4team | debut4year | debutdate | debutleague | debutteam | debutyear | embed | embedded | final2date | final2league | final2team | final2year | final3date | final3league | final3team | final3year | final4date | final4league | final4team | final4year | finaldate | finalleague | finalteam | finalyear | formerteams | highlights | hofcolor | hofdate | hoffuture | hoflink | hofmethod | hoftype | hofvote | image | image_size | managerlosses | managerties | managerwins | medaltemplates | module | name | number | position | positionplain | show-medals | stat1label | stat1value | stat2label | stat2league | stat2value | stat2year | stat3label | stat3league | stat3value | stat3year | stat4label | stat4league | stat4value | stat4year | stat5label | stat5value | stat6label | stat6value | stat7label | stat7value | stat21label | stat21value | stat22label | stat22value | stat23label | stat23value | stat24label | stat24value | stat25label | stat25value | stat26label | stat26value | stat27label | stat27value | stat31label | stat31value | stat32label | stat32value | stat33label | stat33value | stat34label | stat34value | stat35label | stat35value | stat36label | stat36value | stat37label | stat37value | stat41label | stat41value | stat42label | stat42value | stat43label | stat43value | stat44label | stat44value | stat45label | stat45value | stat46label | stat46value | stat47label | stat47value | statleague | statMyear | statyear | team | teams | throws | umpirecrew | update | width }}<noinclude>
[[Category:Sportsperson infobox templates|Baseball biography]]
+
{{documentation}}
[[Category:Biographical templates usable as a module|Baseball biography]]
+
<!-- PLEASE ADD CATEGORIES TO THE /doc SUBPAGE --></noinclude>
[[Category:Infobox templates with updated parameter]]
 
[[Category:Templates that add a tracking category]]
 
}}</includeonly>
 

Latest revision as of 04:24, 11 November 2022

Infobox baseball biography

Lua error in package.lua at line 80: module 'strict' not found.