Template:Baseballstats
![]() | This template is used on approximately 25,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
![](http://178.128.105.246/content-http-upload.wikimedia.org/wikipedia/commons/thumb/f/ff/Wikidata-logo.svg/40px-Wikidata-logo.svg.png)
![]() | This template uses Lua: |
Usage
To use this template, copy and paste this text to a baseball player's external links section:
{{Baseballstats |mlb= |espn= |br= |fangraphs= |brm= |retro=}}
Add the page ID's after the equals sign to properly direct the links that you desire to have. If you do not specify an ID, the site will not be shown.
Example
Example for Chris Young (outfielder):
{{Baseballstats |mlb= 455759 |espn= 6514 |br= y/youngch04 |fangraphs= 3882 |brm= young-001chr |retro= Y/Pyounc004 }}
results in:
- Career statistics and player information from MLB, or ESPN, or Baseball Reference, or Fangraphs, or Baseball Reference (Minors), or Retrosheet
To find a player's ID, find the player's page on a website and locate a string of numbers or letters in the URL similar to the ones above. That is the player's ID.
Parameters
Parameter | Website | Wikidata property† | URL |
---|---|---|---|
|mlb=
|
MLB.com | P3541 | https://mlb.mlb.com/team/player.jsp?player_id={{{mlb}}} |
|espn=
|
ESPN.com | P3571 | https://www.espn.com/mlb/player/stats/_/id/{{{espn}}} |
|br=
|
Baseball-Reference.com | P1825 | https://www.baseball-reference.com/players/{{{br}}}.shtml |
|fangraphs=
|
Fangraphs.com | P3574 | https://www.fangraphs.com/statss.aspx?playerid={{{fangraphs}}} |
|brm=
|
Baseball-Reference.com (Minors) | P1826 | https://www.baseball-reference.com/minors/player.cgi?id={{{brm}}} |
|retro=
|
Retrosheet.org | P6976 | https://www.retrosheet.org/boxesetc/{{retro}}.htm |
|nobullet= ‡
|
— | — | — |
† This template does not currently use Wikidata properties.
‡ The |nobullet=
parameter, when set to any value, prevents the rendering of the leading bullet. This makes the template appropriate for use in <ref>...</ref>
tags.