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

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(create test cases)
 
imported>Zyxw
(test cases for missing URL)
Line 43: Line 43:
 
; Sandbox template
 
; Sandbox template
 
: {{Cite sports-reference/sandbox | name = Arkansas Razorbacks | url = http://www.sports-reference.com/cfb/schools/arkansas/ | accessdate = August 12, 2014 }}
 
: {{Cite sports-reference/sandbox | name = Arkansas Razorbacks | url = http://www.sports-reference.com/cfb/schools/arkansas/ | accessdate = August 12, 2014 }}
 +
{{refend}}
 +
 +
== Missing URL ==
 +
Any of the following will add an article to [[:Category:Articles using sports-reference citation without URL]].
 +
 +
=== No parameters ===
 +
The template uses the current pagename if a name or title is not provided.
 +
{{refbegin}}
 +
; Usage
 +
: <tt><nowiki>{{Cite sports-reference}}</nowiki></tt>
 +
; Live template
 +
: {{Cite sports-reference}}
 +
; Sandbox template
 +
: {{Cite sports-reference/sandbox}}
 +
{{refend}}
 +
 +
=== Unnamed parameters ===
 +
{{refbegin}}
 +
; Usage
 +
: <tt><nowiki>{{Cite sports-reference | Larysa Latynina }}</nowiki></tt>
 +
; Live template
 +
: {{Cite sports-reference | Larysa Latynina }}
 +
; Sandbox template
 +
: {{Cite sports-reference/sandbox | Larysa Latynina }}
 +
{{refend}}
 +
 +
=== Named parameters ===
 +
The access date is not displayed if URL is not provided.
 +
{{refbegin}}
 +
; Usage
 +
: <tt><nowiki>{{Cite sports-reference | name = 2004 Modern Pentathlon: Men's Individual | url = | accessdate = 13 November 2012 }}</nowiki></tt>
 +
; Live template
 +
: {{Cite sports-reference | name = 2004 Modern Pentathlon: Men's Individual | url = | accessdate = 13 November 2012 }}
 +
; Sandbox template
 +
: {{Cite sports-reference/sandbox | name = 2004 Modern Pentathlon: Men's Individual | url = | accessdate = 13 November 2012 }}
 
{{refend}}
 
{{refend}}

Revision as of 22:52, 29 March 2016

Template:Testcases page

Olympics

Unnamed parameters

Usage
{{Cite sports-reference | Larysa Latynina | http://www.sports-reference.com/olympics/athletes/la/larysa-latynina-1.html | 28 January 2010 }}
Live template
"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 "[".
Sandbox template
"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

Usage
{{Cite sports-reference | name = 2004 Modern Pentathlon: Men's Individual | url = http://www.sports-reference.com/olympics/summer/2004/MOP/mens-individual.html | accessdate = 13 November 2012 }}
Live template
"2004 Modern Pentathlon: Men's Individual". Expression error: Unrecognized punctuation character "[".Expression error: Unrecognized punctuation character "[". Sports-Reference.com. Sports Reference LLC. Retrieved 13 November 2012.Expression error: Unrecognized punctuation character "[".
Sandbox template
"2004 Modern Pentathlon: Men's Individual". Expression error: Unrecognized punctuation character "[".Expression error: Unrecognized punctuation character "[". Sports-Reference.com. Sports Reference LLC. Retrieved 13 November 2012.Expression error: Unrecognized punctuation character "[".

College football

Unnamed parameters

Usage
{{Cite sports-reference | Jimmy Collier | http://www.sports-reference.com/cfb/players/jimmy-collier-1.html | January 7, 2014 }}
Live template
"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 "[".
Sandbox template
"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

Usage
{{Cite sports-reference | name = Arkansas Razorbacks | url = http://www.sports-reference.com/cfb/schools/arkansas/ | accessdate = August 12, 2014 }}
Live template
"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 "[".
Sandbox template
"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 "[".

Missing URL

Any of the following will add an article to Category:Articles using sports-reference citation without URL.

No parameters

The template uses the current pagename if a name or title is not provided.

Usage
{{Cite sports-reference}}
Live template
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)
Sandbox template
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

Usage
{{Cite sports-reference | Larysa Latynina }}
Live template
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.
Sandbox template
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

The access date is not displayed if URL is not provided.

Usage
{{Cite sports-reference | name = 2004 Modern Pentathlon: Men's Individual | url = | accessdate = 13 November 2012 }}
Live template
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.
Sandbox template
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.