الگو:Infobox MLB player/توضیحات

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

This template can be used to add at-a-glance comparative information to articles on لیگ برتر بیسبال آمریکا players.

Team colors are now added to the infobox automatically when a team is entered into the team field. The colors are taken from Template:MLBPrimaryColor, Template:MLBSecondaryColor, Template:MLBAltPrimaryColor and Template:MLBAltSecondaryColor.

Usage[ویرایش]

Copy and paste the template below:

{{Infobox MLB player
| name        = 
| image       = 
| position    = 
| birth_date  = <!-- {{تاریخ تولد و سن|YYYY|MM|DD}} -->
| birth_place = 
| death_date  = <!-- {{تاریخ مرگ و سن|YYYY|MM|DD|YYYY|MM|DD}} (death date then birth date) -->
| death_place = 
| bats        = 
| throws      = 
| debutdate   = 
| debutyear   = 
| debutteam   = 
| finaldate   = 
| finalyear   = 
| finalteam   = 
| stat1label  = 
| stat1value  = 
| stat2label  = 
| stat2value  = 
| stat3label  = 
| stat3value  = 
| teams       = 
}}

To use the full version, use this template:

{{Infobox MLB player
| name        = 
| image       = 
| image_size  = 
| alt         = 
| caption     = 
| team        = 
| number      = 
| position    = 
| positionplain = 
| birth_date  = <!-- {{تاریخ تولد و سن|YYYY|MM|DD}} -->
| birth_place = 
| death_date  = <!-- {{تاریخ مرگ و سن|YYYY|MM|DD|YYYY|MM|DD}} (death date then birth date) -->
| death_place = 
| bats        = 
| throws      = 
| debutdate   = 
| debutyear   = 
| debutteam   = 
| finaldate   = 
| finalyear   = 
| finalteam   = 
| statyear    = 
| stat1label  = 
| stat1value  = 
| stat2label  = 
| stat2value  = 
| stat3label  = 
| stat3value  = 
| stat4label  = 
| stat4value  = 
| stat5label  = 
| stat5value  = 
| stat6label  = 
| stat6value  = 
| awards      = 
| teams       = 
| hofdate     = 
| hofvote     = 
| hofmethod   = 
| hoffuture   = (set to true if the player has been announced but not inducted)
}}

Parameters[ویرایش]

Note that all of these parameters are optional—it is better not to include one than to include misleading or incomplete information. For a nineteenth-century player about whom almost nothing is known, it may be better to forgo the infobox completely than to have an empty skeleton.

Field Name Description
name name of player
image filename of the image of the player, not preceded by "Image:" (optional)
image_size width of image in pixels, don't use unless smaller than 200 (optional, defaults to 200)
alt alt text for image, for visually impaired readers; see ویکی‌پدیا:متن جایگزین برای تصاویر
caption caption text for image (optional)
team current لیگ برتر بیسبال آمریکا
number current uniform number
position the position(s) primarily played by the player now (active players) or in their career (retired players): پیچر, Catcher, First baseman, Second baseman, Third baseman, Shortstop, Left fielder, Center fielder or Right fielder.
birth_date For living players: {{birth date and age|YYYY|MM|DD}}, where YYYY is the year, MM is month, and DD is day
For deceased players: {{birth date|YYYY|MM|DD}}, where YYYY is the year, MM is month, and DD is day
death_date NOTE: Only if the player is deceased: {{death date and age|YYYY|MM|DD|YYYY|MM|DD}}, with death date followed by birth date, where YYYY is the year, MM is month, and DD is day
bats Left, Right, Switch, or Unknown
throws Left, Right, or Unknown
debutdate debut date (Month and day only)
debutyear debut year
debutteam debut team
statyear the 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 most well-known for.
stat1value the value of that statistic.
stat2label another statistic (up to six can be used--in exceptional cases!)
stat2value etc.
stat3label
stat3value
stat4label
stat4value
stat5label
stat5value
stat6label
stat6value
awards list of awards
teams list of teams (former and present) the player has played for, with their years. Note that the "formerteams" option is deprecated and should be converted to teams. Teams should be shown in chronological order (years played in parentheses), like this:
  • Washington Senators (1939–1942, 1945–1949)
  • Boston Red Sox (1949–1952)
  • Washington Senators (1952–1953)
  • Detroit Tigers (1956)
hofdate if the player is a member of the National Baseball 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. (note that {{Infobox baseball biography}} also has these fields and may be more appropriate)
hofvote put details of the HoF vote (if any) here.
hofmethod put details of the method elected (veteran's committee, Negro league, etc.) here. Leave blank if a standard vote
hoffuture declare this variable (any value, but "true" is an obvious choice) for players who have elected to the HoF but who have not yet been inducted. This variable will modify the HoF banner to say "Incoming Member"; the purpose of this is to reduce arguments from editors about whether or not to include the HoF section before the induction date.

Examples[ویرایش]

All Options On (+HoF)
Alt text
Caption
Team Name – شماره 99
Position
Bats: Bats Throws: Throws
شروع
June 1, 2000, برای Team Name
آمار حرفه
(طی 2005)
Batting average.340
Runs batted in586
Home runs233
تیم‌ها
[[{{{hoflink}}}|عضو {{{hoftype}}}]]
[[{{{hoflink}}}|تالار مشاهیر بیسبال]]
InductedMarch 20, 2007
Vote88% (first ballot)
Election MethodVeteran's Committee
No Teams Listed
Alt text
Caption
Team Name – شماره 99
Position
Bats: Bats Throws: Throws
شروع
June 1, 2000, برای Team Name
آمار حرفه
(طی 2005)
Batting average.340
Runs batted in586
Home runs233
No Stats
Alt text
Caption
Team Name – شماره 99
Position
Bats: Bats Throws: Throws
شروع
June 1, 2000, برای Team Name
تیم‌ها
No Stats, No Teams
Alt text
Caption
Team Name – شماره 99
Position
Bats: Bats Throws: Throws
شروع
June 1, 2000, برای Team Name
Two Stats
Alt text
Caption
Team Name – شماره 99
Position
Bats: Bats Throws: Throws
شروع
June 1, 2000, برای Team Name
آمار حرفه
(طی 2005)
Batting average.340
Runs batted in586
تیم‌ها
No Caption
Alt text
Team Name – شماره 99
Position
Bats: Bats Throws: Throws
شروع
June 1, 2000, برای Team Name
آمار حرفه
(طی 2005)
Batting average.340
Runs batted in586
Home runs233
تیم‌ها
No Image
Team Name – شماره 99
Position
Bats: Bats Throws: Throws
شروع
June 1, 2000, برای Team Name
آمار حرفه
(طی 2005)
Batting average.340
Runs batted in586
Home runs233
تیم‌ها
All Options Off
Team Name – شماره 99
Position
Bats: Bats Throws: Throws
شروع
June 1, 2000, برای Team Name

Microformat[ویرایش]

The HTML markup produced by this template includes an hCard microformat, which makes the person's details parsable by computers, either acting automatically to catalogue articles across Wikipedia or via a browser tool operated by a reader, to (for example) add the subject to an address book or database. For more information about the use of microformats on Wikipedia, please see the microformat project.

زیرالگوها[ویرایش]

اطلاعات تاریخ تولد، تنها هنگامی در ریزقالب گنجانده می‌شود که {{تاریخ تولد}} یا {{تاریخ تولد و سن}} در جعبه اطلاعات، بکار رفته باشند. (اگر تاریخ قبل از ۱۵۸۳ است از این الگوها استفاده نکنید). بر پایه زندگی‌نامه زندگان در بکار بردن این الگو درباره افراد زنده، محتاط باشید.

برای افزودن نشانی وب، از {{نشانی وب}} استفاده کنید.

خواهشمند است کاربردهای این زیرالگوها را حذف نکنید.

کلاس‌ها[ویرایش]

hCard از کلاس‌های HTML زیر استفاده می‌کند:

  • adr
  • agent
  • bday
  • birthplace
  • category
  • country-name
  • deathdate
  • deathplace
  • extended-address
  • family-name
  • fn (required)
  • given-name
  • honorific-prefix
  • honorific-suffix
  • label
  • locality
  • n
  • nickname
  • note
  • org
  • role
  • url
  • vcard

خواهشمند است این کلاس‌ها را تغییرنام ندهید یا حذف نکنید. عناصر تودرتویی که از آنها استفاده می‌کنند را نیز به حالت جمع‌شده درنیاورید.

See also[ویرایش]