Module talk:Citation/CS1/test/errors

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

This page shows example of Module:Citation error conditions.

Empty citation[edit]

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

{{cite web }}
{{cite web}}: Empty citation (help)

Archive URL problems[edit]

Archive URL with no original URL[edit]

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

{{cite web/new | author = Bob | title = A title | archiveurl = http://archive.com/1234 | archivedate = Jan 1, 2005 }}
Bob. "A title". {{cite news}}: |archive-url= requires |url= (help)

Archive URL with no archive date[edit]

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

{{cite web/new | author = Bob | title = A title | url = http://www.foo.com | archiveurl = http://archive.com/1234 }}
Bob. "A title". {{cite news}}: |archive-url= requires |archive-date= (help)

URLs with no description[edit]

Cite web[edit]

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

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

{{cite web | author = Bob | access-date = 25 May 2010 | url = http://www.foo.com }}
Bob. http://www.foo.com. Retrieved 25 May 2010. {{cite web}}: Missing or empty |title= (help)

Other citations[edit]

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.

{{cite news | author = Bob | access-date = 25 May 2010 | url = http://www.foo.com }}
Bob. http://www.foo.com. Retrieved 25 May 2010. {{cite news}}: Missing or empty |title= (help)

Citation with no title[edit]

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 {{sfn}} or similar.

{{cite news | author = Ford, Bob | access-date = 25 May 2010 | page = 45 }}
Ford, Bob. p. 45. {{cite news}}: |access-date= requires |url= (help); Missing or empty |title= (help)

DOI errors[edit]

For citations with invalid DOI code.

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

{{cite journal | author = Ford, Bob | title = My study | journal = Some journal | doi=FUBAR | page = 45 }}
Ford, Bob. "My study". Some journal: 45. doi:FUBAR. {{cite journal}}: Check |doi= value (help)

OpenLibrary errors[edit]

For citations with invalid OL code.

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

{{cite journal | author = Ford, Bob | title = My study | journal = Some journal | OL=FUBAR | page = 45 }}
Ford, Bob. "My study". Some journal: 45. OL FUBAR. {{cite journal}}: Check |ol= value (help)

Cite web with no URL[edit]

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.

{{cite web | author = Ford, Bob | title = Awesome Page | year = 2010 }}
Ford, Bob (2010). "Awesome Page". {{cite web}}: Missing or empty |url= (help)

Page specification conflicts[edit]

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.

{{cite news | author = Ford, Bob | title = My Story | newspaper=Nowhere News | page = B4 | pages =B4,B7 | year = 2010 }}
Ford, Bob (2010). "My Story". Nowhere News. p. B4. {{cite news}}: More than one of |pages= and |page= specified (help)

Implicit et al.[edit]

First; Second; Third; Fourth; Fifth; Sixth; Seventh; Eighth; Ninth. Twelve Little Authors.

First; Second; Third; Fourth (eds.). Twelve Little Authors.

Format with no URL[edit]

Doe, John (1998). "Title". {{cite news}}: |format= requires |url= (help)