Jump to content

Module talk:Citation/CS1/test/errors

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Dragons flight (talk | contribs) at 17:48, 20 March 2013 (DOI errors). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

This page shows example of Module:Citation error conditions.

Empty citation

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

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

Archive URL problems

Archive URL with no original URL

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 web}}: |archive-url= requires |url= (help); Missing or empty |url= (help)

Archive URL with no archive date

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 web}}: |archive-url= requires |archive-date= (help)

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

Adds Category:Pages with citations having bare URLs, and includes a hidden HTML comment <!-- 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

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

Adds Category:Pages with citations lacking titles. 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

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

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)