Difference between revisions of "Template:Cite web/testcases"
Jump to navigation
Jump to search
m (1 revision) |
m (1 revision) |
||
Line 1: | Line 1: | ||
{{Template test cases notice}} | |||
==Standard use cases== | |||
*<nowiki>{{cite web | |||
|author=Doe, John | |||
|title=My favorite things part II | |||
|publisher=Open Publishing | |||
| | |date=30 April 2005 | ||
| | |work=Encyclopedia of things | ||
| | |url=http://www.example.org/ | ||
| | |accessdate=6 July 2005 | ||
| | }}</nowiki><br/>→ <span style="background:white">{{cite web | ||
| | |author=Doe, John | ||
| | |title=My favorite things part II | ||
|publisher=Open Publishing | |||
|date=30 April 2005 | |||
|work=Encyclopedia of things | |||
|url=http://www.example.org/ | |||
|accessdate=6 July 2005 | |||
}}</span><br/>→ <span style="background:white">{{cite web/sandbox | |||
|author=Doe, John | |||
|title=My favorite things part II | |||
|publisher=Open Publishing | |||
|date=30 April 2005 | |||
|work=Encyclopedia of things | |||
|url=http://www.example.org/ | |||
|accessdate=6 July 2005 | |||
}}</span> | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
*<nowiki>{{cite web | |||
|author=Doe, John | |||
|title=My favorite things part II | |||
|publisher=Open Publishing | |||
|year=2005 | |||
|month=April | |||
|day=30 | |||
|work=Encyclopedia of things | |||
|url=http://www.example.org/ | |||
|accessdate=6 July 2005 | |||
}}</nowiki><br/>→ <span style="background:white">{{cite web | |||
|author=Doe, John | |||
|title=My favorite things part II | |||
|publisher=Open Publishing | |||
|year=2005 | |||
|month=April | |||
|day=30 | |||
|work=Encyclopedia of things | |||
|url=http://www.example.org/ | |||
|accessdate=6 July 2005 | |||
}}</span><br/>→ <span style="background:white">{{cite web/sandbox | |||
|author=Doe, John | |||
|title=My favorite things part II | |||
|publisher=Open Publishing | |||
|year=2005 | |||
|month=April | |||
|day=30 | |||
|work=Encyclopedia of things | |||
|url=http://www.example.org/ | |||
|accessdate=6 July 2005 | |||
}}</span> | |||
</ | *<nowiki>{{cite web | ||
|author=Doe, John | |||
|title=My favorite things part II | |||
|date=30 April 2005 | |||
|url=http://www.example.org/ | |||
|accessdate=6 July 2005 | |||
}}</nowiki><br/>→ <span style="background:white">{{cite web | |||
|author=Doe, John | |||
|title=My favorite things part II | |||
|date=30 April 2005 | |||
|url=http://www.example.org/ | |||
|accessdate=6 July 2005 | |||
}}</span><br/>→ <span style="background:white">{{cite web/sandbox | |||
|author=Doe, John | |||
|title=My favorite things part II | |||
|date=30 April 2005 | |||
|url=http://www.example.org/ | |||
|accessdate=6 July 2005 | |||
}}</span> | |||
*<nowiki>{{cite web | |||
|url=http://www.nfl.com/fans/ | |||
|title=Digest of rules | |||
|publisher= National Football League | |||
|accessdate=6 July 2005 | |||
}}</nowiki><br>→ <span style="background:white">{{cite web | |||
|url=http://www.nfl.com/fans/ | |||
|title=Digest of rules | |||
|publisher= National Football League | |||
|accessdate=6 July 2005 | |||
}}</span><br>→ <span style="background:white">{{cite web/sandbox | |||
|url=http://www.nfl.com/fans/ | |||
|title=Digest of rules | |||
|publisher= National Football League | |||
|accessdate=6 July 2005 | |||
}}</span> | |||
;Using format | |||
*<nowiki>{{cite web | |||
|title=List of psychotropic substances under international control | |||
|publisher=International Narcotics Control Board | |||
|url=http://www.incb.org/pdf/e/list/green.pdf | |||
|format=PDF | |||
|accessdate=6 July 2005 | |||
}}</nowiki><br/> → <span style="background:white">{{cite web | |||
|title=List of psychotropic substances under international control | |||
|publisher=International Narcotics Control Board | |||
|url=http://www.incb.org/pdf/e/list/green.pdf | |||
|format=PDF | |||
|accessdate=6 July 2005 | |||
}}</span><br/> → <span style="background:white">{{cite web/sandbox | |||
|title=List of psychotropic substances under international control | |||
|publisher=International Narcotics Control Board | |||
|url=http://www.incb.org/pdf/e/list/green.pdf | |||
|format=PDF | |||
|accessdate=6 July 2005 | |||
}}</span> | |||
;language | |||
*<nowiki>{{cite web | |||
|author=Joliet, François | |||
|title=Honnit soit qui mal y pense | |||
|date=30 April 2005 | |||
|url=http://www.example.org/ | |||
|accessdate=6 July 2005 | |||
|language=French | |||
}}</nowiki><br/>→ <span style="background:white">{{cite web | |||
|author=Joliet, François | |||
|title=Honnit soit qui mal y pense | |||
|date=30 April 2005 | |||
|url=http://www.example.org/ | |||
|accessdate=6 July 2005 | |||
|language=French | |||
}}</span><br/>→ <span style="background:white">{{cite web/sandbox | |||
|author=Joliet, François | |||
|title=Honnit soit qui mal y pense | |||
|date=30 April 2005 | |||
|url=http://www.example.org/ | |||
|accessdate=6 July 2005 | |||
|language=French | |||
}}</span> | |||
;coauthors | |||
*<nowiki>{{cite web | |||
|first=John | |||
|last=Doe | |||
|coauthors=Smith, Peter; Smythe, Jim | |||
|title=My favorite things part II | |||
|publisher=Open Publishing | |||
|date=30 April 2005 | |||
|work=Encyclopedia of things | |||
|url=http://www.example.org/ | |||
|accessdate=6 July 2005 | |||
}}</nowiki><br/>→ <span style="background:white">{{cite web | |||
|first=John | |||
|last=Doe | |||
|coauthors=Smith, Peter; Smythe, Jim | |||
|title=My favorite things part II | |||
|publisher=Open Publishing | |||
|date=30 April 2005 | |||
|work=Encyclopedia of things | |||
|url=http://www.example.org/ | |||
|accessdate=6 July 2005 | |||
}}</span><br/>→ <span style="background:white">{{cite web/sandbox | |||
|first=John | |||
|last=Doe | |||
|coauthors=Smith, Peter; Smythe, Jim | |||
|title=My favorite things part II | |||
|publisher=Open Publishing | |||
|date=30 April 2005 | |||
|work=Encyclopedia of things | |||
|url=http://www.example.org/ | |||
|accessdate=6 July 2005 | |||
}}</span> | |||
;No author | |||
*<nowiki>{{cite web | |||
|title=My favorite things part II | |||
|publisher=Open Publishing | |||
|date=30 April 2005 | |||
|work=Encyclopedia of things | |||
|url=http://www.example.org/ | accessdate=2006-05-16 | |||
}}</nowiki><br/>→ <span style="background:white">{{cite web | |||
|title=My favorite things part II | |||
|publisher=Open Publishing | |||
|date=30 April 2005 | |||
|work=Encyclopedia of things | |||
|url=http://www.example.org/ | accessdate=2006-05-16 | |||
}}</span><br/>→ <span style="background:white">{{cite web/sandbox | |||
|title=My favorite things part II | |||
|publisher=Open Publishing | |||
|date=30 April 2005 | |||
|work=Encyclopedia of things | |||
|url=http://www.example.org/ | accessdate=2006-05-16 | |||
}}</span> | |||
;No author, no publisher | |||
*<nowiki>{{cite web | |||
|title=My favorite things part II | |||
|date=30 April 2005 | |||
|work=Encyclopedia of things | |||
|url=http://www.example.org/ | |||
|accessdate=6 July 2005 | |||
}}</nowiki></br>→ <span style="background:white">{{cite web | |||
|title=My favorite things part II | |||
|date=30 April 2005 | |||
|work=Encyclopedia of things | |||
|url=http://www.example.org/ | |||
|accessdate=6 July 2005 | |||
}}</span></br>→ <span style="background:white">{{cite web/sandbox | |||
|title=My favorite things part II | |||
|date=30 April 2005 | |||
|work=Encyclopedia of things | |||
|url=http://www.example.org/ | |||
|accessdate=6 July 2005 | |||
}}</span> | |||
*<nowiki>{{cite web | |||
|title=My favorite things part II | |||
|date=30 April 2005 | |||
|url=http://www.example.org/ | |||
|accessdate=6 July 2005}}</nowiki><br/>→ <span style="background:white">{{cite web | |||
|title=My favorite things part II | |||
|date=30 April 2005 | |||
|url=http://www.example.org/ | |||
|accessdate=6 July 2005}}</span><br/>→ <span style="background:white">{{cite web/sandbox | |||
|title=My favorite things part II | |||
|date=30 April 2005 | |||
|url=http://www.example.org/ | |||
|accessdate=6 July 2005}}</span> | |||
*<nowiki>{{cite web | |||
|title=List of psychotropic substances under international control | |||
|date=30 April 2005 | |||
|url=http://www.incb.org/pdf/e/list/green.pdf | |||
|format=PDF | |||
|accessdate=6 July 2005 | |||
|language=Greek | |||
}}</nowiki><br/> → <span style="background:white">{{cite web | |||
|title=List of psychotropic substances under international control | |||
|date=30 April 2005 | |||
|url=http://www.incb.org/pdf/e/list/green.pdf | |||
|format=PDF | |||
|accessdate=6 July 2005 | |||
|language=Greek | |||
}}</span><br/> → <span style="background:white">{{cite web/sandbox | |||
|title=List of psychotropic substances under international control | |||
|date=30 April 2005 | |||
|url=http://www.incb.org/pdf/e/list/green.pdf | |||
|format=PDF | |||
|accessdate=6 July 2005 | |||
|language=Greek | |||
}}</span> | |||
;Using archiveurl and archivedate for webpages that have been archived | |||
*<nowiki>{{cite web | |||
|title=List of psychotropic substances under international control | |||
|date=30 April 2005 | |||
|url=http://www.incb.org/pdf/e/list/green.pdf | |||
|format=PDF | |||
|accessdate=6 July 2005 | |||
|archiveurl=http://www.archive.org/2005-09-11/www.incb.org/pdf/e/list/green.pdf | |||
|archivedate=11 September 2005 | |||
}}</nowiki><br/> → <span style="background:white">{{cite web | |||
|title=List of psychotropic substances under international control | |||
|date=30 April 2005 | |||
|url=http://www.incb.org/pdf/e/list/green.pdf | |||
|format=PDF | |||
|accessdate=6 July 2005 | |||
|archiveurl=http://www.archive.org/2005-09-11/www.incb.org/pdf/e/list/green.pdf | |||
|archivedate=11 September 2005 | |||
}}</span><br/> → <span style="background:white">{{cite web/sandbox | |||
|title=List of psychotropic substances under international control | |||
|date=30 April 2005 | |||
|url=http://www.incb.org/pdf/e/list/green.pdf | |||
|format=PDF | |||
|accessdate=6 July 2005 | |||
|archiveurl=http://www.archive.org/2005-09-11/www.incb.org/pdf/e/list/green.pdf | |||
|archivedate=11 September 2005 | |||
}}</span> | |||
*<nowiki>{{cite web | |||
|url=http://joanjettbadrep.com/cgi-bin/fullStory.cgi?archive=currnews&story=20060405-01shore.htm | |||
|title=Interview with Maggie Downs | |||
|date=31 March 2006 | |||
|publisher=The Desert Sun | |||
|archiveurl=http://72.14.207.104/search?q=cache:JAxf4v-pQmgJ:joanjettbadrep.com/cgi-bin/fullStory.cgi%3Farchive%3Dcurrnews%26story%3D20060405-01shore.htm | |||
|archivedate=26 April 2006 | |||
}}</nowiki><br/> → <span style="background:white">{{cite web | |||
|url=http://joanjettbadrep.com/cgi-bin/fullStory.cgi?archive=currnews&story=20060405-01shore.htm | |||
|title=Interview with Maggie Downs | |||
|date=31 March 2006 | |||
|publisher=The Desert Sun | |||
|archiveurl=http://72.14.207.104/search?q=cache:JAxf4v-pQmgJ:joanjettbadrep.com/cgi-bin/fullStory.cgi%3Farchive%3Dcurrnews%26story%3D20060405-01shore.htm | |||
|archivedate=26 April 2006 | |||
}}</span><br/> → <span style="background:white">{{cite web/sandbox | |||
|url=http://joanjettbadrep.com/cgi-bin/fullStory.cgi?archive=currnews&story=20060405-01shore.htm | |||
|title=Interview with Maggie Downs | |||
|date=31 March 2006 | |||
|publisher=The Desert Sun | |||
|archiveurl=http://72.14.207.104/search?q=cache:JAxf4v-pQmgJ:joanjettbadrep.com/cgi-bin/fullStory.cgi%3Farchive%3Dcurrnews%26story%3D20060405-01shore.htm | |||
|archivedate=26 April 2006 | |||
}}</span> | |||
;Using quote | |||
*<nowiki>{{cite web | |||
|title=My favorite things part II | |||
|work=Encyclopedia of things | |||
|url=http://www.example.org/ | |||
|accessdate=6 July 2005 | |||
|quote=Lorem ipsum dolor. | |||
}}</nowiki><br/>→ <span style="background:white">{{cite web | |||
|title=My favorite things part II | |||
|work=Encyclopedia of things | |||
|url=http://www.example.org/ | |||
|accessdate=6 July 2005 | |||
|quote=Lorem ipsum dolor. | |||
}}</span><br/>→ <span style="background:white">{{cite web/sandbox | |||
|title=My favorite things part II | |||
|work=Encyclopedia of things | |||
|url=http://www.example.org/ | |||
|accessdate=6 July 2005 | |||
|quote=Lorem ipsum dolor. | |||
}}</span> | |||
==Errors and blank parameters== | |||
;Omitting the title in error | |||
*<nowiki>{{cite web | |||
|work=Encyclopedia of things | |||
|url=http://www.example.org/ | |||
|accessdate=6 July 2005 | |||
|quote=Lorem ipsum dolor. | |||
}}</nowiki><br/>→ <span style="background:white">{{cite web | |||
|work=Encyclopedia of things | |||
|url=http://www.example.org/ | |||
|accessdate=6 July 2005 | |||
|quote=Lorem ipsum dolor. | |||
}}</span><br/>→ <span style="background:white">{{cite web/sandbox | |||
|work=Encyclopedia of things | |||
|url=http://www.example.org/ | |||
|accessdate=6 July 2005 | |||
|quote=Lorem ipsum dolor. | |||
}}</span> | |||
;Omitting url in error | |||
*<nowiki>{{cite web | |||
|work=Encyclopedia of things | |||
|title=My favorite things part II | |||
|accessdate=6 July 2005 | |||
|quote=Lorem ipsum dolor. | |||
}}</nowiki><br/>→ <span style="background:white">{{cite web | |||
|work=Encyclopedia of things | |||
|title=My favorite things part II | |||
|accessdate=6 July 2005 | |||
|quote=Lorem ipsum dolor. | |||
}}</span><br/>→ <span style="background:white">{{cite web/sandbox | |||
|work=Encyclopedia of things | |||
|title=My favorite things part II | |||
|accessdate=6 July 2005 | |||
|quote=Lorem ipsum dolor. | |||
}}</span> | |||
;Blank parameters | |||
*<nowiki>{{cite web | url = http://www1.astrazeneca-us.com/pi/casodex.pdf/ | format = PDF | title = Casodex product insert | author = | authorlink = | coauthors = | date = 2006-03-01 | format = | work = | publisher = www1.astrazeneca-us.com | pages = | language = | archiveurl = | archivedate = | quote = | accessdate = 2008-12-27}}</nowiki><br/>→ <span style="background:white">{{cite web | url = http://www1.astrazeneca-us.com/pi/casodex.pdf/ | format = PDF | title = Casodex product insert | author = | authorlink = | coauthors = | date = 2006-03-01 | format = | work = | publisher = www1.astrazeneca-us.com | pages = | language = | archiveurl = | archivedate = | quote = | accessdate = 2008-12-27}}</span><br/>→ <span style="background:white">{{cite web/sandbox | url = http://www1.astrazeneca-us.com/pi/casodex.pdf/ | format = PDF | title = Casodex product insert | author = | authorlink = | coauthors = | date = 2006-03-01 | format = | work = | publisher = www1.astrazeneca-us.com | pages = | language = | archiveurl = | archivedate = | quote = | accessdate = 2008-12-27}}</span> | |||
*{{Cite web | |||
| url = url | |||
| title = title | |||
| accessdate = | |||
| author = | |||
| last = | |||
| first = | |||
| authorlink = | |||
| coauthors = | |||
| date = | |||
| year = | |||
| month = | |||
| format = | |||
| work = | |||
| publisher = | |||
| location = | |||
| pages = | |||
| language = | |||
| doi = | |||
| archiveurl = | |||
| archivedate = | |||
| quote = | |||
}} | |||
*{{Cite web/sandbox | |||
| url = url | |||
| title = title | |||
| accessdate = | |||
| author = | |||
| last = | |||
| first = | |||
| authorlink = | |||
| coauthors = | |||
| date = | |||
| year = | |||
| month = | |||
| format = | |||
| work = | |||
| publisher = | |||
| location = | |||
| pages = | |||
| language = | |||
| doi = | |||
| archiveurl = | |||
| archivedate = | |||
| quote = | |||
}} | |||
==Format comparison with other Cite templates== | |||
This section is to compare the format of Cite web with other cite templates. An exact match is not expected or desired, but the outputs should have a somewhat harmonized style. | |||
;Typical call with author and coauthor information | |||
*<nowiki>{{cite web | |||
|last=Doe | |||
|first=John | |||
|coauthors=Richard Roe | |||
|title=My favorite things part II | |||
|publisher=Open Publishing | |||
|date=30 April 2005 | |||
|work=Encyclopedia of things | |||
|url=http://www.example.org/ | |||
|accessdate=6 July 2005 | |||
}}</nowiki><br/>→ <span style="background:white">{{cite web | |||
|last=Doe | |||
|first=John | |||
|coauthors=Richard Roe | |||
|title=My favorite things part II | |||
|publisher=Open Publishing | |||
|date=30 April 2005 | |||
|url=http://www.example.org/ | |||
|accessdate=6 July 2005 | |||
|format=PDF | |||
|pages=20–25 | |||
}}</span><br/>→ <span style="background:white">{{cite web/sandbox | |||
|last=Doe | |||
|first=John | |||
|coauthors=Richard Roe | |||
|title=My favorite things part II | |||
|publisher=Open Publishing | |||
|date=30 April 2005 | |||
|url=http://www.example.org/ | |||
|accessdate=6 July 2005 | |||
|format=PDF | |||
|pages=20–25 | |||
}}</span><br/>→ <span style="background:white">{{cite book | |||
|last=Doe | |||
|first=John | |||
|coauthors=Richard Roe | |||
|title=My favorite things part II | |||
|publisher=Open Publishing | |||
|date=30 April 2005 | |||
|url=http://www.example.org/ | |||
|accessdate=6 July 2005 | |||
|format=PDF | |||
|pages=20–25 | |||
}}</span>[Example from {{Tl|Cite book}}]<br/>→ <span style="background:white">{{cite journal | |||
|last=Doe | |||
|first=John | |||
|coauthor=Richard Roe | |||
|title=My favorite things part II | |||
|publisher=Open Publishing | |||
|date=30 April 2005 | |||
|url=http://www.example.org/ | |||
|accessdate=6 July 2005 | |||
|format=PDF | |||
|pages=20–25 | |||
}}</span>[Example from {{Tl|Cite journal}}] | |||
;Typical call with no author information | |||
*<nowiki>{{cite web | |||
|title=My favorite things part II | |||
|publisher=Open Publishing | |||
|date=30 April 2005 | |||
|work=Encyclopedia of things | |||
|url=http://www.example.org/ | |||
|accessdate=6 July 2005 | |||
|dateformat=ymd | |||
}}</nowiki><br/>→ <span style="background:white">{{cite web | |||
|title=My favorite things part II | |||
|publisher=Open Publishing | |||
|date=30 April 2005 | |||
|url=http://www.example.org/ | |||
|accessdate=6 July 2005 | |||
|format=PDF | |||
|dateformat=ymd | |||
|pages=20–25 | |||
}}</span><br/>→ <span style="background:white">{{cite web/sandbox | |||
|title=My favorite things part II | |||
|publisher=Open Publishing | |||
|date=30 April 2005 | |||
|url=http://www.example.org/ | |||
|accessdate=6 July 2005 | |||
|dateformat=ymd | |||
|format=PDF | |||
|pages=20–25 | |||
}}</span><br/>→ <span style="background:white">{{cite book | |||
|title=My favorite things part II | |||
|publisher=Open Publishing | |||
|date=30 April 2005 | |||
|url=http://www.example.org/ | |||
|accessdate=6 July 2005 | |||
|dateformat=ymd | |||
|format=PDF | |||
|pages=20–25 | |||
}}</span>[Example from {{Tl|Cite book}}]<br/>→ <span style="background:white">{{cite journal | |||
|title=My favorite things part II | |||
|publisher=Open Publishing | |||
|date=30 April 2005 | |||
|url=http://www.example.org/ | |||
|accessdate=6 July 2005 | |||
|dateformat=ymd | |||
|format=PDF | |||
|pages=20–25 | |||
}}</span>[Example from {{Tl|Cite journal}}] |