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.

Archive URL with no original URL
Adds Category:Pages with archiveurl citation errors and displays visible error message.

Archive URL with no archive date
Adds Category:Pages with archiveurl citation errors and displays visible error message.

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

This matches the pre-Lua behavior of cite web.

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

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

Citation with no title
For citations with no  or equivalent (such as ,  ,  , etc.)

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

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

DOI errors
For citations with invalid DOI code.

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

OpenLibrary errors
For citations with invalid OL code.

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

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

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

Page specification conflicts
Only one of,  , and   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 " ". No visible error message.

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