Jump to content

Template:Basketballstats/testcases

From Wikipedia, the free encyclopedia

Comparing output of live template and sandbox

[edit]
[edit]
NBA (old ID)
{{Basketballstats |nba= stephen_curry }}

{{Basketballstats}}


{{Basketballstats/sandbox}}


  • Career statistics and player information from NBA.com
NBA (new ID)
{{Basketballstats |nba= stephen/curry/201939 }}

{{Basketballstats}}


{{Basketballstats/sandbox}}


  • Career statistics and player information from NBA.com
NBA (numeric ID)
{{Basketballstats |nba= 201939 }}

{{Basketballstats}}


{{Basketballstats/sandbox}}


  • Career statistics and player information from NBA.com
Basketball-Reference NBA
{{Basketballstats |bbr= c/curryst01 }}

{{Basketballstats}}


{{Basketballstats/sandbox}}


[edit]
NBA (old ID) and Basketball-Reference
{{Basketballstats |nba= stephen_curry |bbr= c/curryst01 }}

{{Basketballstats}}


{{Basketballstats/sandbox}}


NBA (new ID) and Basketball-Reference
{{Basketballstats |nba= stephen/curry/201939 |bbr= c/curryst01 }}

{{Basketballstats}}


{{Basketballstats/sandbox}}


NBA (numeric ID) and Basketball-Reference
{{Basketballstats |nba= 201939 |bbr= c/curryst01 }}

{{Basketballstats}}


{{Basketballstats/sandbox}}


[edit]
WNBA (alpha ID)
{{Basketballstats |wnba= katie-douglas }}

{{Basketballstats}}


  • Career statistics and player information from WNBA.com

{{Basketballstats/sandbox}}


  • Career statistics and player information from WNBA.com
WNBA (numeric ID)
{{Basketballstats |wnba= 100666 }}

{{Basketballstats}}


  • Career statistics and player information from WNBA.com

{{Basketballstats/sandbox}}


  • Career statistics and player information from WNBA.com
Basketball-Reference WNBA
{{Basketballstats |wbbr= d/douglka01w }}

{{Basketballstats}}


{{Basketballstats/sandbox}}


[edit]
WNBA (alpha ID) and Basketball-Reference
{{Basketballstats |wnba= katie-douglas |wbbr= d/douglka01w }}

{{Basketballstats}}


{{Basketballstats/sandbox}}


WNBA (numeric ID) and Basketball-Reference
{{Basketballstats |wnba= 100666 |wbbr= d/douglka01w }}

{{Basketballstats}}


{{Basketballstats/sandbox}}


Template tests

[edit]

Test cases here use {{Basketballstats}}

NBA (old ID)

[edit]

URL:

Usage:

  • {{Basketballstats |nba= stephen_curry }}

Output:

NBA (new ID)

[edit]

URL:

Usage:

  • {{Basketballstats |nba= stephen/curry/201939 }}

Output:

NBA (numeric ID)

[edit]

URL:

Usage:

  • {{Basketballstats |nba= 201939 }}

Output:

Basketball-Reference

[edit]

URL:

Usage:

  • {{Basketballstats |bbr= c/curryst01 }}

Output:

[edit]

{{Basketballstats |nba= stephen_curry |bbr= c/curryst01 }}

{{Basketballstats |nba= stephen/curry/201939 |bbr= c/curryst01 }}

{{Basketballstats |nba= 201939 |bbr= c/curryst01 }}

Sandbox tests

[edit]

Test cases here use {{Basketballstats/sandbox}}

Test condition Player Template output Note
Current active player using name LeBron James (lebron_james) this should work
Current active player using ID Chris Paul (101108) this should work
Retired player using name Kobe Bryant (kobe_bryant) NBA.com link will not work
Retired player using ID Steve Nash (959) this should work
Retired player using ID (has career/ at end of URL) Kareem Abdul-Jabbar (76003) this should work

WNBA/WBBR

[edit]

Test cases here use {{Basketballstats/sandbox}}

WNBA

[edit]
  • Career statistics and player information from WNBA.com

WNBA Basketball-Reference

[edit]
[edit]