Template:Cite web/testcases

From Koha Wiki
Jump to navigation Jump to search

Standard use cases

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

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. 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}}

Doe, John (30 April 2005). "My favorite things part II". Encyclopedia of things. Open Publishing. Retrieved 6 July 2005.Page Module:Citation/CS1/sandbox/styles.css has no content.

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. 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. Retrieved 6 July 2005.Page Module:Citation/CS1/sandbox/styles.css has no content.

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. 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. Retrieved 6 July 2005.Page Module:Citation/CS1/sandbox/styles.css has no content.

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". 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". Retrieved 6 July 2005.Page Module:Citation/CS1/sandbox/styles.css has no content.

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. 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. 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. Retrieved 6 July 2005.Page Module:Citation/CS1/sandbox/styles.css has no content.

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). Retrieved 6 July 2005.CS1 maint: unrecognized language (link)

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). Retrieved 6 July 2005.CS1 maint: unrecognized language (link)Page Module:Citation/CS1/sandbox/styles.css has no content.

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] |trans-title= requires |title= or |script-title= (help) (in French) http://www.example.org/ |url= missing title (help). Retrieved 6 July 2005.CS1 maint: unrecognized language (link)

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] |trans-title= requires |title= or |script-title= (help) (in French) http://www.example.org/ |url= missing title (help). Retrieved 6 July 2005.CS1 maint: unrecognized language (link)Page Module:Citation/CS1/sandbox/styles.css has no content.

author
Markup Renders as
{{cite web
|first=John
|last=Doe
|last2=Smith
|first2=Peter
|last3=Smythe
|first3=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. Retrieved 6 July 2005.

Markup Renders as
{{cite web/sandbox
|first=John
|last=Doe
|last2=Smith
|first2=Peter
|last3=Smythe
|first3=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. Retrieved 6 July 2005.Page Module:Citation/CS1/sandbox/styles.css has no content.

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. 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. Retrieved 2006-05-16.Page Module:Citation/CS1/sandbox/styles.css has no content.

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. 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. Retrieved 6 July 2005.Page Module:Citation/CS1/sandbox/styles.css has no content.

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. 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. Retrieved 6 July 2005.Page Module:Citation/CS1/sandbox/styles.css has no content.

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" (PDF) (in Greek). 30 April 2005. Retrieved 6 July 2005.CS1 maint: unrecognized language (link)

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" (PDF) (in Greek). 30 April 2005. Retrieved 6 July 2005.CS1 maint: unrecognized language (link)Page Module:Citation/CS1/sandbox/styles.css has no content.

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". Wikipedia. Wikimedia Foundation. 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". Wikipedia. Wikimedia Foundation. Retrieved 2009-11-21.Page Module:Citation/CS1/sandbox/styles.css has no content.

Using website= and work= (work= should cause an error message)
Markup Renders as
{{cite web
|title=Han Dynasty
|website=Wikipedia
|work=Pediawiki<!--deliberate error; do not "fix"-->
|publisher=Wikimedia Foundation
|url=http://en.wikipedia.org/wiki/Han_Dynasty
|accessdate=2009-11-21
}}

"Han Dynasty". Wikipedia. Wikimedia Foundation. Retrieved 2009-11-21. More than one of |work= and |website= specified (help)

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". Wikipedia. Wikimedia Foundation. Retrieved 2009-11-21.Page Module:Citation/CS1/sandbox/styles.css has no content.

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
}}

Wikipedia. Wikimedia Foundation http://en.wikipedia.org/. Retrieved 2009-11-21. Missing or empty |title= (help)

Markup Renders as
{{cite web/sandbox
|website=Wikipedia
|publisher=Wikimedia Foundation
|url=http://en.wikipedia.org/
|accessdate=2009-11-21
|template-doc-demo=true}}

Wikipedia. Wikimedia Foundation http://en.wikipedia.org/. Retrieved 2009-11-21. Missing or empty |title= (help)Page Module:Citation/CS1/sandbox/styles.css has no content.

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. 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. Retrieved 6 July 2005. Lorem ipsum dolor.Page Module:Citation/CS1/sandbox/styles.css has no content.

Archive parameter usage

Using |archiveurl= and |archivedate= for webpages that have been archived
  • {{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.
    "Interview with Maggie Downs". The Desert Sun. 31 March 2006. Archived from the original on 26 April 2006.Page Module:Citation/CS1/sandbox/styles.css has no content.
Using |archiveurl= and |archivedate= for webpages that have been archived, specifying that the main link is live by |url-status=live
  • {{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 |url-status=live }}
    "Interview with Maggie Downs". The Desert Sun. 31 March 2006. Archived from the original on 26 April 2006.
    "Interview with Maggie Downs". The Desert Sun. 31 March 2006. Archived from the original on 26 April 2006.Page Module:Citation/CS1/sandbox/styles.css has no content.
Using |archiveurl= and |archivedate= for webpages that have been archived, while using other value that "no" for |url-status=
  • {{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 |url-status=who knows? }}
    "Interview with Maggie Downs". The Desert Sun. 31 March 2006. Archived from the original on 26 April 2006. Invalid |url-status=who knows? (help)
    "Interview with Maggie Downs". The Desert Sun. 31 March 2006. Archived from the original on 26 April 2006. Invalid |url-status=who knows? (help)Page Module:Citation/CS1/sandbox/styles.css has no content.
Specifying |dead=yes without archival parameters

Errors and blank parameters

Template:Testcase

Template:Testcase

Template:Testcase

Template:Testcase

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 styleauthor 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. 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. Retrieved 6 July 2005.Page Module:Citation/CS1/sandbox/styles.css has no content.
    Doe, John; Roe, Richard (30 April 2005). "My favorite things part II". Encyclopedia of things (PDF). Open Publishing. pp. 20–25. 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. 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
  • {{cite web |title=My favorite things part II |url=http://www.example.org/ |format=PDF |publisher=Open Publishing |date=30 April 2005 |pages=20–25 |work=Encyclopedia of things |accessdate=6 July 2005 }}

    "My favorite things part II" (PDF). Encyclopedia of things. Open Publishing. 30 April 2005. pp. 20–25. Retrieved 6 July 2005.
    "My favorite things part II" (PDF). Encyclopedia of things. Open Publishing. 30 April 2005. pp. 20–25. Retrieved 6 July 2005.Page Module:Citation/CS1/sandbox/styles.css has no content.
    "My favorite things part II". Encyclopedia of things (PDF). Open Publishing. 30 April 2005. pp. 20–25. Retrieved 6 July 2005.[{{Cite book}}]
    "My favorite things part II" (PDF). Encyclopedia of things. Open Publishing: 20–25. 30 April 2005. Retrieved 6 July 2005.[{{Cite journal}}]

    As above, for {{Cite book}} the |work= and |title=#REDIRECT [[]] parameters shown above were replaced by |chapter=My favorite things part II and |title=Encyclopedia of things.