Difference between revisions of "Template:Baseballstats/testcases"
Jump to navigation
Jump to search
imported>Dmoore5556 (→Live template: fix typo in Ty Cobb test case for brm (which dash is used)) |
imported>Dmoore5556 (updating test cases to make testing of Live and Sandbox equivalent; add some bogus fields to make sure gracefully handled; add a couple test cases for undocumented |id= field) |
||
| Line 2: | Line 2: | ||
==Live template== | ==Live template== | ||
| − | {{baseballstats |br=c/clemero01 |fangraphs=1002340 |cube= | + | ;Roberto Clemente |
| − | {{baseballstats |mlb= |espn= |br=c/cobbty01 |fangraphs=1002378 |cube=9996|brm=cobb--001tyr}} | + | {{baseballstats |br=c/clemero01 |retro=C/Pclemr101 |fangraphs=1002340 |cube=9963 }} |
| − | {{baseballstats |mlb= |espn= |br=d/dimagjo01 |fangraphs=1003311 |cube=10765 |brm=dimagg001jos}} | + | {{baseballstats |br=c/clemero01 |fangraphs=1002340 |cube=9963 |retro=}} |
| − | {{Baseballstats|br=s/slaugen01}} | + | {{baseballstats |cube=9963 |retro= |br= |fangraphs=1002340}} |
| − | {{baseballstats|br=r/riceji01}} | + | <!--These next 3 lines test undocumented |id= field, where |id and |br are concatenated --> |
| + | {{baseballstats |id=c/ |br=clemero01 |fangraphs=1002340 |cube=9963 |retro=}} | ||
| + | {{baseballstats |br=clemero01 |fangraphs=1002340 |cube=9963 |retro= |id=c/ }} | ||
| + | {{baseballstats |id=c/clemero01 |fangraphs=1002340 |cube=9963 |retro=}} | ||
| + | ;Ty Cobb | ||
| + | {{baseballstats |mlb= |espn= |br=c/cobbty01 |fangraphs=1002378 |cube=9996|brm=cobb--001tyr |retro=C/Pcobbt101}} | ||
| + | {{baseballstats |retro=C/Pcobbt101 |mlb= |espn= |br=c/cobbty01 |fangraphs=1002378 |cube=9996|brm=cobb--001tyr }} | ||
| + | ;Joe DiMaggio | ||
| + | {{baseballstats |br=d/dimagjo01 |fangraphs=1003311 |cube=10765 |brm=dimagg001jos |retro=D/Pdimaj101}} | ||
| + | {{baseballstats |br=d/dimagjo01 |retro=D/Pdimaj101 |fangraphs=1003311 |cube=10765 |brm=dimagg001jos |mlb= |espn=}} | ||
| + | ;Ted Williams | ||
| + | {{Baseballstats |mlb=124341 |espn=28096 |br=w/willite01 |fangraphs=1014040 |cube=19737|brm=willia002the |retro=W/Pwillt103}} | ||
| + | {{Baseballstats |espn=28096 |mlb=124341 }} | ||
| + | ;Enos Slaughter | ||
| + | {{Baseballstats |retro=S/Pslaue101 |INVALID=1234 |br=s/slaugen01}} | ||
| + | ;Jim Rice | ||
| + | {{baseballstats|br=r/riceji01 |retro=R/Pricej001}} | ||
| + | ;Carlton Fisk | ||
| + | {{baseballstats |retro=F/Pfiskc001}} | ||
| + | {{baseballstats |BOGUS=bogus}} | ||
| + | :''the above line should display no links'' | ||
| + | {{baseballstats}} | ||
| + | :''the above line should display no links'' | ||
==Sandbox template== | ==Sandbox template== | ||
| Line 12: | Line 34: | ||
{{baseballstats/sandbox |br=c/clemero01 |retro=C/Pclemr101 |fangraphs=1002340 |cube=9963 }} | {{baseballstats/sandbox |br=c/clemero01 |retro=C/Pclemr101 |fangraphs=1002340 |cube=9963 }} | ||
{{baseballstats/sandbox |br=c/clemero01 |fangraphs=1002340 |cube=9963 |retro=}} | {{baseballstats/sandbox |br=c/clemero01 |fangraphs=1002340 |cube=9963 |retro=}} | ||
| + | {{baseballstats/sandbox |cube=9963 |retro= |br= |fangraphs=1002340}} | ||
| + | <!--These next 3 lines test undocumented |id= field, where |id and |br are concatenated --> | ||
| + | {{baseballstats/sandbox |id=c/ |br=clemero01 |fangraphs=1002340 |cube=9963 |retro=}} | ||
| + | {{baseballstats/sandbox |br=clemero01 |fangraphs=1002340 |cube=9963 |retro= |id=c/ }} | ||
| + | {{baseballstats/sandbox |id=c/clemero01 |fangraphs=1002340 |cube=9963 |retro=}} | ||
;Ty Cobb | ;Ty Cobb | ||
{{baseballstats/sandbox |mlb= |espn= |br=c/cobbty01 |fangraphs=1002378 |cube=9996|brm=cobb--001tyr |retro=C/Pcobbt101}} | {{baseballstats/sandbox |mlb= |espn= |br=c/cobbty01 |fangraphs=1002378 |cube=9996|brm=cobb--001tyr |retro=C/Pcobbt101}} | ||
| Line 18: | Line 45: | ||
{{baseballstats/sandbox |br=d/dimagjo01 |fangraphs=1003311 |cube=10765 |brm=dimagg001jos |retro=D/Pdimaj101}} | {{baseballstats/sandbox |br=d/dimagjo01 |fangraphs=1003311 |cube=10765 |brm=dimagg001jos |retro=D/Pdimaj101}} | ||
{{baseballstats/sandbox |br=d/dimagjo01 |retro=D/Pdimaj101 |fangraphs=1003311 |cube=10765 |brm=dimagg001jos |mlb= |espn=}} | {{baseballstats/sandbox |br=d/dimagjo01 |retro=D/Pdimaj101 |fangraphs=1003311 |cube=10765 |brm=dimagg001jos |mlb= |espn=}} | ||
| + | ;Ted Williams | ||
| + | {{Baseballstats/sandbox |mlb=124341 |espn=28096 |br=w/willite01 |fangraphs=1014040 |cube=19737|brm=willia002the |retro=W/Pwillt103}} | ||
| + | {{Baseballstats/sandbox |espn=28096 |mlb=124341 }} | ||
;Enos Slaughter | ;Enos Slaughter | ||
| − | {{Baseballstats/sandbox |retro=S/Pslaue101 | + | {{Baseballstats/sandbox |retro=S/Pslaue101 |INVALID=1234 |br=s/slaugen01}} |
;Jim Rice | ;Jim Rice | ||
{{baseballstats/sandbox|br=r/riceji01 |retro=R/Pricej001}} | {{baseballstats/sandbox|br=r/riceji01 |retro=R/Pricej001}} | ||
;Carlton Fisk | ;Carlton Fisk | ||
{{baseballstats/sandbox |retro=F/Pfiskc001}} | {{baseballstats/sandbox |retro=F/Pfiskc001}} | ||
| + | {{baseballstats/sandbox |BOGUS=bogus}} | ||
| + | :''the above line should display no links'' | ||
| + | {{baseballstats/sandbox}} | ||
| + | :''the above line should display no links'' | ||
Revision as of 21:06, 19 November 2018
| This is the template test cases page for the sandbox of Template:Baseballstats. Script error: No such module "Purge". to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki, see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins with these links: |
Live template
- Roberto Clemente
- Career statistics and player information from Baseball-Reference, or Fangraphs, or Retrosheet
- Career statistics and player information from Baseball-Reference, or Fangraphs
- Career statistics and player information from Fangraphs
- Career statistics and player information from Baseball-Reference, or Fangraphs
- Career statistics and player information from Baseball-Reference, or Fangraphs
- Career statistics and player information from Baseball-Reference, or Fangraphs
- Ty Cobb
- Career statistics and player information from Baseball-Reference, or Fangraphs, or Baseball-Reference (Minors), or Retrosheet
- Career statistics and player information from Baseball-Reference, or Fangraphs, or Baseball-Reference (Minors), or Retrosheet
- Joe DiMaggio
- Career statistics and player information from Baseball-Reference, or Fangraphs, or Baseball-Reference (Minors), or Retrosheet
- Career statistics and player information from Baseball-Reference, or Fangraphs, or Baseball-Reference (Minors), or Retrosheet
- Ted Williams
- Career statistics and player information from MLB, or ESPN, or Baseball-Reference, or Fangraphs, or Baseball-Reference (Minors), or Retrosheet
- Career statistics and player information from MLB, or ESPN
- Enos Slaughter
- Career statistics and player information from Baseball-Reference, or Retrosheet
- Jim Rice
- Career statistics and player information from Baseball-Reference, or Retrosheet
- Carlton Fisk
- Career statistics and player information from Retrosheet
- Career statistics and player information from Error: Template:Baseballstats must contain at least one valid parameter name.
- the above line should display no links
- Career statistics and player information from Error: Template:Baseballstats must contain at least one valid parameter name.
- the above line should display no links
Sandbox template
- Roberto Clemente
- Career statistics and player information from Baseball-Reference, or Fangraphs, or Retrosheet
- Career statistics and player information from Baseball-Reference, or Fangraphs
- Career statistics and player information from Fangraphs
- Career statistics and player information from Baseball-Reference, or Fangraphs
- Career statistics and player information from Baseball-Reference, or Fangraphs
- Career statistics and player information from Baseball-Reference, or Fangraphs
- Ty Cobb
- Career statistics and player information from Baseball-Reference, or Fangraphs, or Baseball-Reference (Minors), or Retrosheet
- Career statistics and player information from Baseball-Reference, or Fangraphs, or Baseball-Reference (Minors), or Retrosheet
- Joe DiMaggio
- Career statistics and player information from Baseball-Reference, or Fangraphs, or Baseball-Reference (Minors), or Retrosheet
- Career statistics and player information from Baseball-Reference, or Fangraphs, or Baseball-Reference (Minors), or Retrosheet
- Ted Williams
- Career statistics and player information from MLB, or ESPN, or Baseball-Reference, or Fangraphs, or Baseball-Reference (Minors), or Retrosheet
- Career statistics and player information from MLB, or ESPN
- Enos Slaughter
- Career statistics and player information from Baseball-Reference, or Retrosheet
- Jim Rice
- Career statistics and player information from Baseball-Reference, or Retrosheet
- Carlton Fisk
- Career statistics and player information from Retrosheet
- Career statistics and player information from Error: Template:Baseballstats must contain at least one valid parameter name.
- the above line should display no links
- Career statistics and player information from Error: Template:Baseballstats must contain at least one valid parameter name.
- the above line should display no links