模板:Basketballstats/doc
此页面是Template:Basketballstats的模板文档。 此页面可能包含了模板的使用说明、分类和其他内容。 |
此模板使用Lua语言: |
本模板含有复杂而精密的扩展语法。 编辑本模板前,建议您先熟悉解析器函数与本模板的设计思路、运作原理等。若您的编辑引发了意外的问题,请尽快撤销编辑,因为本模板可能被大量页面使用。 您所作的编辑可先在模板沙盒或您的个人页面中进行测试。 |
Guidelines
This will create an external link to the statistics for a basketball player.
Usage
This template takes up to two parameters:
NBA
- nba, for National Basketball Association (NBA) players (active or retired):
- For active players, you may use the player's name, all lowercase, with underscores replacing spaces (URL:
https://www.nba.com/playerfile/first_last
) or you may use the ID which appears at the end of the URL:https://www.nba.com/players/first/last/12345
- For retired/historical players, you must use the player's ID number as it appears the end of the URL:
https://stats.nba.com/player/12345/
. The URL may havecareer/
at the end, which may be ignored.
- For active players, you may use the player's name, all lowercase, with underscores replacing spaces (URL:
- bbr, for NBA or original American Basketball Association players, the id as it appears after
https://www.basketball-reference.com/players/
and before.html
in its Basketball-Reference.com player page URL
WNBA
- wnba, for Women's National Basketball Association (WNBA) players.
- For active players, you may use the player's name, all lowercase, with hyphens replacing spaces. URL:
https://www.wnba.com/player/first-last/
- For retired/historical players, you must use the player's ID number as it appears the end of the URL:
https://stats.wnba.com/player/12345/
.
- For active players, you may use the player's name, all lowercase, with hyphens replacing spaces. URL:
- wbbr, for WNBA players, the id as it appears after
https://www.basketball-reference.com/wnba/players/
and before.html
in its Basketball-Reference.com player page URL
Examples
NBA
- NBA player LeBron James (using name – lowercase, replace spaces with underscores)
Usage
* {{Basketballstats |nba= lebron_james }}
* {{Basketballstats |bbr= j/jamesle01 }}
* {{Basketballstats |nba= lebron_james |bbr= j/jamesle01 }}
Output
- 球员信息和生涯数据:NBA.com
- 球员信息和生涯数据:Basketball-Reference.com
- 球员信息和生涯数据:NBA.com、Basketball-Reference.com
URLs
- https://www.nba.com/playerfile/lebron_james
- https://www.basketball-reference.com/players/j/jamesle01.html
- NBA player Stephen Curry (using ID from URL)
Usage
* {{Basketballstats |nba= stephen/curry/201939 }}
* {{Basketballstats |bbr= c/curryst01 }}
* {{Basketballstats |nba= stephen/curry/201939 |bbr= c/curryst01 }}
Output
- 球员信息和生涯数据:NBA.com
- 球员信息和生涯数据:Basketball-Reference.com
- 球员信息和生涯数据:NBA.com、Basketball-Reference.com
URLs
- https://www.nba.com/players/stephen/curry/201939
- https://www.basketball-reference.com/players/c/curryst01.html
- Retired NBA player Kareem Abdul-Jabbar (must use ID number)
Usage
* {{Basketballstats |nba= 76003 }}
* {{Basketballstats |bbr= a/abdulka01 }}
* {{Basketballstats |nba= 76003 |bbr= a/abdulka01 }}
Output
- 球员信息和生涯数据:NBA.com
- 球员信息和生涯数据:Basketball-Reference.com
- 球员信息和生涯数据:NBA.com、Basketball-Reference.com
URLs
WNBA
- Current WNBA player Sophia Young (using name – lowercase, replace spaces with hyphens)
Usage
* {{Basketballstats |wnba= sophia-young }}
* {{Basketballstats |wbbr= y/youngso01w }}
* {{Basketballstats |wnba= sophia-young |wbbr= y/youngso01w }}
Output
- 球员信息和生涯数据:WNBA.com
- 球员信息和生涯数据:Basketball-Reference.com
- 球员信息和生涯数据:WNBA.com、Basketball-Reference.com
URLs
- https://www.wnba.com/player/sophia-young/
- https://www.basketball-reference.com/wnba/players/y/youngso01w.html
- Retired WNBA player Vicki Hall (must use ID number)
Usage
* {{Basketballstats |wnba= 100458 }}
* {{Basketballstats |wbbr= h/hallvi01w }}
* {{Basketballstats |wnba= 100458 |wbbr= h/hallvi01w }}
Output
- 球员信息和生涯数据:WNBA.com
- 球员信息和生涯数据:Basketball-Reference.com
- 球员信息和生涯数据:WNBA.com、Basketball-Reference.com
URLs
- https://stats.wnba.com/player/100458/
- https://www.basketball-reference.com/wnba/players/h/hallvi01w.html
See also
- {{Cite basketball-reference}}, for usage of Basketball-Reference.com player page as a citation
- {{Cite basketball-reference WNBA}}, for usage of Basketball-Reference.com WNBA player page as a citation
- {{Sports links}}