Template talk:Basketballstats
![]() | This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||
|
New template
[edit]This was template was started per discussion at Wikipedia_talk:WikiProject_National_Basketball_Association#External_links_template—Bagumba (talk) 01:29, 8 May 2012 (UTC)
ESPN not supported
[edit]Removed because of unstable links per rationale at Wikipedia:Templates_for_discussion/Log/2012_June_16#Template:ESPN_NBA.—Bagumba (talk) 22:43, 27 June 2012 (UTC)
- When this was done (at [1]), the espn support was not completely removed, such that a transclusion of:
{{Basketballstats|nba=blake_griffin|espn=3989/blake-griffin}}
- resulted in:
- "Career statistics and player information from NBA.com, or "
- instead of
- "Career statistics and player information from NBA.com"
- It now correctly ignores the
|espn=
parameter completely. —[AlanM1(talk)]— 17:24, 14 May 2014 (UTC)
Template:Basketball-reference
[edit]{{Basketball-reference}} is now deprecated, with this being its replacement. I have looked at all articles using {{basketball-reference}}
and updated almost 400 articles to use this template, but there are still about 454 articles that use {{basketball-reference}}
. These could not be updated automatically as they use the template without parameters. When no parameters are used the template automatically searches basketball-reference.com using the article title. Unfortunately this template does not include this functionality so, in its present state, it's necessary to modify each article individually, replacing {{basketball-reference}}
with {{basketballstats|bbr=<id>}}. It might be prudent to add search functionality to this template so that remaining uses of {{basketball-reference}}
can be replaced, as it's easier to modify one template, than it is to modify 454 individual articles. --AussieLegend (✉) 11:50, 15 December 2012 (UTC)
- Thanks for your effort! Earlier consensus at Wikipedia_talk:WikiProject_National_Basketball_Association/Archive_19#External_links_template was not to support it. It simplifies the user interface with fewer options (and eases maintenance), not to mention there will be occasional problems when the article page name is ambiguous (e.g. Bobby Jones (basketball, born 1951) and Bobby Jones (basketball, born 1984) is in the title, the common name is not used on the , there are diacritics in the page name, etc). As for replacing {{Basketball-reference}}, there is already has a note on the template documentation that it is deprecated, and there is no deadline to get the remaining ones converted. I can sign up to do a few manually every week.—Bagumba (talk) 08:12, 16 December 2012 (UTC)
NBA.com historical links need fixing
[edit]See Template_talk:Infobox_basketball_biography#Historical_profiles_have_moved—Bagumba (talk) 14:20, 28 December 2013 (UTC)
D-League stats deprecated
[edit]The "dleague" parameter has been deprecated per Wikipedia_talk:WikiProject_National_Basketball_Association#D-League_external_links.—Bagumba (talk) 08:09, 3 August 2014 (UTC)
Historical NBA profiles deprecated
[edit]The "nba_historical" parameter has been deprecated, since NBA.com moved the old links. Doesn't seem to be an easy way to transform the old ids to the new ones per Template_talk:Infobox_basketball_biography#Historical_profiles_have_moved.—Bagumba (talk) 08:14, 3 August 2014 (UTC)
Reenabling ESPN support
[edit]How about reenabling ESPN support? It seems to work just fine for Template:Baseballstats. — NYCRuss ☎ 15:03, 10 July 2018 (UTC)
- Support was removed in 2012 per Wikipedia_talk:WikiProject_National_Basketball_Association/Archive_19#ESPN_NBA_bios. Sites like ESPN.com (and frankly even NBA.com) are notorious for changing their URLs and not redirecting the old ones. Mainaining them on WP ends up either being a time suck, or nothing is done and readers are left with deadlinks. Frankly, I think other sports are guilty of WP:LINKFARM with all the stats links they list. What would you argue is gained by adding ESPN links? Regards.—Bagumba (talk) 16:18, 10 July 2018 (UTC)
WNBA bbr
[edit]I think support should be added for WNBA basketball-reference.com links. It would be added using the same format as bbr but using the parameter wbbr. Will add in a few days if noone objects. --Trialpears (talk) 09:14, 26 July 2020 (UTC)
- Support. Wonder if it's better to do a separate
|wnbabbr=
or continue to accept|bbr=
with an optional boolean|wnba=yes
. The links are pretty similar: /wnba/players/d/douglka01w.html, so in the presence of|wnba=
it'd just be a case of adding on the extras. ProcrastinatingReader (talk) 09:22, 26 July 2020 (UTC)- They are very similar and that would certainly work, but I'm mostly concerned with ease of use here. Having to use two parameters seems less user friendly to me. It's really just a preference of mine and I wouldn't object to your solution if you wish to use that. --Trialpears (talk) 09:43, 26 July 2020 (UTC)
- I have no preference between the two personally. Just raising the idea for thought. I do agree with your reasoning with it adding unnecessary complexity. ProcrastinatingReader (talk) 10:15, 26 July 2020 (UTC)
- They are very similar and that would certainly work, but I'm mostly concerned with ease of use here. Having to use two parameters seems less user friendly to me. It's really just a preference of mine and I wouldn't object to your solution if you wish to use that. --Trialpears (talk) 09:43, 26 July 2020 (UTC)
This would only make sense if {{WNBA player}} were merged here as well. It does not make sense to add WNBA basketball-reference support here if this was not also going to be consistently used on WNBA player pages as a comprehensive entry under "External links".—Bagumba (talk) 10:44, 26 July 2020 (UTC)
I've added |wnba=
and |wbbr=
parameters following the TfD. --Trialpears (talk) 22:04, 6 August 2020 (UTC)
- Trialpears: Nice. Will you update Template:Basketballstats/doc too? Cheers.—Bagumba (talk) 08:39, 7 August 2020 (UTC)
Done Just wanted to make sure everything was working fine first so I did the {{WNBA player}} and {{Basketball-reference}} replacements first. --Trialpears (talk) 10:41, 7 August 2020 (UTC)
Broken NBA.com link
[edit]You are invited to join the discussion regarding the broken NBA.com links at Wikipedia_talk:WikiProject_National_Basketball_Association#NBA.com_stats_links_broken—Bagumba (talk) 11:27, 18 November 2020 (UTC)
- Note: The above discussion was archived at Wikipedia_talk:WikiProject_National_Basketball_Association/Archive_40#NBA.com_stats_links_broken.—Bagumba (talk) 09:33, 20 October 2022 (UTC)
- Yes, the current url is brooken. Now, using the player name, it dones't works, seems we hace to come back to ID player for this.
No {{basketballstats|nba=brandon_ingram}}
- Career statistics and player information from NBA.com
Yes {{basketballstats|nba=1627742}}
- Career statistics and player information from NBA.com
--Patrickpedia (talk) 15:26, 19 January 2021 (UTC)
Add parameter to toggle bullet on/off
[edit]I was wondering if the option to display without a bullet could be added as a parameter to the template? I see that a majority of the template's use means that displaying it with a bullet makes sense (i.e. at the bottom of an individual player's page), but there are some uses (such as in 1977) where the bullet creates problems in a list of footnotes.
Appreciate any input/info/assistance! Peloneous(t)[c] 17:38, 15 September 2021 (UTC)
- Peloneous: Can you elaborate on how this template would be used at 1977? —Bagumba (talk) 18:31, 15 September 2021 (UTC)
- Bagumba: Sure; I'll start with detailing how it's currently in use on that page.
- Under December births, specifically December 30, there is a bullet for "Kenyon Martin, American basketball player" which uses this template in
<ref>...</ref>
tags. The accompanying footnote displays in the article's "References" section as footnote 36, as of the time I compose this. For the sake of completion, the wiki markup and rendering look like:
Markup | Renders as |
---|---|
** [[Kenyon Martin]], American basketball player<ref>{{Basketballstats|nba=2030}}</ref> |
|
- My thinking is that a parameter could be added to this template that allows for the same text output, just without the initial line break and bullet, so that the template could be used in footnotes without taking up so much superfluous/empty space. The default value of the parameter would preserve the output with the bullet, for the many pages for which that is desirous.
- However, this might be a "solution" in search of a problem! If there's an alternate source-specific template to use in this circumstance, or the specific footnote in question should simply be changed to use
{{cite web}}
, I'm happy with that as an outcome to this idle thought of mine. ––Peloneous(t)[c] 20:11, 15 September 2021 (UTC)- @Peloneous: This template was intended for use in the "External links" section, where items are bulleted. It was not designed for citations. Footnotes can be formatted instead with templates like {{cite basketball-reference}}, {{cite basketball-reference WNBA}} or the generic {{cite web}}.—Bagumba (talk) 01:18, 16 September 2021 (UTC)
- @Bagumba: Thanks for pointing out these alternatives that I had obviously missed! –Peloneous(t)[c] 15:56, 16 September 2021 (UTC)
- @Peloneous: This template was intended for use in the "External links" section, where items are bulleted. It was not designed for citations. Footnotes can be formatted instead with templates like {{cite basketball-reference}}, {{cite basketball-reference WNBA}} or the generic {{cite web}}.—Bagumba (talk) 01:18, 16 September 2021 (UTC)