Template:Cite web/testcases

From Terminals
Jump to: navigation, search

This page contains test cases for

  1. REDIRECTTemplate:Tlx.

Format of page

{{Cite web/sandbox| title=| url=| archiveurl=| archivedate= }}
 "Error: no |title= specified when using {{Cite web}}". 
"Error: no |title= specified when using {{Cite web}}". 
{{Cite web/sandbox| title=| url=http://url/| archiveurl=| archivedate= }}
 "Error: no |title= specified when using {{Cite web}}". http://url/. 
"Error: no |title= specified when using {{Cite web}}". http://url/. 
{{Cite web/sandbox| title=| url=| archiveurl=http://archiveurl/| archivedate= }}
 "Error: no |title= specified when using {{Cite web}}". Archived from the original. Error: If you specify |archiveurl=, you must also specify |archivedate=. http://archiveurl/. 
"Error: no |title= specified when using {{Cite web}}". Archived from the original. Error: If you specify |archiveurl=, you must also specify |archivedate=. http://archiveurl/. 
{{Cite web/sandbox| title=| url=| archiveurl=| archivedate=28 June 2008 }}
 "Error: no |title= specified when using {{Cite web}}". Archived on 28 June 2008. Error: If you specify |archivedate=, you must first specify |url=. 
"Error: no |title= specified when using {{Cite web}}". Archived on 28 June 2008. Error: If you specify |archivedate=, you must first specify |url=. 
{{Cite web/sandbox| title=| url=http://url/| archiveurl=http://archiveurl/| archivedate= }}
 "Error: no |title= specified when using {{Cite web}}". Archived from the original. Error: If you specify |archiveurl=, you must also specify |archivedate=. http://archiveurl/. 
"Error: no |title= specified when using {{Cite web}}". Archived from the original. Error: If you specify |archiveurl=, you must also specify |archivedate=. http://archiveurl/. 
{{Cite web/sandbox| title=| url=http://url/| archiveurl=| archivedate=28 June 2008 }}
 "Error: no |title= specified when using {{Cite web}}". Archived on 28 June 2008. Error: If you specify |archivedate=, you must also specify |archiveurl=. http://url/. 
"Error: no |title= specified when using {{Cite web}}". Archived on 28 June 2008. Error: If you specify |archivedate=, you must also specify |archiveurl=. http://url/. 
{{Cite web/sandbox| title=| url=| archiveurl=http://archiveurl/| archivedate=28 June 2008 }}
 "Error: no |title= specified when using {{Cite web}}". Archived from the original on 28 June 2008. http://archiveurl/. 
"Error: no |title= specified when using {{Cite web}}". Archived from the original on 28 June 2008. http://archiveurl/. 
{{Cite web/sandbox| title=| url=http://url/| archiveurl=http://archiveurl/| archivedate=28 June 2008 }}
 "Error: no |title= specified when using {{Cite web}}". Archived from the original on 28 June 2008. http://archiveurl/. 
"Error: no |title= specified when using {{Cite web}}". Archived from the original on 28 June 2008. http://archiveurl/. 
{{Cite web/sandbox| title=Title| url=| archiveurl=| archivedate= }}
 "Title". 
"Title". 
{{Cite web/sandbox| title=Title| url=http://url/| archiveurl=| archivedate= }}
 "Title". http://url/. 
"Title". http://url/. 
{{Cite web/sandbox| title=Title| url=| archiveurl=http://archiveurl/| archivedate= }}
 "Title". Archived from the original. Error: If you specify |archiveurl=, you must also specify |archivedate=. http://archiveurl/. 
"Title". Archived from the original. Error: If you specify |archiveurl=, you must also specify |archivedate=. http://archiveurl/. 
{{Cite web/sandbox| title=Title| url=| archiveurl=| archivedate=28 June 2008 }}
 "Title". Archived on 28 June 2008. Error: If you specify |archivedate=, you must first specify |url=. 
"Title". Archived on 28 June 2008. Error: If you specify |archivedate=, you must first specify |url=. 
{{Cite web/sandbox| title=Title| url=http://url/| archiveurl=http://archiveurl/| archivedate= }}
 "Title". Archived from the original. Error: If you specify |archiveurl=, you must also specify |archivedate=. http://archiveurl/. 
"Title". Archived from the original. Error: If you specify |archiveurl=, you must also specify |archivedate=. http://archiveurl/. 
{{Cite web/sandbox| title=Title| url=http://url/| archiveurl=| archivedate=28 June 2008 }}
 "Title". Archived on 28 June 2008. Error: If you specify |archivedate=, you must also specify |archiveurl=. http://url/. 
"Title". Archived on 28 June 2008. Error: If you specify |archivedate=, you must also specify |archiveurl=. http://url/. 
{{Cite web/sandbox| title=Title| url=| archiveurl=http://archiveurl/| archivedate=28 June 2008 }}
 "Title". Archived from the original on 28 June 2008. http://archiveurl/. 
"Title". Archived from the original on 28 June 2008. http://archiveurl/. 
{{Cite web/sandbox| title=Title| url=http://url/| archiveurl=http://archiveurl/| archivedate=28 June 2008 }}
 "Title". Archived from the original on 28 June 2008. http://archiveurl/. 
"Title". Archived from the original on 28 June 2008. http://archiveurl/. 

Standard use cases

Markup Renders as
{{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 6 July 2005. 
Markup Renders as
{{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
|template doc demo=true}}
Doe, John (30 April 2005). "My favorite things part II". Encyclopedia of things. Open Publishing. http://www.example.org/. Retrieved 6 July 2005. 
Markup Renders as
{{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 6 July 2005. 
Markup Renders as
{{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
|template doc demo=true}}
Doe, John (30 April 2005). "My favorite things part II". Encyclopedia of things. Open Publishing. http://www.example.org/. Retrieved 6 July 2005. 
Markup Renders as
{{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 6 July 2005. 
Markup Renders as
{{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
|template doc demo=true}}
Doe, John (30 April 2005). "My favorite things part II". http://www.example.org/. Retrieved 6 July 2005. 
Markup Renders as
{{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 6 July 2005. 
Using format and page/pages
Markup Renders as
{{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
|page=
|pages=3–4
|accessdate=6 July 2005
}}
"List of psychotropic substances under international control" (PDF). International Narcotics Control Board. pp. 3–4. http://www.incb.org/pdf/e/list/green.pdf. Retrieved 6 July 2005. 
Markup Renders as
{{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
|page=
|pages=3–4
|accessdate=6 July 2005
|template doc demo=true}}
"List of psychotropic substances under international control" (PDF). International Narcotics Control Board. pp. 3–4. http://www.incb.org/pdf/e/list/green.pdf. Retrieved 6 July 2005. 
Foreign language title and translated trans_title
Markup Renders as
{{cite web
|author=Joliet, François
|title=Honni soit qui mal y pense
|date=30 April 2005
|url=http://www.example.org/
|accessdate=6 July 2005
|language=French
|trans_title=Shame on those who think evil
}}
Joliet, François (30 April 2005). "Honni soit qui mal y pense [Shame on those who think evil]" (in French). http://www.example.org/. Retrieved 6 July 2005. 
Markup Renders as
{{cite web/sandbox
|author=Joliet, François
|title=Honni soit qui mal y pense
|date=30 April 2005
|url=http://www.example.org/
|accessdate=6 July 2005
|trans_title=Shame on those who think evil
|language=French
|template doc demo=true}}
Joliet, François (30 April 2005). "Honni soit qui mal y pense [Shame on those who think evil]" (in French). http://www.example.org/. Retrieved 6 July 2005. 
Foreign language source as above, with only the translated trans_title available
Markup Renders as
{{cite web
|author=Joliet, François
|title=Honni soit qui mal y pense
|date=30 April 2005
|url=http://www.example.org/
|accessdate=6 July 2005
|language=French
|trans_title=Shame on those who think evil
}}
Joliet, François (30 April 2005). "[Shame on those who think evil]" (in French). http://www.example.org/. Retrieved 6 July 2005. 
Markup Renders as
{{cite web/sandbox
|author=Joliet, François
|date=30 April 2005
|url=http://www.example.org/
|accessdate=6 July 2005
|trans_title=Shame on those who think evil
|language=French
|template doc demo=true}}
Joliet, François (30 April 2005). "[Shame on those who think evil]" (in French). http://www.example.org/. Retrieved 6 July 2005. 
coauthors
Markup Renders as
{{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 6 July 2005. 
Markup Renders as
{{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
|template doc demo=true}}
Doe, John; Smith, Peter; Smythe, Jim (30 April 2005). "My favorite things part II". Encyclopedia of things. Open Publishing. http://www.example.org/. Retrieved 6 July 2005. 
No author
Markup Renders as
{{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 2006-05-16. 
Markup Renders as
{{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
|template doc demo=true}}
"My favorite things part II". Encyclopedia of things. Open Publishing. 30 April 2005. http://www.example.org/. Retrieved 2006-05-16. 
No author, no publisher
Markup Renders as
{{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 6 July 2005. 
Markup Renders as
{{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
|template doc demo=true}}
"My favorite things part II". Encyclopedia of things. 30 April 2005. http://www.example.org/. Retrieved 6 July 2005. 
Markup Renders as
{{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 6 July 2005. 
Markup Renders as
{{cite web/sandbox
|title=My favorite things part II
|date=30 April 2005
|url=http://www.example.org/
|accessdate=6 July 2005|template doc demo=true}}
"My favorite things part II". 30 April 2005. http://www.example.org/. Retrieved 6 July 2005. 
Markup Renders as
{{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 6 July 2005. 
Markup Renders as
{{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
|template doc demo=true}}
"List of psychotropic substances under international control" (in Greek) (PDF). 30 April 2005. http://www.incb.org/pdf/e/list/green.pdf. Retrieved 6 July 2005. 
Using website=
Markup Renders as
{{cite web
|title=Han Dynasty
|website=Wikipedia
|publisher=Wikimedia Foundation
|url=http://en.wikipedia.org/wiki/Han_Dynasty
|accessdate=2009-11-21
}}
"Han Dynasty". Wikimedia Foundation. http://en.wikipedia.org/wiki/Han_Dynasty. Retrieved 2009-11-21. 
Markup Renders as
{{cite web/sandbox
|title=Han Dynasty
|website=Wikipedia
|publisher=Wikimedia Foundation
|url=http://en.wikipedia.org/wiki/Han_Dynasty
|accessdate=2009-11-21
|template doc demo=true}}
"Han Dynasty". Wikimedia Foundation. http://en.wikipedia.org/wiki/Han_Dynasty. Retrieved 2009-11-21. 
Using website= and work= (work= should be ignored)
Markup Renders as
{{cite web
|title=Han Dynasty
|website=Wikipedia
|work=Pediawiki
|publisher=Wikimedia Foundation
|url=http://en.wikipedia.org/wiki/Han_Dynasty
|accessdate=2009-11-21
}}
"Han Dynasty". Pediawiki. Wikimedia Foundation. http://en.wikipedia.org/wiki/Han_Dynasty. Retrieved 2009-11-21. 
Markup Renders as
{{cite web/sandbox
|title=Han Dynasty
|website=Wikipedia
|work=Pediawiki
|publisher=Wikimedia Foundation
|url=http://en.wikipedia.org/wiki/Han_Dynasty
|accessdate=2009-11-21
|template doc demo=true}}
"Han Dynasty". Pediawiki. Wikimedia Foundation. http://en.wikipedia.org/wiki/Han_Dynasty. Retrieved 2009-11-21. 
Using website= when no title= supplied
Markup Renders as
{{cite web
|website=Wikipedia
|publisher=Wikimedia Foundation
|url=http://en.wikipedia.org/
|accessdate=2009-11-21
}}
"Error: no |title= specified when using {{Cite web}}". Wikimedia Foundation. http://en.wikipedia.org/. Retrieved 2009-11-21. 
Markup Renders as
{{cite web/sandbox
|website=Wikipedia
|publisher=Wikimedia Foundation
|url=http://en.wikipedia.org/
|accessdate=2009-11-21
|template doc demo=true}}
"Error: no |title= specified when using {{Cite web}}". Wikimedia Foundation. http://en.wikipedia.org/. Retrieved 2009-11-21. 
Using quote
Markup Renders as
{{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 6 July 2005. "Lorem ipsum dolor." 
Markup Renders as
{{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.
|template doc demo=true}}
"My favorite things part II". Encyclopedia of things. http://www.example.org/. Retrieved 6 July 2005. "Lorem ipsum dolor." 

Archive parameter usage

Using |archiveurl= and |archivedate= for webpages that have been archived
Using |archiveurl= and |archivedate= for webpages that have been archived, specifying that the main link is live by |deadurl=no
Using |archiveurl= and |archivedate= for webpages that have been archived, while using other value that "no" for |deadurl=
Specifying |dead=yes without archival parameters

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.
}}
"Error: no |title= specified when using {{Cite web}}". Encyclopedia of things. http://www.example.org/. Retrieved 6 July 2005. "Lorem ipsum dolor." 
"Error: no |title= specified when using {{Cite web}}". Encyclopedia of things. http://www.example.org/. Retrieved 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.
}}
"My favorite things part II". Encyclopedia of things. "Lorem ipsum dolor." 
"My favorite things part II". Encyclopedia of things. "Lorem ipsum dolor." 
Omitting url with archiveurl specified
{{cite web
|work=Encyclopedia of things
|title=My favorite things part II
|accessdate=6 July 2005
|archiveurl=http://archive.url
|quote=Lorem ipsum dolor.
}}
"My favorite things part II". Encyclopedia of things. Archived from the original. Error: If you specify |archiveurl=, you must also specify |archivedate=. http://archive.url. Retrieved 6 July 2005. "Lorem ipsum dolor." 
"My favorite things part II". Encyclopedia of things. Archived from the original. Error: If you specify |archiveurl=, you must also specify |archivedate=. http://archive.url. Retrieved 6 July 2005. "Lorem ipsum dolor." 

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 |last2=Roe |first2=Richard |date=30 April 2005 |title=My favorite things part II |url=http://www.example.org/ |format=PDF |work=Encyclopedia of things |publisher=Open Publishing |pages=20–25 |accessdate=6 July 2005 }}

    Doe, John; Roe, Richard (30 April 2005). "My favorite things part II" (PDF). Encyclopedia of things. Open Publishing. pp. 20–25. http://www.example.org/. Retrieved 6 July 2005. 
    Doe, John; Roe, Richard (30 April 2005). "My favorite things part II" (PDF). Encyclopedia of things. Open Publishing. pp. 20–25. http://www.example.org/. Retrieved 6 July 2005. 
    Doe, John; Roe, Richard (30 April 2005). "My favorite things part II" (PDF). Encyclopedia of things. Open Publishing. pp. 20–25. http://www.example.org/. Retrieved 6 July 2005. [{{Cite book}}]
    Doe, John; Roe, Richard (30 April 2005). "My favorite things part II" (PDF). Encyclopedia of things (Open Publishing): 20–25. http://www.example.org/. Retrieved 6 July 2005. [{{Cite journal}}]

    {{Cite book}} does not support the |work= parameter and so in that example, the |work= and |title= parameters shown above were replaced by |chapter=My favorite things part II and |title=Encyclopedia of things.
Typical call with no author information