Category:CS1 errors: URL–wikilink conflict

From Simple English Wikipedia, the free encyclopedia
Jump to navigation Jump to search

This is a tracking category for CS1 citations that have wikilinks embedded in |title=, |chapter=, |article=, or |booktitle=, etc. while also specifying a URL for that element.

Information icon.svg Help desk

URL–wikilink conflict

External links in a rendered citation are a combination of url-holding parameters, |url=, |chapter-url=, etc., with title-holding parameters, |title=, |chapter=, etc. Title-holding parameters may be wikilinked to another Wikipedia article but not when there is a matching url-holding parameter in the citation. When this condition occurs, the wikilink is suppressed, the wiki markup ignored, and the rendered citation links to the external site.

Some templates will also cause this error if they are part of a title-holding parameter. The error occurs when the template produces wikilinked content. For example, {{lang}} templates output a wikilinked category. Templates in url-holding parameters may also corrupt the citation's COinS metadata. As a general rule, avoid using templates in title-holding parameters unless you know that the template's effects are entirely visual ({{!}} and the like).

This type of error may also occur in identifier-based templates ({{cite doi}}, etc.). When this happens, the error message is shown in the article but the error is actually located in the identifier-based citation template.

To resolve this error, remove wikilinks from title-holding parameters that are intended to be externally linked or remove the external URL, which will allow the internal wikilinks to work as expected. If wikilink-producing templates are important to the citation, move them out of the CS1 template but leave them inside the citation's <ref>...</ref> tags. Some of the functionality provided by templates may also be available through CS1 parameters.

To resolve errors in identifier-based citation templates, the template must be edited to correct the error. Exercise caution when editing these templates because identifier-based citation templates are often used in multiple articles.

Pages with this error are automatically placed in Category:CS1 errors: URL–wikilink conflict.[a]

Notes[change | change source]

  1. Pages in the Book talk, Category talk, Draft talk, Education Program talk, File talk, Help talk, MediaWiki talk, Module talk, Portal talk, Talk, Template talk, User, User talk, and Wikipedia talk namespaces are not included in the error tracking categories.