الگو:Baseballstats/توضیحات

از ویکی‌پدیا، دانشنامهٔ آزاد

Usage[ویرایش]

To use this template, copy and paste this text to a baseball player's external links section:

{{Baseballstats |mlb= |espn= |br= |fangraphs= |cube= |brm= }}

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/chris-young |br= y/youngch04 |fangraphs= 3882 |cube= 134 |brm= young-001chr }}

results in:

To find a player's ID, find the player's page on a website and locate a string of numbers or letters in the نشانی وب similar to the ones above. That is the player's ID.

Parameters[ویرایش]

Parameter Website Wikidata property URL
|mlb= MLB.com P3541 http://mlb.mlb.com/team/player.jsp?player_id={{{mlb}}}
|espn= ESPN.com P3571 http://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 http://www.fangraphs.com/statss.aspx?playerid={{{fangraphs}}}
|cube= TheBaseballCube.com P4731 http://thebaseballcube.com/players/profile.asp?ID={{{cube}}}
|brm= Baseball-Reference.com (Minors) P1826 https://www.baseball-reference.com/minors/player.cgi?id={{{brm}}}