Difference between revisions of "Template:Infobox baseball biography"
Jump to navigation
Jump to search
[[Category:Infobox templates|Template:Remove first word]]
imported>Jonesey95 (add final4year and related parameters to match debut4year etc.) |
imported>Jonesey95 (add stat4x values and labels per talk page request) |
||
Line 158: | Line 158: | ||
| rowstyle30 = {{Infobox baseball biography/style|{{{team}}}|secondary}} | | rowstyle30 = {{Infobox baseball biography/style|{{{team}}}|secondary}} | ||
− | | header30 = {{#if:{{{ | + | | 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}}})}}}} |
− | | | + | | label41 = Wins |
− | | | + | | data41 = {{{managerwins|}}} |
− | | | + | | label42 = Losses |
− | | | + | | data42 = {{{managerlosses|}}} |
+ | |||
+ | | label43 = Ties | ||
+ | | data43 = {{{managerties|}}} | ||
}}<!-- end stats subbox --> | }}<!-- end stats subbox --> | ||
Line 230: | Line 247: | ||
| belowstyle = background-color:#eeeeee; | | belowstyle = background-color:#eeeeee; | ||
| below = {{#if:{{{update|}}}|Last updated on: {{{update}}}}} | | below = {{#if:{{{update|}}}|Last updated on: {{{update}}}}} | ||
− | }}{{#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 | + | }}{{#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> |
− | }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
<!-- PLEASE ADD CATEGORIES TO THE /doc SUBPAGE --></noinclude> | <!-- PLEASE ADD CATEGORIES TO THE /doc SUBPAGE --></noinclude> |
Revision as of 01:28, 12 November 2019
Template:PAGENAMEBASE[[Category:Infobox templates|Template:Remove first word]][[Category:Infobox templates|Template:Remove first word]] |
---|
[[Category:Infobox templates|Template:Remove first word]]
Template:Person infobox header
![]() | This template uses Lua: |
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 {{Infobox MLB player}}, which now redirects here.
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.
Contents
Usage
Common parameters
Template:Parameter names example
{{Infobox baseball biography | name = | image = | image_size = | team = | number = | position = | birth_date = | birth_place = | death_date = | death_place = | bats = | throws = | debutleague = | debutdate = | debutyear = | debutteam = | finaldate = | finalyear = | finalteam = | statleague = | statyear = | stat1label = | stat1value = | stat2label = | stat2value = | stat3label = | stat3value = | teams = | highlights = | update = }}
Umpire
Template:Parameter names example
{{Infobox baseball biography | position = Umpire | number = | name = | birth_date = | birth_place = | death_date = | death_place = | image = | width = | caption = | debutyear = | umpirecrew = | crewchief = | crew2 = | crew3 = | crew4 = | highlights = | hofdate = | hofvote = | hofmethod = }}
All parameters
Template:Parameter names example
{{Infobox baseball biography | 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 = }}
Parameter descriptions
Note that all of these parameters are optional
- name –
- birth_name – only if different from full name (example: John Wayne / Marion Robert Morrison)
- image –
- image_size –
- alt –
- caption –
- team – current team played for
- number –
- position – 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, {{birth date and age|yyyy|mm|dd}}
- birth_place –
- death_date –
- death_place –
- bats –
- throws –
- debutleague – league debuted for, should be abbreviated, e.g. [[Nippon Professional Baseball|NPB]]
- 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 {{date|yyyy-mm-dd}}
Examples
All player options on (+HoF) (retired)
All Options On (+HoF) | |||
---|---|---|---|
Team Name – No. 99 | |||
Position | |||
Born: Birth Name January 1, 1955 Birthplace | |||
Died: January 1, 2007 Deathplace | (aged 52)|||
| |||
Professional debut | |||
KBO: June 1, 1983, for the Team Name | |||
NPB: April 1, 1987, for the Team Name | |||
MLB: June 1, 1991, for the Team Name | |||
Last MLB appearance | |||
June 1, 1995, for the Team Name | |||
[[Category:Infobox templates|Template:Remove first word]] | |||
KBO statistics | |||
Batting average | .333 | ||
Runs batted in | 333 | ||
Home runs | 333 | ||
NPB statistics | |||
Batting average | .355 | ||
Runs batted in | 355 | ||
Home runs | 355 | ||
MLB statistics | |||
Batting average | .377 | ||
Runs batted in | 377 | ||
Home runs | 377 | ||
[[Category:Infobox templates|Template:Remove first word]] | |||
Teams | |||
Member of the National | |||
![]() ![]() ![]() ![]() ![]() ![]() | |||
Induction | March 20, 2000 | ||
Vote | 88% (first ballot) | ||
Election Method | Veteran's Committee | ||
[[Category:Infobox templates|Template:Remove first word]] |
{{Infobox baseball biography | name = All Options On (+HoF) | birth_name = Birth Name | 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 }}
Tracking categories
Redirects
- {{Infobox MLB player}}
- {{Infobox NPB player}}
- {{Infobox CPBL player}}
- {{Infobox KBO player}}
See also
The above documentation is transcluded from Template:Infobox baseball biography/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |