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