Difference between revisions of "Template:Cite sports-reference/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(→‎Olympics: update test)
imported>Zyxw
m (add and update test cases)
 
Line 4: Line 4:
  
 
{{Test case nowiki |format=rows |collapsible=yes |title=Unnamed parameters
 
{{Test case nowiki |format=rows |collapsible=yes |title=Unnamed parameters
|code=<nowiki>{{__TEMPLATENAME__ | Larysa Latynina | https://www.sports-reference.com/olympics/athletes/la/larysa-latynina-1.html | 28 January 2010 }}</nowiki>
+
|code=<nowiki>{{__TEMPLATENAME__ | Larysa Latynina | https://www.sports-reference.com/olympics/athletes/la/larysa-latynina-1.html | 28 January 2010 |df=dmy-all }}</nowiki>
 
}}
 
}}
  
 
{{Test case nowiki |format=rows |collapsible=yes |title=Named parameters with {{para|name}}
 
{{Test case nowiki |format=rows |collapsible=yes |title=Named parameters with {{para|name}}
|code=<nowiki>{{__TEMPLATENAME__ | name = Larysa Latynina | url = https://www.sports-reference.com/olympics/athletes/la/larysa-latynina-1.html | url-status = live | archive-url = https://web.archive.org/web/20110501003537/http://www.sports-reference.com/olympics/athletes/la/larysa-latynina-1.html | archive-date = 1 May 2011 | access-date = 5 May 2011 }}</nowiki>
+
|code=<nowiki>{{__TEMPLATENAME__ |name= Larysa Latynina |url= https://www.sports-reference.com/olympics/athletes/la/larysa-latynina-1.html |access-date= 5 May 2011 |archive-url= https://web.archive.org/web/20110501003537/http://www.sports-reference.com/olympics/athletes/la/larysa-latynina-1.html |archive-date= 1 May 2011 |url-status= dead }}</nowiki>
 
}}
 
}}
  
 
{{Test case nowiki |format=rows |collapsible=yes |title=Named parameters with {{para|title}}
 
{{Test case nowiki |format=rows |collapsible=yes |title=Named parameters with {{para|title}}
|code=<nowiki>{{__TEMPLATENAME__ | title = 2004 Modern Pentathlon: Men's Individual | url = https://www.sports-reference.com/olympics/summer/2004/MOP/mens-individual.html | access-date = November 13, 2012 }}</nowiki>
+
|code=<nowiki>{{__TEMPLATENAME__ |title= 2004 Modern Pentathlon: Men's Individual |url= https://www.sports-reference.com/olympics/summer/2004/MOP/mens-individual.html |access-date= November 13, 2012 |df=mdy-all }}</nowiki>
 
}}
 
}}
  
== College football ==
+
== Non-Olympic links (college football) ==
  
 
{{Test case nowiki |format=rows |collapsible=yes |title=Unnamed parameters
 
{{Test case nowiki |format=rows |collapsible=yes |title=Unnamed parameters
Line 22: Line 22:
  
 
{{Test case nowiki |format=rows |collapsible=yes |title=Named parameters
 
{{Test case nowiki |format=rows |collapsible=yes |title=Named parameters
|code=<nowiki>{{__TEMPLATENAME__ | title = Arkansas Razorbacks | url = https://www.sports-reference.com/cfb/schools/arkansas/ | accessdate = August 12, 2014 }}</nowiki>
+
|code=<nowiki>{{__TEMPLATENAME__ |title= Arkansas Razorbacks |url= https://www.sports-reference.com/cfb/schools/arkansas/ |accessdate= August 12, 2014 }}</nowiki>
 
}}
 
}}
 +
 +
== Non-Olympic links (college basketball) ==
 +
 +
{{Test case nowiki |format=rows |collapsible=yes |title=Unnamed parameters
 +
|code=<nowiki>{{__TEMPLATENAME__ | Bob Djokovich | https://www.sports-reference.com/cbb/players/bob-djokovich-1.html | July 16, 2012 }}</nowiki>
 +
}}
 +
 +
{{Test case nowiki |format=rows |collapsible=yes |title=Named parameters
 +
|code=<nowiki>{{__TEMPLATENAME__ |title= Bob Djokovich |url= https://www.sports-reference.com/cbb/players/bob-djokovich-1.html |accessdate= July 16, 2012 }}</nowiki>
 +
}}
 +
 +
== Non-Olympic links (other) ==
 +
 +
{{Test case nowiki |format=rows |collapsible=yes |title=Unnamed parameters
 +
|code=<nowiki>{{__TEMPLATENAME__ | Heinie Zimmerman wins the retro-active 1912 NL Triple Crown | https://www.sports-reference.com/blog/2015/03/heine-zimmerman-1912-triple-crown/ | March 5, 2015 |archiveurl= https://web.archive.org/web/20150306075319/http://www.sports-reference.com/blog/2015/03/heine-zimmerman-1912-triple-crown/ |archivedate= March 6, 2015 |url-status= live }}</nowiki>
 +
}}
 +
 +
{{Test case nowiki |format=rows |collapsible=yes |title=Named parameters
 +
|code=<nowiki>{{__TEMPLATENAME__ |title= Heinie Zimmerman wins the retro-active 1912 NL Triple Crown |url= https://www.sports-reference.com/blog/2015/03/heine-zimmerman-1912-triple-crown/ |accessdate= March 5, 2015 |archiveurl= https://web.archive.org/web/20150306075319/http://www.sports-reference.com/blog/2015/03/heine-zimmerman-1912-triple-crown/ |archivedate= March 6, 2015 |url-status= live }}</nowiki>
 +
}}
 +
  
 
== Missing title/name ==
 
== Missing title/name ==
Line 37: Line 58:
  
 
{{Test case nowiki |format=rows |collapsible=yes |title=Named parameters
 
{{Test case nowiki |format=rows |collapsible=yes |title=Named parameters
|code=<nowiki>{{__TEMPLATENAME__ | url = https://www.sports-reference.com/olympics/athletes/la/larysa-latynina-1.html | accessdate = 28 January 2010 }}</nowiki>
+
|code=<nowiki>{{__TEMPLATENAME__ |url= https://www.sports-reference.com/olympics/athletes/la/larysa-latynina-1.html |accessdate= 28 January 2010 }}</nowiki>
 
}}
 
}}
  
 
{{Test case nowiki |format=rows |collapsible=yes |title=Named parameters with {{para|title|Archived copy}}
 
{{Test case nowiki |format=rows |collapsible=yes |title=Named parameters with {{para|title|Archived copy}}
|code=<nowiki>{{__TEMPLATENAME__ | url = https://www.sports-reference.com/olympics/athletes/ka/miho-kawabe-1.html | accessdate = 21 July 2012 | title = Archived copy | archiveurl = https://web.archive.org/web/20121111123257/http://www.sports-reference.com/olympics/athletes/ka/miho-kawabe-1.html | archivedate = 11 November 2012 | url-status = live }}</nowiki>
+
|code=<nowiki>{{__TEMPLATENAME__ |url= https://www.sports-reference.com/olympics/athletes/ka/miho-kawabe-1.html |accessdate= 21 July 2012 |title= Archived copy | archiveurl = https://web.archive.org/web/20121111123257/http://www.sports-reference.com/olympics/athletes/ka/miho-kawabe-1.html | archivedate = 11 November 2012 |url-status= live }}</nowiki>
 
}}
 
}}
  
Line 52: Line 73:
  
 
{{Test case nowiki |format=rows |collapsible=yes |title=Named parameters
 
{{Test case nowiki |format=rows |collapsible=yes |title=Named parameters
|code=<nowiki>{{__TEMPLATENAME__ | title = 2004 Modern Pentathlon: Men's Individual | url = | accessdate = 13 November 2012 }}</nowiki>
+
|code=<nowiki>{{__TEMPLATENAME__ |title= 2004 Modern Pentathlon: Men's Individual |url= |accessdate= 13 November 2012 }}</nowiki>
 
}}
 
}}

Latest revision as of 08:49, 24 May 2020

Template:Testcases page

Olympics

Unnamed parameters
{{Cite sports-reference | Larysa Latynina | https://www.sports-reference.com/olympics/athletes/la/larysa-latynina-1.html | 28 January 2010  |df=dmy-all }}
{{Cite sports-reference}}
"Larysa Latynina". Expression error: Unrecognized punctuation character "[".Expression error: Unrecognized punctuation character "[". Sports-Reference.com. Sports Reference LLC. Retrieved 28 January 2010.Expression error: Unrecognized punctuation character "[".
{{Cite sports-reference/sandbox}}
"Larysa Latynina". Expression error: Unrecognized punctuation character "[".Expression error: Unrecognized punctuation character "[". Sports-Reference.com. Sports Reference LLC. Retrieved 28 January 2010.Expression error: Unrecognized punctuation character "[".
Named parameters with |name=
{{Cite sports-reference |name= Larysa Latynina |url= https://www.sports-reference.com/olympics/athletes/la/larysa-latynina-1.html  |access-date= 5 May 2011 |archive-url= https://web.archive.org/web/20110501003537/http://www.sports-reference.com/olympics/athletes/la/larysa-latynina-1.html |archive-date= 1 May 2011 |url-status= dead }}
{{Cite sports-reference}}
"Larysa Latynina". Expression error: Unrecognized punctuation character "[".Expression error: Unrecognized punctuation character "[". Sports-Reference.com. Sports Reference LLC. Archived from the original on 1 May 2011. Retrieved 5 May 2011.Expression error: Unrecognized punctuation character "[".
{{Cite sports-reference/sandbox}}
"Larysa Latynina". Expression error: Unrecognized punctuation character "[".Expression error: Unrecognized punctuation character "[". Sports-Reference.com. Sports Reference LLC. Archived from the original on 1 May 2011. Retrieved 5 May 2011.Expression error: Unrecognized punctuation character "[".
Named parameters with |title=
{{Cite sports-reference |title= 2004 Modern Pentathlon: Men's Individual |url= https://www.sports-reference.com/olympics/summer/2004/MOP/mens-individual.html |access-date= November 13, 2012 |df=mdy-all }}
{{Cite sports-reference}}
"2004 Modern Pentathlon: Men's Individual". Expression error: Unrecognized punctuation character "[".Expression error: Unrecognized punctuation character "[". Sports-Reference.com. Sports Reference LLC. Retrieved November 13, 2012.Expression error: Unrecognized punctuation character "[".
{{Cite sports-reference/sandbox}}
"2004 Modern Pentathlon: Men's Individual". Expression error: Unrecognized punctuation character "[".Expression error: Unrecognized punctuation character "[". Sports-Reference.com. Sports Reference LLC. Retrieved November 13, 2012.Expression error: Unrecognized punctuation character "[".

Non-Olympic links (college football)

Unnamed parameters
{{Cite sports-reference | Jimmy Collier | https://www.sports-reference.com/cfb/players/jimmy-collier-1.html | January 7, 2014 }}
{{Cite sports-reference}}
"Jimmy Collier". Expression error: Unrecognized punctuation character "[".Expression error: Unrecognized punctuation character "[". Sports-Reference.com. Sports Reference LLC. Retrieved January 7, 2014.Expression error: Unrecognized punctuation character "[".
{{Cite sports-reference/sandbox}}
"Jimmy Collier". Expression error: Unrecognized punctuation character "[".Expression error: Unrecognized punctuation character "[". Sports-Reference.com. Sports Reference LLC. Retrieved January 7, 2014.Expression error: Unrecognized punctuation character "[".
Named parameters
{{Cite sports-reference |title= Arkansas Razorbacks |url= https://www.sports-reference.com/cfb/schools/arkansas/ |accessdate= August 12, 2014 }}
{{Cite sports-reference}}
"Arkansas Razorbacks". Expression error: Unrecognized punctuation character "[".Expression error: Unrecognized punctuation character "[". Sports-Reference.com. Sports Reference LLC. Retrieved August 12, 2014.Expression error: Unrecognized punctuation character "[".
{{Cite sports-reference/sandbox}}
"Arkansas Razorbacks". Expression error: Unrecognized punctuation character "[".Expression error: Unrecognized punctuation character "[". Sports-Reference.com. Sports Reference LLC. Retrieved August 12, 2014.Expression error: Unrecognized punctuation character "[".

Non-Olympic links (college basketball)

Unnamed parameters
{{Cite sports-reference | Bob Djokovich | https://www.sports-reference.com/cbb/players/bob-djokovich-1.html | July 16, 2012 }}
{{Cite sports-reference}}
"Bob Djokovich". Expression error: Unrecognized punctuation character "[".Expression error: Unrecognized punctuation character "[". Sports-Reference.com. Sports Reference LLC. Retrieved July 16, 2012.Expression error: Unrecognized punctuation character "[".
{{Cite sports-reference/sandbox}}
"Bob Djokovich". Expression error: Unrecognized punctuation character "[".Expression error: Unrecognized punctuation character "[". Sports-Reference.com. Sports Reference LLC. Retrieved July 16, 2012.Expression error: Unrecognized punctuation character "[".
Named parameters
{{Cite sports-reference |title= Bob Djokovich |url= https://www.sports-reference.com/cbb/players/bob-djokovich-1.html |accessdate= July 16, 2012 }}
{{Cite sports-reference}}
"Bob Djokovich". Expression error: Unrecognized punctuation character "[".Expression error: Unrecognized punctuation character "[". Sports-Reference.com. Sports Reference LLC. Retrieved July 16, 2012.Expression error: Unrecognized punctuation character "[".
{{Cite sports-reference/sandbox}}
"Bob Djokovich". Expression error: Unrecognized punctuation character "[".Expression error: Unrecognized punctuation character "[". Sports-Reference.com. Sports Reference LLC. Retrieved July 16, 2012.Expression error: Unrecognized punctuation character "[".

Non-Olympic links (other)

Unnamed parameters
{{Cite sports-reference | Heinie Zimmerman wins the retro-active 1912 NL Triple Crown | https://www.sports-reference.com/blog/2015/03/heine-zimmerman-1912-triple-crown/ | March 5, 2015 |archiveurl= https://web.archive.org/web/20150306075319/http://www.sports-reference.com/blog/2015/03/heine-zimmerman-1912-triple-crown/ |archivedate= March 6, 2015 |url-status= live }}
{{Cite sports-reference}}
"Heinie Zimmerman wins the retro-active 1912 NL Triple Crown". Expression error: Unrecognized punctuation character "[".Expression error: Unrecognized punctuation character "[". Sports-Reference.com. Sports Reference LLC. Archived from the original on March 6, 2015. Retrieved March 5, 2015.Expression error: Unrecognized punctuation character "[".
{{Cite sports-reference/sandbox}}
"Heinie Zimmerman wins the retro-active 1912 NL Triple Crown". Expression error: Unrecognized punctuation character "[".Expression error: Unrecognized punctuation character "[". Sports-Reference.com. Sports Reference LLC. Archived from the original on March 6, 2015. Retrieved March 5, 2015.Expression error: Unrecognized punctuation character "[".
Named parameters
{{Cite sports-reference |title= Heinie Zimmerman wins the retro-active 1912 NL Triple Crown |url= https://www.sports-reference.com/blog/2015/03/heine-zimmerman-1912-triple-crown/ |accessdate= March 5, 2015 |archiveurl= https://web.archive.org/web/20150306075319/http://www.sports-reference.com/blog/2015/03/heine-zimmerman-1912-triple-crown/ |archivedate= March 6, 2015 |url-status= live }}
{{Cite sports-reference}}
"Heinie Zimmerman wins the retro-active 1912 NL Triple Crown". Expression error: Unrecognized punctuation character "[".Expression error: Unrecognized punctuation character "[". Sports-Reference.com. Sports Reference LLC. Archived from the original on March 6, 2015. Retrieved March 5, 2015.Expression error: Unrecognized punctuation character "[".
{{Cite sports-reference/sandbox}}
"Heinie Zimmerman wins the retro-active 1912 NL Triple Crown". Expression error: Unrecognized punctuation character "[".Expression error: Unrecognized punctuation character "[". Sports-Reference.com. Sports Reference LLC. Archived from the original on March 6, 2015. Retrieved March 5, 2015.Expression error: Unrecognized punctuation character "[".


Missing title/name

The Wikipedia page name is used if the template is missing unnamed parameter 1, |title= or |name=. It also uses the page name if |title=Archived copy (added by InternetArchiveBot).

No parameters (using Wikidata)
{{Cite sports-reference}}
{{Cite sports-reference}}
Evans, Hilary; Gjerde, Arild; Heijmans, Jeroen; Mallon, Bill; et al. Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value)..html "[[:Template:PAGENAMEBASE]]" Check |archive-url= value (help). Olympics at Sports-Reference.com. Sports Reference LLC. Archived from Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value)..html the original Check |url= value (help) on 2016-12-04. URL–wikilink conflict (help)
{{Cite sports-reference/sandbox}}
Evans, Hilary; Gjerde, Arild; Heijmans, Jeroen; Mallon, Bill; et al. Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value)..html "[[:Template:PAGENAMEBASE]]" Check |archive-url= value (help). Olympics at Sports-Reference.com. Sports Reference LLC. Archived from Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value)..html the original Check |url= value (help) on 2016-12-04. URL–wikilink conflict (help)
Unnamed parameters
{{Cite sports-reference |  | https://www.sports-reference.com/olympics/athletes/la/larysa-latynina-1.html | 28 January 2010 }}
{{Cite sports-reference}}
"[[:Template:PAGENAMEBASE]]". Expression error: Unrecognized punctuation character "[".Expression error: Unrecognized punctuation character "[". Sports-Reference.com. Sports Reference LLC. Retrieved 28 January 2010. URL–wikilink conflict (help)Expression error: Unrecognized punctuation character "[".
{{Cite sports-reference/sandbox}}
"[[:Template:PAGENAMEBASE]]". Expression error: Unrecognized punctuation character "[".Expression error: Unrecognized punctuation character "[". Sports-Reference.com. Sports Reference LLC. Retrieved 28 January 2010. URL–wikilink conflict (help)Expression error: Unrecognized punctuation character "[".
Named parameters
{{Cite sports-reference |url= https://www.sports-reference.com/olympics/athletes/la/larysa-latynina-1.html |accessdate= 28 January 2010 }}
{{Cite sports-reference}}
"[[:Template:PAGENAMEBASE]]". Expression error: Unrecognized punctuation character "[".Expression error: Unrecognized punctuation character "[". Sports-Reference.com. Sports Reference LLC. Retrieved 28 January 2010. URL–wikilink conflict (help)Expression error: Unrecognized punctuation character "[".
{{Cite sports-reference/sandbox}}
"[[:Template:PAGENAMEBASE]]". Expression error: Unrecognized punctuation character "[".Expression error: Unrecognized punctuation character "[". Sports-Reference.com. Sports Reference LLC. Retrieved 28 January 2010. URL–wikilink conflict (help)Expression error: Unrecognized punctuation character "[".
Named parameters with |title=Archived copy
{{Cite sports-reference |url= https://www.sports-reference.com/olympics/athletes/ka/miho-kawabe-1.html |accessdate= 21 July 2012 |title= Archived copy | archiveurl = https://web.archive.org/web/20121111123257/http://www.sports-reference.com/olympics/athletes/ka/miho-kawabe-1.html | archivedate = 11 November 2012 |url-status= live }}
{{Cite sports-reference}}
"[[:Template:PAGENAMEBASE]]". Expression error: Unrecognized punctuation character "[".Expression error: Unrecognized punctuation character "[". Sports-Reference.com. Sports Reference LLC. Archived from the original on 11 November 2012. Retrieved 21 July 2012. URL–wikilink conflict (help)Expression error: Unrecognized punctuation character "[".
{{Cite sports-reference/sandbox}}
"[[:Template:PAGENAMEBASE]]". Expression error: Unrecognized punctuation character "[".Expression error: Unrecognized punctuation character "[". Sports-Reference.com. Sports Reference LLC. Archived from the original on 11 November 2012. Retrieved 21 July 2012. URL–wikilink conflict (help)Expression error: Unrecognized punctuation character "[".

Missing url

Articles will be added to Category:Articles using sports-reference citation without URL if the template is missing |url=.

Unnamed parameters
{{Cite sports-reference | Larysa Latynina }}
{{Cite sports-reference}}
Evans, Hilary; Gjerde, Arild; Heijmans, Jeroen; Mallon, Bill; et al. Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value)..html "Larysa Latynina" Check |archive-url= value (help). Olympics at Sports-Reference.com. Sports Reference LLC. Archived from Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value)..html the original Check |url= value (help) on 2016-12-04.
{{Cite sports-reference/sandbox}}
Evans, Hilary; Gjerde, Arild; Heijmans, Jeroen; Mallon, Bill; et al. Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value)..html "Larysa Latynina" Check |archive-url= value (help). Olympics at Sports-Reference.com. Sports Reference LLC. Archived from Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value)..html the original Check |url= value (help) on 2016-12-04.
Named parameters
{{Cite sports-reference |title= 2004 Modern Pentathlon: Men's Individual |url= |accessdate= 13 November 2012 }}
{{Cite sports-reference}}
Evans, Hilary; Gjerde, Arild; Heijmans, Jeroen; Mallon, Bill; et al. Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value)..html "2004 Modern Pentathlon: Men's Individual" Check |archive-url= value (help). Olympics at Sports-Reference.com. Sports Reference LLC. Archived from Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value)..html the original Check |url= value (help) on 2016-12-04. Retrieved 13 November 2012.
{{Cite sports-reference/sandbox}}
Evans, Hilary; Gjerde, Arild; Heijmans, Jeroen; Mallon, Bill; et al. Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value)..html "2004 Modern Pentathlon: Men's Individual" Check |archive-url= value (help). Olympics at Sports-Reference.com. Sports Reference LLC. Archived from Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value)..html the original Check |url= value (help) on 2016-12-04. Retrieved 13 November 2012.