Template:Cite web/testcases
This is the template test case page for the Template:Cite web/sandbox of Template:Cite web. Purge this page to update the examples. If there are many examples of a complicated template, latter ones may break due to limits in MediaWiki, see the HTML comment "NewPP limit report" in the rendered page. You can test how this page looks in the different skins with these links: |
Standard use cases
- {{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
}}
→ Doe, John (30 April 2005). "My favorite things part II". Encyclopedia of things. Open Publishing. http://www.example.org/. Retrieved on 6 July 2005.
→ Doe, John (30 April 2005). "My favorite things part II". Encyclopedia of things. Open Publishing. http://www.example.org/. Retrieved on 6 July 2005.
- {{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
}}
→ Doe, John (30 April 2005). "My favorite things part II". Encyclopedia of things. Open Publishing. http://www.example.org/. Retrieved on 6 July 2005.
→ Doe, John (30 April 2005). "My favorite things part II". Encyclopedia of things. Open Publishing. http://www.example.org/. Retrieved on 6 July 2005.
- {{cite web
|author=Doe, John
|title=My favorite things part II
|date=30 April 2005
|url=http://www.example.org/
|accessdate=6 July 2005
}}
→ Doe, John (30 April 2005). "My favorite things part II". http://www.example.org/. Retrieved on 6 July 2005.
→ Doe, John (30 April 2005). "My favorite things part II". http://www.example.org/. Retrieved on 6 July 2005.
- {{cite web
|url=http://www.nfl.com/fans/
|title=Digest of rules
|publisher= National Football League
|accessdate=6 July 2005
}}
→ "Digest of rules". National Football League. http://www.nfl.com/fans/. Retrieved on 6 July 2005.
→ "Digest of rules". National Football League. http://www.nfl.com/fans/. Retrieved on 6 July 2005.
- Using format
- {{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
}}
→ "List of psychotropic substances under international control" (PDF). International Narcotics Control Board. http://www.incb.org/pdf/e/list/green.pdf. Retrieved on 6 July 2005.
→ "List of psychotropic substances under international control" (PDF). International Narcotics Control Board. http://www.incb.org/pdf/e/list/green.pdf. Retrieved on 6 July 2005.
- language
- {{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
}}
→ Joliet, François (30 April 2005). "Honnit soit qui mal y pense" (in French). http://www.example.org/. Retrieved on 6 July 2005.
→ Joliet, François (30 April 2005). "Honnit soit qui mal y pense" (in French). http://www.example.org/. Retrieved on 6 July 2005.
- coauthors
- {{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
}}
→ Doe, John; Smith, Peter; Smythe, Jim (30 April 2005). "My favorite things part II". Encyclopedia of things. Open Publishing. http://www.example.org/. Retrieved on 6 July 2005.
→ Doe, John; Smith, Peter; Smythe, Jim (30 April 2005). "My favorite things part II". Encyclopedia of things. Open Publishing. http://www.example.org/. Retrieved on 6 July 2005.
- No author
- {{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
}}
→ "My favorite things part II". Encyclopedia of things. Open Publishing. 30 April 2005. http://www.example.org/. Retrieved on 2006-05-16.
→ "My favorite things part II". Encyclopedia of things. Open Publishing. 30 April 2005. http://www.example.org/. Retrieved on 2006-05-16.
- No author, no publisher
- {{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
}}
→ "My favorite things part II". Encyclopedia of things. 30 April 2005. http://www.example.org/. Retrieved on 6 July 2005.
→ "My favorite things part II". Encyclopedia of things. 30 April 2005. http://www.example.org/. Retrieved on 6 July 2005.
- {{cite web
|title=My favorite things part II
|date=30 April 2005
|url=http://www.example.org/
|accessdate=6 July 2005}}
→ "My favorite things part II". 30 April 2005. http://www.example.org/. Retrieved on 6 July 2005.
→ "My favorite things part II". 30 April 2005. http://www.example.org/. Retrieved on 6 July 2005.
- {{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
}}
→ "List of psychotropic substances under international control" (in Greek) (PDF). 30 April 2005. http://www.incb.org/pdf/e/list/green.pdf. Retrieved on 6 July 2005.
→ "List of psychotropic substances under international control" (in Greek) (PDF). 30 April 2005. http://www.incb.org/pdf/e/list/green.pdf. Retrieved on 6 July 2005.
- Using archiveurl and archivedate for webpages that have been archived
- {{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
}}
→ "List of psychotropic substances under international control" (PDF). 30 April 2005. Archived from the original on 11 September 2005. http://www.archive.org/2005-09-11/www.incb.org/pdf/e/list/green.pdf. Retrieved on 6 July 2005.
→ "List of psychotropic substances under international control" (PDF). 30 April 2005. Archived from the original on 11 September 2005. http://www.archive.org/2005-09-11/www.incb.org/pdf/e/list/green.pdf. Retrieved on 6 July 2005.
- {{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
}}
→ "Interview with Maggie Downs". The Desert Sun. 31 March 2006. Archived from the original on 26 April 2006. http://72.14.207.104/search?q=cache:JAxf4v-pQmgJ:joanjettbadrep.com/cgi-bin/fullStory.cgi%3Farchive%3Dcurrnews%26story%3D20060405-01shore.htm.
→ "Interview with Maggie Downs". The Desert Sun. 31 March 2006. Archived from the original on 26 April 2006. http://72.14.207.104/search?q=cache:JAxf4v-pQmgJ:joanjettbadrep.com/cgi-bin/fullStory.cgi%3Farchive%3Dcurrnews%26story%3D20060405-01shore.htm.
- Using quote
- {{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.
}}
→ "My favorite things part II". Encyclopedia of things. http://www.example.org/. Retrieved on 6 July 2005. "Lorem ipsum dolor."
→ "My favorite things part II". Encyclopedia of things. http://www.example.org/. Retrieved on 6 July 2005. "Lorem ipsum dolor."
Errors and blank parameters
- Omitting the title in error
- {{cite web
|work=Encyclopedia of things
|url=http://www.example.org/
|accessdate=6 July 2005
|quote=Lorem ipsum dolor.
}}
→ "No <tt>|title=</tt> specified". Encyclopedia of things. http://www.example.org/. Retrieved on 6 July 2005. "Lorem ipsum dolor."
→ "No <tt>|title=</tt> specified". Encyclopedia of things. http://www.example.org/. Retrieved on 6 July 2005. "Lorem ipsum dolor."
- Omitting url in error
- {{cite web
|work=Encyclopedia of things
|title=My favorite things part II
|accessdate=6 July 2005
|quote=Lorem ipsum dolor.
}}
→ "You must specify |url= when using {{cite web}}". Encyclopedia of things. "Lorem ipsum dolor."
→ "You must specify |url= when using {{cite web}}". Encyclopedia of things. "Lorem ipsum dolor."
- Blank parameters
- {{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}}
→ "Casodex product insert". www1.astrazeneca-us.com. 2006-03-01. http://www1.astrazeneca-us.com/pi/casodex.pdf/. Retrieved on 2008-12-27.
→ "Casodex product insert". www1.astrazeneca-us.com. 2006-03-01. http://www1.astrazeneca-us.com/pi/casodex.pdf/. Retrieved on 2008-12-27.
- [url "title"]. url.
- [url "title"]. url.
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
- {{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
}}
→ Doe, John; Richard Roe (30 April 2005). "My favorite things part II" (PDF). Open Publishing. 20–25. http://www.example.org/. Retrieved on 6 July 2005.
→ Doe, John; Richard Roe (30 April 2005). "My favorite things part II" (PDF). Open Publishing. 20–25. http://www.example.org/. Retrieved on 6 July 2005.
→ Doe, John; Richard Roe (30 April 2005) (PDF). My favorite things part II. Open Publishing. pp. 20–25. http://www.example.org/. Retrieved on 6 July 2005.[Example from {{Cite book}}]
→ Doe, John; Richard Roe (30 April 2005) (PDF). My favorite things part II. Open Publishing. pp. 20–25. http://www.example.org/. Retrieved on 6 July 2005.[Example from {{Cite journal}}]
- Typical call with no author information
- {{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
}}
→ "My favorite things part II" (PDF). Open Publishing. 30 April 2005. 20–25. http://www.example.org/. Retrieved on 2005 July 6.
→ "My favorite things part II" (PDF). Open Publishing. 2005 April 30. 20–25. http://www.example.org/. Retrieved on 2005 July 6.
→ (PDF)My favorite things part II. Open Publishing. 30 April 2005. pp. 20–25. http://www.example.org/. Retrieved on 2005 July 6.[Example from {{Cite book}}]
→ (PDF)My favorite things part II. Open Publishing. 30 April 2005. pp. 20–25. http://www.example.org/. Retrieved on 6 July 2005.[Example from {{Cite journal}}]