Module talk:Citation/CS1/test/errors

This page shows example of Module:Citation error conditions.

Empty citation

Adds :Category:Pages with empty citations and displays visible error message.

class = wikitable

! {{cite web }}

{{cite web/new | no-tracking=true }}

Archive URL problems

= Archive URL with no original URL =

Adds :Category:Pages with archiveurl citation errors and displays visible error message.

class = wikitable

! {{cite web/new | author = Bob | title = A title | archiveurl = http://archive.com/1234 | archivedate = Jan 1, 2005 }}

{{cite news/new | author = Bob | title = A title | archiveurl = http://archive.com/1234 | archivedate = Jan 1, 2005 | no-tracking=true }}

= Archive URL with no archive date =

Adds :Category:Pages with archiveurl citation errors and displays visible error message.

class = wikitable

! {{cite web/new | author = Bob | title = A title | url = http://www.foo.com | archiveurl = http://archive.com/1234 }}

{{cite news/new | author = Bob | title = A title | url = http://www.foo.com | archiveurl = http://archive.com/1234 | no-tracking=true }}

URLs with no description

= Cite web =

Adds :Category:Pages with citations having bare URLs and presents a visible error message

This matches the pre-Lua behavior of {{tl|cite web}}.

class = wikitable

! {{cite web | author = Bob | access-date = 25 May 2010 | url = http://www.foo.com }}

{{cite web/new | author = Bob | access-date = 25 May 2010 | url = http://www.foo.com | no-tracking=true }}

= Other citations =

Adds :Category:Pages with citations having bare URLs, and includes a hidden comment in the HTML saying "Bare URL here". No visible error message.

This preserves historical behavior during the Lua migration. This might be upgraded to a visible error in the future.

class = wikitable

! {{cite news | author = Bob | access-date = 25 May 2010 | url = http://www.foo.com }}

{{cite news/new | author = Bob | access-date = 25 May 2010 | url = http://www.foo.com | no-tracking=true }}

Citation with no title

For citations with no title= or equivalent (such as chapter=, article=, book=, etc.)

Adds :Category:Pages with citations lacking titles, and includes a hidden comment in the HTML saying "No citation title here". No visible error message.

In some cases, this may occur if users are using citation templates as a substitute for {{tl|sfn}} or similar.

class = wikitable

! {{cite news | author = Ford, Bob | access-date = 25 May 2010 | page = 45 }}

{{cite news/new | author = Ford, Bob | access-date = 25 May 2010 | page = 45 | no-tracking=true }}

DOI errors

For citations with invalid DOI code.

Adds :Category:Pages with DOI errors. Visible error message.

class = wikitable

! {{cite journal | author = Ford, Bob | title = My study | journal = Some journal | doi=FUBAR | page = 45 }}

{{cite journal/new | author = Ford, Bob | title = My study | journal = Some journal | doi=FUBAR | page = 45 | no-tracking=true }}

OpenLibrary errors

For citations with invalid OL code.

Adds :Category:Pages with OL errors. Visible error message.

class = wikitable

! {{cite journal | author = Ford, Bob | title = My study | journal = Some journal | OL=FUBAR | page = 45 }}

{{cite journal/new | author = Ford, Bob | title = My study | journal = Some journal | OL=FUBAR | page = 45 | no-tracking=true }}

Cite web with no URL

Adds :Category:Pages using web citations with no URL, and includes a hidden comment in the HTML saying "No URL on cite web here". No visible error message.

This might be upgraded to a visible error message in the future.

class = wikitable

! {{cite web | author = Ford, Bob | title = Awesome Page | year = 2010 }}

{{cite web/new | author = Ford, Bob | title = Awesome Page | year = 2010 | no-tracking=true }}

Page specification conflicts

Only one of page=, pages=, and at= can be display on any particular citation. If more than one is specified:

Adds :Category:Pages with citations using conflicting page specifications, and includes a hidden comment in the HTML saying "Bad page specification here". No visible error message.

This might be upgraded to a visible error message in the future.

class = wikitable

! {{cite news | author = Ford, Bob | title = My Story | newspaper=Nowhere News | page = B4 | pages =B4,B7 | year = 2010 }}

{{cite news/new | author = Ford, Bob | title = My Story | newspaper=Nowhere News | page = B4 | pages =B4,B7 | year = 2010 | no-tracking=true }}

Implicit et al.

{{ cite book/new | last6=Sixth | last3=Third | last2=Second | last7=Seventh | title=Twelve Little Authors | last4=Fourth | last9=Ninth | last8=Eighth | last5=Fifth | last=First }}

{{ cite book/new | editor-last3=Third | editor-last2=Second | title=Twelve Little Authors | editor-last4=Fourth | editor-last=First }}

Format with no URL

{{cite news/new | title=Title | format=Format | author = Doe, John | date = 1998 }}