Difference between revisions of "Template:Cite sports-reference/testcases"
Jump to navigation
Jump to search
imported>Zyxw m (Since <tt> is obsolete in HTML5, replace it with <kbd> – see HTML element#tt, Wikipedia:HTML5, and mw:Help:Extension:Linter/obsolete-tag. using AWB) |
imported>Zyxw m (add and update test cases) |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 3: | Line 3: | ||
== Olympics == | == Olympics == | ||
| − | === 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 |df=dmy-all }}</nowiki> | |
| − | + | }} | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | === Named parameters | + | {{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 |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}} |
| + | |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> | ||
| + | }} | ||
| − | == | + | == Non-Olympic links (college football) == |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | {{Test case nowiki |format=rows |collapsible=yes |title=Unnamed parameters | |
| − | {{ | + | |code=<nowiki>{{__TEMPLATENAME__ | Jimmy Collier | https://www.sports-reference.com/cfb/players/jimmy-collier-1.html | January 7, 2014 }}</nowiki> |
| − | + | }} | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | == | + | {{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> | |
| + | }} | ||
| − | == | + | == Non-Olympic links (college basketball) == |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | === Unnamed parameters = | + | {{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> | |
| − | + | }} | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | === Named parameters === | + | {{Test case nowiki |format=rows |collapsible=yes |title=Named parameters |
| − | The | + | |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 == | ||
| + | The Wikipedia page name is used if the template is missing unnamed parameter 1, {{para|title}} or {{para|name}}. It also uses the page name if {{para|title|Archived copy}} (added by InternetArchiveBot). | ||
| + | |||
| + | {{Test case nowiki |format=rows |collapsible=yes |title=No parameters (using Wikidata) | ||
| + | |code=<nowiki>{{__TEMPLATENAME__}}</nowiki> | ||
| + | }} | ||
| + | |||
| + | {{Test case nowiki |format=rows |collapsible=yes |title=Unnamed parameters | ||
| + | |code=<nowiki>{{__TEMPLATENAME__ | | https://www.sports-reference.com/olympics/athletes/la/larysa-latynina-1.html | 28 January 2010 }}</nowiki> | ||
| + | }} | ||
| + | |||
| + | {{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> | ||
| + | }} | ||
| + | |||
| + | {{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> | ||
| + | }} | ||
| + | |||
| + | == Missing url == | ||
| + | Articles will be added to [[:Category:Articles using sports-reference citation without URL]] if the template is missing {{para|url}}. | ||
| + | |||
| + | {{Test case nowiki |format=rows |collapsible=yes |title=Unnamed parameters | ||
| + | |code=<nowiki>{{__TEMPLATENAME__ | Larysa Latynina }}</nowiki> | ||
| + | }} | ||
| + | |||
| + | {{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> | ||
| + | }} | ||
Latest revision as of 08:49, 24 May 2020
Contents
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 }}
|
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 }}
|
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 }}
|
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 }}
|
| Named parameters | ||||
|---|---|---|---|---|
{{Cite sports-reference |title= Arkansas Razorbacks |url= https://www.sports-reference.com/cfb/schools/arkansas/ |accessdate= August 12, 2014 }}
|
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 }}
|
| Named parameters | ||||
|---|---|---|---|---|
{{Cite sports-reference |title= Bob Djokovich |url= https://www.sports-reference.com/cbb/players/bob-djokovich-1.html |accessdate= July 16, 2012 }}
|
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 }}
|
| 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 }}
|
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).
| Unnamed parameters | ||||
|---|---|---|---|---|
{{Cite sports-reference | | https://www.sports-reference.com/olympics/athletes/la/larysa-latynina-1.html | 28 January 2010 }}
|
| Named parameters | ||||
|---|---|---|---|---|
{{Cite sports-reference |url= https://www.sports-reference.com/olympics/athletes/la/larysa-latynina-1.html |accessdate= 28 January 2010 }}
|
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 }}
|
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 }}
|
| Named parameters | ||||
|---|---|---|---|---|
{{Cite sports-reference |title= 2004 Modern Pentathlon: Men's Individual |url= |accessdate= 13 November 2012 }}
|