Template:Citation/core/testcases
This is the template test cases page for the sandbox of Template:Citation/core. Script error: No such module "Purge". to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki, see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins with these links: |
Contents
Date/year harv refs
Citation/core
- 1999
- Example (1999)
- Example (1999)
- 1999-12-10
- Example (1999-12-10)
- Example (1999-12-10)
- fgaj ioegjhr 9g
- Example (fgaj ioegjhr 9g)
- Example (fgaj ioegjhr 9g)
- No Date
- Example
- Example
- Date=
- Example
- Example
- Date = july 1999
- Example (july 1999)
- Example (july 1999)
- Date = Thursday
- Example (Thursday)
- Example (Thursday)
- Date=1/2/1999
- Example (1/2/1999)
- Example (1/2/1999)
- Date=May
- Example (May)
- Example (May)
- Date=12:22
- Example (12:22)
- Example (12:22)
- Date=23:42, 5 December 2009 (UTC)
- Example (23:42, 5 December 2009 (UTC))
- Example (23:42, 5 December 2009 (UTC))
- Date=1 July 1999
- Example (1 July 1999)
- Example (1 July 1999)
- Date=1st July 1999
- Example (1st July 1999)
- Example (1st July 1999)
- Date=1st July 1999
- Example (1st July 1999)
- Example (1st July 1999)
- Date=1 Jul. 1999
- Example (1 Jul. 1999)
- Example (1 Jul. 1999)
- Date=1 July, 1999
- Example (1 July, 1999)
- Example (1 July, 1999)
- Date=July 1, 1999
- Example (July 1, 1999)
- Example (July 1, 1999)
- Date= the 1st of July 1999
- Example (the 1st of July 1999)
- Example (the 1st of July 1999)
- Date=1999
- Example (1999)
- Example (1999)
Citation/core/sandbox
Section
Text Text (Example0 1999) res ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociterres ip sur lociter
References
- (Example0 1999, pp. 1-22)
- (Example1 1999, pp. 1-22)
- (Example2, pp. 1-22)
- (Example3, pp. 1-22)
- (Example4, pp. 1-22)
- (Example5 1999, pp. 1-22)
- (Example6 1999, pp. 1-22)
- (Example7, pp. 1-22)
- (Example8, pp. 1-22)
- (Example9, pp. 1-22)
- (ExampleA 1999, pp. 1-22)
- (ExampleB 1999, pp. 1-22)
- (ExampleC 1999, pp. 1-22)
- (ExampleD 1999, pp. 1-22)
- (ExampleE 1999, pp. 1-22)
- (ExampleF 1999, pp. 1-22)
- (ExampleG 1999, pp. 1-22)
- (ExampleH 1999, pp. 1-22)
- (ExampleI 1999, pp. 1-22)
Footnotes
- Date = 1999
- Example0 (1999)
- Date = 1999-12-10
- Example1 (1999-12-10)
- Date = fgaj ioegjhr 9g
- Example2 (fgaj ioegjhr 9g)
- No Date
- Example3
- Date =
- Example4
- Date = july 1999
- Example5 (july 1999)
- Date = Thursday
- Example6 (Thursday)
- Date = 1/2/1999
- Example7 (1/2/1999)
- Date = May
- Example8 (May)
- Date = 12:22
- Example9 (12:22)
- Date = 23:42, 5 December 1999 (UTC)
- ExampleA (23:42, 5 December 1999 (UTC))
- Date = 1 July 1999
- ExampleB (1 July 1999)
- Date = 1st July 1999
- ExampleC (1st July 1999)
- Date = 1st July 1999
- ExampleD (1st July 1999)
- Date = 1 Jul. 1999
- ExampleE (1 Jul. 1999)
- Date = 1 July, 1999
- ExampleF (1 July, 1999)
- Date = July 1, 1999
- ExampleG (July 1, 1999)
- Date = the 1st of July 1999
- ExampleH (the 1st of July 1999)
- Date = 1999
- ExampleI (1999)
Error messages
- Citation/core
Full:
- "Example", archived on September 30, 2009. Error: If you specify
|archivedate=
, you must also specify|archiveurl=
, http://en.wikipedia.org/
Missing archive URL:
- "Example", archived on September 30, 2009. Error: If you specify
|archivedate=
, you must also specify|archiveurl=
, http://en.wikipedia.org/
Missing archive date:
- Citation/core/sandbox
Full:
- "Example", archived on September 30, 2009. Error: If you specify
|archivedate=
, you must also specify|archiveurl=
, http://en.wikipedia.org/
Missing archive URL:
- "Example", archived on September 30, 2009. Error: If you specify
|archivedate=
, you must also specify|archiveurl=
, http://en.wikipedia.org/
Missing archive date:
Variations on Author, Last, First, and Coauthors (all ignored in favour of Surnamen and Givenn)
{{Citation/core/sandbox | Title = title |Last=lastA |First=firstA |Coauthors=cofirst1 colast1, cofirst2 colast2| Date=2010}} |
- installed
- title, 2010
- sandbox
- title, 2010
{{Citation/core/sandbox |Last1=lastB1 |First=firstB1 |Last2=last2 |First2=first2 |Coauthors=coauthor1, coauthor2 |Date=2010}} |
- installed
- title, 2010
- sandbox
- title, 2010
{{Citation/core/sandbox | Title = title |Author=firstC1 lastC1 |Coauthors=cofirst1 colast1, cofirst2 colast2 |Date=2010}} |
- installed
- title, 2010
- sandbox
- title, 2010
{{Citation/core/sandbox | Title = title |Author1=firstD1 lastD1 | Author2=first2 last2 |Coauthors=cofirst1 colast1, cofirst2 colast2 |Date=2010}} |
- installed
- title, 2010
- sandbox
- title, 2010
Title quoting
{{Citation/core | IncludedWorkTitle = included work title | IncludedWorkURL = http://www.example.com/ | Title = title | URL = http://www.example.com/ }} |
- sandbox
- installed
{{Citation/core | IncludedWorkTitle = included work title | Title = title }} |
- sandbox
- "included work title", title
- installed
- "included work title", title
{{Citation/core | IncludedWorkTitle = included work title | IncludedWorkURL = http://www.example.com/ | Title = title | URL = http://www.example.com/ | TransTitle = trans title }} |
- sandbox
- installed
{{Citation/core | IncludedWorkTitle = included work title | IncludedWorkURL = http://www.example.com/ | Title = title | URL = http://www.example.com/ | Periodical = periodical }} |
- sandbox
- included work title, "title", periodical, http://www.example.com/
- installed
- included work title, "title", periodical, http://www.example.com/
{{Citation/core | IncludedWorkTitle = included work title | IncludedWorkURL = http://www.example.com/ | Title = title | URL = http://www.example.com/ | Periodical = periodical | TitleNote = titlenote }} |
- sandbox
- included work title, "title", titlenote, periodical, http://www.example.com/
- installed
- included work title, "title", titlenote, periodical, http://www.example.com/
{{Citation/core | IncludedWorkTitle = included work title | IncludedWorkURL = http://www.example.com/ | Title = title | URL = http://www.example.com/ | quote = quote }} |
- sandbox
- "included work title", title, http://www.example.com/, "quote"
- installed
- "included work title", title, http://www.example.com/, "quote"
Missing title
{{Citation/core | Periodical = periodical | language = language }} |
- sandbox
- (in language)periodical
- installed
- (in language)periodical
{{Citation/core | Periodical = periodical | format = format }} |
- sandbox
- (format)periodical
- installed
- (format)periodical
Place parameter
{{Citation/core | Place = place | Periodical = periodical }} |
- sandbox
- periodical
- installed
- periodical
{{Citation/core | Place = place | Title = title }} |
- sandbox
- title
- installed
- title
{{Citation/core | Place = place | Title = title | Surname1 = surname1 }} |
- sandbox
- surname1, written at place, title
- installed
- surname1, written at place, title
{{Citation/core | Place = place | Title = title | EditorSurname1 = editorsurname1 }} |
- sandbox
- editorsurname1, ed., written at place, title
- installed
- editorsurname1, ed., written at place, title
{{Citation/core | Place = place | Title = title | IncludedWorkTitle = includedworktitle }} |
- sandbox
- "includedworktitle", written at place, title
- installed
- "includedworktitle", written at place, title
{{Citation/core | Place = place | Title = title | Surname1 = surname1 | EditorSurname1 = editorsurname1 | IncludedWorkTitle = includedworktitle }} |
- sandbox
- surname1, "includedworktitle", written at place, in editorsurname1, title
- installed
- surname1, "includedworktitle", written at place, in editorsurname1, title
{{Citation/core | Place = place | Title = title | Periodical = periodical }} |
- sandbox
- "title", periodical
- installed
- "title", periodical
{{Citation/core | Place = place | Title = title | Surname1 = surname1 | Periodical = periodical }} |
- sandbox
- surname1, written at place, "title", periodical
- installed
- surname1, written at place, "title", periodical
{{Citation/core | Place = place | Title = title | EditorSurname1 = editorsurname1 | Periodical = periodical }} |
- sandbox
- editorsurname1, ed., written at place, "title", periodical
- installed
- editorsurname1, ed., written at place, "title", periodical
{{Citation/core | Place = place | Title = title | IncludedWorkTitle = includedworktitle | Periodical = periodical }} |
- sandbox
- includedworktitle, written at place, "title", periodical
- installed
- includedworktitle, written at place, "title", periodical
{{Citation/core | Place = place | Title = title | Surname1 = surname1 | EditorSurname1 = editorsurname1 | IncludedWorkTitle = includedworktitle | Periodical = periodical }} |
- sandbox
- surname1, includedworktitle, written at place, in editorsurname1, "title", periodical
- installed
- surname1, includedworktitle, written at place, in editorsurname1, "title", periodical
{{Citation/core | Place = place | Title = title | ID = id }} |
- sandbox
- title, id
- installed
- title, id
{{Citation/core | Place = place | Title = title | ID = id | Surname1 = surname1 }} |
- sandbox
- surname1, written at place, title, id
- installed
- surname1, written at place, title, id
{{Citation/core | Place = place | Title = title | ID = id | EditorSurname1 = editorsurname1 }} |
- sandbox
- editorsurname1, ed., written at place, title, id
- installed
- editorsurname1, ed., written at place, title, id
{{Citation/core | Place = place | Title = title | ID = id | IncludedWorkTitle = includedworktitle }} |
- sandbox
- "includedworktitle", written at place, title, id
- installed
- "includedworktitle", written at place, title, id
{{Citation/core | Place = place | Title = title | ID = id | Surname1 = surname1 | EditorSurname1 = editorsurname1 | IncludedWorkTitle = includedworktitle }} |
- sandbox
- surname1, "includedworktitle", written at place, in editorsurname1, title, id
- installed
- surname1, "includedworktitle", written at place, in editorsurname1, title, id
Identifiers
- doi
Template:Only in print
Template:Only in print
- doi broken
- , doi:10.fake/test (inactive 2009-02-01)
Template:Only in print
- , doi:10.fake/test (inactive 2009-02-01)
Template:Only in print
- invalid doi (should fail)
- , Error: Bad DOI specifiedTemplate:Namespace detect showall
Template:Only in print
- , Error: Bad DOI specifiedTemplate:Namespace detect showall
Template:Only in print
- invalid doi broken (should fail)
- , Error: Bad DOI specifiedTemplate:Namespace detect showall
Template:Only in print
- , Error: Bad DOI specifiedTemplate:Namespace detect showall
Template:Only in print
- ISBN
Template:Only in print
Template:Only in print
- ISBN
Template:Only in print
Template:Only in print
- OCLC
Template:Only in print
Template:Only in print
- PMID
Template:Only in print
Template:Only in print
- PMC w/o url
Template:Only in print
Template:Only in print
- PMC w/ url
Template:Only in print, http://example.ca
Template:Only in print, http://example.ca
- PMC w/ url and titles
Template:Only in print, http://example.ca
Template:Only in print, http://example.ca
- PMC wo/ url and titles
Template:Only in print
Template:Only in print
- Bibcode
Full citations
Citation/core
- Not archived
{{citation/core |AccessDate = {{#time:d F Y| -1 week}} |ArchiveURL = https://web.archive.org/web/20021130190725/www.wikipedia.org/ |ArchiveDate = {{#time:d F Y}} |ShowArchive = |URL = http://en.wikipedia.org |Date = 15 January 2001 |Edition = 3rd |Given1 = Jimmy |Given2 = Larry |Place = St. Petersburg |Publisher = Wikimedia Foundation |Surname1 = Wales |Surname2 = Sanger |Title = Wikipedia |Year = 2001 }}
Wales, Jimmy; Sanger, Larry (15 January 2001), written at St. Petersburg, Wikipedia (3rd ed.), Wikimedia Foundation, archived on 27 June 2022. Error: If you specify |archiveurl=
, you must first specify |url=
, http://en.wikipedia.org. Retrieved 20 June 2022
- Archived
{{citation/core |AccessDate = {{#time:d F Y| -1 week}} |ArchiveURL = https://web.archive.org/web/20021130190725/www.wikipedia.org/ |ArchiveDate = {{#time:d F Y}} |ShowArchive = yes |URL = http://en.wikipedia.org |Date = 15 January 2001 |Edition = 3rd |Given1 = Jimmy |Given2 = Larry |Place = St. Petersburg |Publisher = Wikimedia Foundation |Surname1 = Wales |Surname2 = Sanger |Title = Wikipedia |Year = 2001 }}
Wales, Jimmy; Sanger, Larry (15 January 2001), written at St. Petersburg, Wikipedia (3rd ed.), Wikimedia Foundation, archived on 27 June 2022. Error: If you specify |archiveurl=
, you must first specify |url=
, http://en.wikipedia.org. Retrieved 20 June 2022
Citation/core/sandbox
- Not archived
{{citation/core/sandbox |AccessDate = {{#time:d F Y| -1 week}} |ArchiveURL = https://web.archive.org/web/20021130190725/www.wikipedia.org/ |ArchiveDate = {{#time:d F Y}} |ShowArchive = |URL = http://en.wikipedia.org |Date = 15 January 2001 |Edition = 3rd |Given1 = Jimmy |Given2 = Larry |Place = St. Petersburg |Publisher = Wikimedia Foundation |Surname1 = Wales |Surname2 = Sanger |Title = Wikipedia |Year = 2001 }}
Wales, Jimmy; Sanger, Larry (15 January 2001), written at St. Petersburg, Wikipedia (3rd ed.), Wikimedia Foundation, archived on 27 June 2022. Error: If you specify |archiveurl=
, you must first specify |url=
Template:Namespace detect showall, http://en.wikipedia.org. Retrieved 20 June 2022
- Archived
{{citation/core/sandbox |AccessDate = {{#time:d F Y| -1 week}} |ArchiveURL = https://web.archive.org/web/20021130190725/www.wikipedia.org/ |ArchiveDate = {{#time:d F Y}} |ShowArchive = yes |URL = http://en.wikipedia.org |Date = 15 January 2001 |Edition = 3rd |Given1 = Jimmy |Given2 = Larry |Place = St. Petersburg |Publisher = Wikimedia Foundation |Surname1 = Wales |Surname2 = Sanger |Title = Wikipedia |Year = 2001 }}
Wales, Jimmy; Sanger, Larry (15 January 2001), written at St. Petersburg, Wikipedia (3rd ed.), Wikimedia Foundation, archived on 27 June 2022. Error: If you specify |archiveurl=
, you must first specify |url=
Template:Namespace detect showall, http://en.wikipedia.org. Retrieved 20 June 2022
ja:Template:Citation/core/testcases
Language
- (in English) English Wikipedia, Wikimedia Foundation, http://en.wikipedia.org
- (in German) German Wikipedia, Wikimedia Foundation, 15 January 2001, http://de.wikipedia.org