Help:CS1 errors: Difference between revisions

m 1 revision imported: Citation templates
m 1 revision imported: template update
 
(4 intermediate revisions by 4 users not shown)
Line 8: Line 8:
Errors issued by Wikipedia's <code>&lt;ref></code> system, in which citation templates are typically embedded, can be found at [[Help:Cite errors]].
Errors issued by Wikipedia's <code>&lt;ref></code> system, in which citation templates are typically embedded, can be found at [[Help:Cite errors]].


==Controlling error message display==
== Controlling error message display ==
<section begin="show_error_messages_help_text" /><section begin="show_all_messages_help_text" />By default, {{cs1}} and {{cs2}} error messages are visible to all readers and maintenance category messages are hidden from all readers.
=== Preview messages ===
When editors preview an article, MediaWiki displays a preview message box under the Preview header.  When {{cs1}} and {{cs2}} templates have error or maintenance messages, [[Module:Citation/CS1]] summarizes those messages in the preview message box.  Such a message box might look something like this:
<div style="margin-left:1.6em; display: block" class="cdx-message cdx-message--warning">
{{int:Previewnote}} <span class="mw-continue-editing"> [[#editform|→ Go to editing area]]</span>


To display maintenance messages, include the following text in your common [[Cascading Stylesheets|CSS]] page or your specific skin's CSS page ([[Special:MyPage/common.css|common.css]] and [[Special:MyPage/skin.css|skin.css]] respectively):
Script warning: {{color|#3a3|One or more {{mono|<nowiki>{{</nowiki>[[Template:cite book|cite book]]<nowiki>}}</nowiki>}} templates have maintenance messages}}; messages may be hidden ([[Help:CS1_errors#Controlling_error_message_display|help]]).
 
Script warning: {{color|#d33|One or more {{mono|<nowiki>{{</nowiki>[[Template:cite journal|cite journal]]<nowiki>}}</nowiki>}} templates have errors}}; messages may be hidden ([[Help:CS1_errors#Controlling_error_message_display|help]]).
</div>
 
The summary messages have three components:
#'Script warning:' – this prefix is provided by MediaWiki;
#a colored ({{color|#3a3|green maintenance}} or {{color|#d33|red error}}) message that identifies the type of template that has a message with a link to that template's documentation; wrapper templates with messages will show the name of the wrapped template, and;
#'messages may be hidden' – the message suffix with a help link to this page.
Preview messages in the preview message box cannot be hidden.  The preview message suffix 'messages may be hidden' means that the template's message(s) may not be visible.  To learn how to show or hide template messages, see the next section ({{slink||Error and maintenance messages}}).
 
=== Error and maintenance messages ===
 
<section begin="show_error_messages_help_text" /><section begin="show_all_messages_help_text" />By default, {{cs1}} and {{cs2}} <span style="color:#d33">error messages</span> are visible to all readers and <span style="color:#3a3">maintenance messages</span> are hidden from all readers.
 
To display <span style="color:#3a3">maintenance messages</span> in the rendered article, include the following text in your common [[Cascading Stylesheets|CSS]] page ([[Special:MyPage/common.css|common.css]]) or your specific skin's CSS page and ([[Special:MyPage/skin.css|skin.css]]).
 
(Note to new editors: those CSS pages are specific to you, and control your view of pages, by adding to your user account's [[CSS]] code. If you have not yet created such a page, then clicking one of the <code>.css</code> links above will yield a page that starts "Wikipedia does not have a [[user page]] with this exact name." Click the "Start the User:''username''/''filename'' page" link, paste the text below, save the page, follow the instructions at the bottom of the new page on bypassing your browser's cache, and finally, in order to see the previously hidden maintenance messages, refresh the page you were editing earlier.)


<syntaxhighlight lang="css">.mw-parser-output span.cs1-maint {display: inline;} /* display Citation Style 1 maintenance messages */</syntaxhighlight>
<syntaxhighlight lang="css">.mw-parser-output span.cs1-maint {display: inline;} /* display Citation Style 1 maintenance messages */</syntaxhighlight>


To display hidden-by-default error messages:
To display hidden-by-default <span style="color:#d33">error messages</span>:


<syntaxhighlight lang="css">.mw-parser-output span.cs1-hidden-error {display: inline;} /* display hidden Citation Style 1 error messages */</syntaxhighlight>
<syntaxhighlight lang="css">.mw-parser-output span.cs1-hidden-error {display: inline;} /* display hidden Citation Style 1 error messages */</syntaxhighlight>
Line 21: Line 41:
Even with this CSS installed, older pages in Wikipedia's cache may not have been updated to show these error messages even though the page is listed in one of the tracking categories. A [[WP:NULLEDIT|null edit]] will resolve that issue.
Even with this CSS installed, older pages in Wikipedia's cache may not have been updated to show these error messages even though the page is listed in one of the tracking categories. A [[WP:NULLEDIT|null edit]] will resolve that issue.


To hide normally-displayed error messages:
After (error and/maintenance) messages are displayed, it might still not be easy to find them in a large article with a lot of citations. Messages can then be found by searching (with Ctrl-F) for "(help)" or "cs1".
 
To hide normally-displayed <span style="color:#d33">error messages</span>:
<syntaxhighlight lang="css">.mw-parser-output span.cs1-visible-error {display: none;} /* hide Citation Style 1 error messages */</syntaxhighlight>
<syntaxhighlight lang="css">.mw-parser-output span.cs1-visible-error {display: none;} /* hide Citation Style 1 error messages */</syntaxhighlight>


You can personalize the display of these messages (such as changing the color), but you will need to ask someone who knows CSS or at [[WP:VPT|the technical village pump]] if you do not understand how.<section end="show_all_messages_help_text" /><section end="show_error_messages_help_text" />
You can personalize the display of these messages (such as changing the color), but you will need to ask someone who knows CSS or at [[WP:VPT|the technical village pump]] if you do not understand how.
 
{{lang|la|Nota bene}}: these CSS rules are not obeyed by [[Wikipedia:Tools/Navigation popups|Navigation popups]]. They also do not hide script warning messages in the Preview box that begin with "This is only a preview; your changes have not yet been saved".<section end="show_all_messages_help_text" /><section end="show_error_messages_help_text" />
 
=== Properties category highlighting ===
 
<section begin="prop_cat_highlight_help_text" />
[[Module:Citation/CS1]] adds properties categories to some CS1|2 citations.  Unlike errors or maintenance needs, there is no message when a properties category is added.  Properties categories may be temporary or may be perpetual.  Editors can use CSS to add special styling to CS1|2 template renderings that will highlight a citation that added a properties category.  For example, this template uses a long volume name:
:<code><nowiki>{{cite book |title=Title |date=May–Jun 2021 |volume = 1: Long volume}}</nowiki></code>
::{{cite book |title=Title |date=May–Jun 2021 |volume = 1: Long volume |no-tracking=y}}
If you add this to your CSS that citation will render with a {{background|#FFC|pale yellow}} background:
:<syntaxhighlight lang="css">.cs1-prop-long-vol {background: #FFC;}</syntaxhighlight>
Add one or more of these (with appropriate styling) to your CSS to highlight template renderings when those templates add the associated properties category:
::{{code|lang=css|.cs1-prop-foreign-lang-source {}|}} – subcategories of {{cl|CS1 foreign language sources}}
::{{code|lang=css|.cs1-prop-foreign-lang-source-2 {}|}} – {{cl|CS1 foreign language sources (ISO 639-2)}}
::{{code|lang=css|.cs1-prop-interwiki-linked-name {}|}} – author, contributor, editor, interviewer, translator name(s) linked to another language Wikipedia
::{{code|lang=css|.cs1-prop-interproj-linked-name {}|}} – author, contributor, editor, interviewer, translator name(s) linked to another MediaWiki project
::{{code|lang=css|.cs1-prop-location-test {}|}} – {{cl|CS1 location test‎}}
::{{code|lang=css|.cs1-prop-long-vol {}|}} – {{cl|CS1: long volume value}}
::{{code|lang=css|.cs1-prop-script {}|}} – subcategories of {{cl|CS1 uses foreign language script‎}}
::{{code|lang=css|.cs1-prop-tracked-param {}|}} – subcategories of {{cl|CS1 tracked parameters}}
::{{code|lang=css|.cs1-prop-year-range-abbreviated {}|}} – {{cl|CS1: abbreviated year range‎}}
<section end="prop_cat_highlight_help_text" />


==Most common errors==
==Most common errors==
<!-- Items listed here with ~10k or more -->
<!-- Items listed here with ~10k or more -->
* [[#Cite &lt;template> requires %7C&lt;param>=]], ~57k pages
* [[#Cite &lt;template> requires %7C&lt;param>=]], ~43k pages
* [[#Citation without a title of any form]], ~39k pages
* [[#&lt;periodical>= ignored]], ~26k pages
* [[#Bare URL without a title]], ~28k pages
* [[#Cite uses generic name]], ~25k pages
* [[#%7Cvolume= has extra text]], ~17k pages
* [[#Citation without a title of any form]], ~20k pages
* [[#Check date values in: %7C&lt;param1>=, %7C&lt;param2>=, ...]], ~11k pages
* [[#Bare URL without a title]], ~11k pages
* [[#External link in %7C&lt;param>=]], ~11k pages
 
* [[#Missing or empty %7Curl=]], ~8k pages
* [[#Check %7Curl= value]], ~7k pages
* [[#Cite uses generic title]], ~5k pages
* [[#%7Cformat= requires %7Curl=]], ~2k pages
* [[#%7Caccess-date= requires %7Curl=]], ~2k pages


{{See also|Category:CS1 errors|Category:CS1 maintenance}}
{{See also|Category:CS1 errors|Category:CS1 maintenance}}
Line 52: Line 91:


Pages with this error are automatically placed in {{#invoke:cs1 documentation support|help_text_cats|err_accessdate_missing_url|pages=yes}}.<ref group="lower-alpha" name="categories" /><section end="accessdate_missing_url_help_text" />
Pages with this error are automatically placed in {{#invoke:cs1 documentation support|help_text_cats|err_accessdate_missing_url|pages=yes}}.<ref group="lower-alpha" name="categories" /><section end="accessdate_missing_url_help_text" />
==<span id="archive_date_url_ts_mismatch">|archive-date= / |archive-url= timestamp mismatch</span>==
<section begin="archive_date_url_ts_mismatch_help_text" />{{help desk}}{{#invoke:Cs1 documentation support|help_text_error_messages|err_archive_date_url_ts_mismatch}}
Archive.org and Archive.today URLs have a 14-digit snapshot timestamp.  This error message is displayed when the archive snapshot date is not the same as the date stated in {{para|archive-date}}.
To resolve this error, make sure that {{para|archive-url}} and {{para|archive-date}} refer to the same snapshot.  This could mean that values assigned to either or both parameters need to be updated. To get the correct {{para|archive-date}} value, view the archived page's source, looking for a line near the bottom that starts with "FILE ARCHIVED ON". The archive date should appear on that line.
Pages with this error are automatically placed in {{#invoke:cs1 documentation support|help_text_cats|err_archive_date_url_ts_mismatch|pages=yes}}.<ref group="lower-alpha" name="categories" /><section end="archive_date_url_ts_mismatch_help_text" />
Pages with this error in the tracking category can be fixed by the bot [[WP:WAYBACKMEDIC]]. Requests to run the bot can be made at [[WP:URLREQ]].
==<span id="archive_date_missing_url">|archive-date= requires |archive-url= </span>==
<section begin="archive_date_missing_url_help_text" />{{help desk}}{{#invoke:Cs1 documentation support|help_text_error_messages|err_archive_date_missing_url}}
{{para|archive-date}}, identifies the date that the web resource was archived.  Without a matching {{para|archive-url}} parameter, {{para|archive-date}} is meaningless.
To resolve this error, provide a value for {{para|archive-url}} or remove {{para|archive-date}}
Pages with this error are automatically placed in {{#invoke:cs1 documentation support|help_text_cats|err_archive_date_missing_url|pages=yes}}.<ref group="lower-alpha" name="categories" /><section end="archive_date_missing_url_help_text" />


==<span id="archive_url">|archive-url= is malformed </span>==
==<span id="archive_url">|archive-url= is malformed </span>==
Line 126: Line 185:
<section begin="chapter_ignored_help_text" />{{help desk}}{{#invoke:Cs1 documentation support|help_text_error_messages|err_chapter_ignored|$1=chapter}}
<section begin="chapter_ignored_help_text" />{{help desk}}{{#invoke:Cs1 documentation support|help_text_error_messages|err_chapter_ignored|$1=chapter}}


{{cs1}} templates {{tlx|cite web}}, {{tlx|cite news}}, {{tlx|cite journal}}, {{tlx|cite press release}}, {{tlx|cite podcast}}, {{tlx|cite newsgroup}}, as well as template {{tlx|citation}} when it uses {{para|work}} or any of its aliases, do not support {{para|chapter}} or the aliases {{para|contribution}}, {{para|entry}}, {{para|article}}, or {{para|section}}.
{{cs1}} templates {{tlx|cite web}}, {{tlx|cite news}}, {{tlx|cite journal}}, {{tlx|cite magazine}}, {{tlx|cite press release}}, {{tlx|cite podcast}}, {{tlx|cite newsgroup}}, as well as template {{tlx|citation}} when it uses {{para|work}} or any of its aliases, do not support {{para|chapter}} and its components {{para|trans-chapter}}, {{para|script-chapter}}, {{para|chapter-url}}, and {{para|chapter-format}}.  The alias parameters {{para|contribution}}, {{para|entry}}, {{para|article}}, {{para|section}}, and their components, are similarly not supported.


To resolve this error:
To resolve this error:
Line 134: Line 193:
* for {{tl|cite news}}, {{para|department}} can be used to give the name of the newspaper's section, such as "Obituaries", or
* for {{tl|cite news}}, {{para|department}} can be used to give the name of the newspaper's section, such as "Obituaries", or
* for {{tl|citation}}, remove {{para|work}} or its aliases such as {{para|website}} and place their content in {{para|title}} if appropriate
* for {{tl|citation}}, remove {{para|work}} or its aliases such as {{para|website}} and place their content in {{para|title}} if appropriate
* move the content of the {{para|chapter}} parameter out of the template, before the closing <nowiki></ref></nowiki>


Pages with this error are automatically placed in {{#invoke:cs1 documentation support|help_text_cats|err_chapter_ignored|pages=yes}}.<ref group="lower-alpha" name="categories" /><section end="chapter_ignored_help_text" />
Pages with this error are automatically placed in {{#invoke:cs1 documentation support|help_text_cats|err_chapter_ignored|pages=yes}}.<ref group="lower-alpha" name="categories" /><section end="chapter_ignored_help_text" />
Line 146: Line 206:
* [[replacement character]], U+FFFD
* [[replacement character]], U+FFFD
* [[hair space]], U+200A
* [[hair space]], U+200A
* [[zero width space]], U+200B
* [[zero-width space]], U+200B
* [[zero width joiner]], U+200D
* [[zero-width joiner]], U+200D (note that these are permitted as part of emoji modifiers; see note below)
* [[horizontal tab]], U+0009 (HT)
* [[horizontal tab]], U+0009 (HT)
* [[line feed]], U+0010 (LF)
* [[line feed]], U+0010 (LF)
Line 158: Line 218:


Because these characters are mostly invisible, the error message identifies the character's position in the parameter value counted from the left. Space characters between the assignment operator (the '=' sign) and the parameter value are not counted. If you move through the citation with the arrow keys then the cursor may stand still once at an invisible character, which can be removed with {{keypress|Delete}} or {{keypress|Backspace}}. If you copy-paste a string to the "Characters" field at https://r12a.github.io/app-conversion/ and click "View in UniView" then the position and name of all characters is shown.
Because these characters are mostly invisible, the error message identifies the character's position in the parameter value counted from the left. Space characters between the assignment operator (the '=' sign) and the parameter value are not counted. If you move through the citation with the arrow keys then the cursor may stand still once at an invisible character, which can be removed with {{keypress|Delete}} or {{keypress|Backspace}}. If you copy-paste a string to the "Characters" field at https://r12a.github.io/app-conversion/ and click "View in UniView" then the position and name of all characters is shown.
[[Zero-width joiner]] characters (U+200D) are used as a valid part of emoji modification (for example, adding a skull emoji to a flag emoji to create a pirate flag emoji). When new modifiers are added to the emoji character set, which happens one or two times per year, those modifiers need to be added to the Citation Style 1 "Configuration" module. Editors can request this addition at [[Help talk:Citation Style 1]].


{{#invoke:Cs1 documentation support|help_text_error_messages|err_invisible_char|$1=&lt;name> stripmarker|$2=<code class="cs1-code">{{pipe}}&lt;param>=</code>|$3={{var|n}}}}
{{#invoke:Cs1 documentation support|help_text_error_messages|err_invisible_char|$1=&lt;name> stripmarker|$2=<code class="cs1-code">{{pipe}}&lt;param>=</code>|$3={{var|n}}}}


[[Help:Strip markers|Strip markers]] are special sequences of characters that [[MediaWiki]] inserts as a place-holder for certain [[xml]]-like tags.  These tags include {{tag|gallery}}, {{tag|math}}, {{tag|nowiki}}, {{tag|pre}}, and {{tag|ref}}.  The strip markers are replaced with content before the final page rendering.  The module ignores math and nowiki strip markers.
[[Help:Strip markers|Strip markers]] are special sequences of characters that [[MediaWiki]] inserts as a place-holder for certain [[XML]]-like tags.  These tags include {{tag|gallery}}, {{tag|math}}, {{tag|nowiki}}, {{tag|pre}}, and {{tag|ref}}.  The strip markers are replaced with content before the final page rendering.  The module ignores math and nowiki strip markers.


To resolve strip marker errors, remove or replace the identified tag.  The error message identifies the strip marker's position in the parameter value counted from the left.  Space characters between the assignment operator (the '=' sign) and the parameter value are not counted when calculating the position.
To resolve strip marker errors, remove or replace the identified tag.  The error message identifies the strip marker's position in the parameter value counted from the left.  Space characters between the assignment operator (the '=' sign) and the parameter value are not counted when calculating the position.


Strip marker errors can also be caused by unsupported additional text or templates in parameter values{{mdash}}for example, {{tl|ISBN}} in {{para|title}}. Resolve the problem by moving the extraneous text outside of the citation template, or by removing the extraneous text or template markup, as appropriate.
Strip marker errors can also be caused by unsupported additional text or templates in parameter values{{mdash}}for example, {{tl|ISBN}} in {{para|title}}. Resolve the problem by moving the extraneous text outside the citation template, or by removing the extraneous text or template markup, as appropriate.


Pages with this error are automatically placed in {{#invoke:cs1 documentation support|help_text_cats|err_invisible_char|pages=yes}}.<ref group="lower-alpha" name="categories" /><section end="invisible_char_help_text" />
Pages with this error are automatically placed in {{#invoke:cs1 documentation support|help_text_cats|err_invisible_char|pages=yes}}.<ref group="lower-alpha" name="categories" /><section end="invisible_char_help_text" />
Line 185: Line 247:
To resolve this error, ensure that the {{para|asin}} value is correct.
To resolve this error, ensure that the {{para|asin}} value is correct.


If the {{para|asin}} value is correct and all-numeric, use {{para|isbn}} instead and delete any {{para|asin-tld}} parameters.  Articles with CS1 citations that use {{para|asin}} with all numeric values are categorized in {{cl|CS1 maint: ASIN uses ISBN}}.
If the {{para|asin}} value is correct and all-numeric, use {{para|isbn}} instead and delete any {{para|asin-tld}} parameters.   


Pages with this error are automatically placed in {{#invoke:cs1 documentation support|help_text_cats|err_bad_asin|pages=yes}}.<ref group="lower-alpha" name="categories" /><section end="bad_asin_help_text" />
Pages with this error are automatically placed in {{#invoke:cs1 documentation support|help_text_cats|err_bad_asin|pages=yes}}.<ref group="lower-alpha" name="categories" /><section end="bad_asin_help_text" />
Line 255: Line 317:
==<span id="bad_date">Check date values in: |&lt;param1>=, |&lt;param2>=, ...</span>==
==<span id="bad_date">Check date values in: |&lt;param1>=, |&lt;param2>=, ...</span>==
<section begin="bad_date_help_text" />{{help desk}}
<section begin="bad_date_help_text" />{{help desk}}
<div class="plainlist">
{{plainlist}}
*{{#invoke:Cs1 documentation support|help_text_error_messages|err_bad_date|$1=<code class="cs1-code">{{pipe}}&lt;param1>=</code>, <code class="cs1-code">{{pipe}}&lt;param2>=</code>, ...}}
*{{#invoke:Cs1 documentation support|help_text_error_messages|err_bad_date|$1=<code class="cs1-code">{{pipe}}&lt;param1>=</code>, <code class="cs1-code">{{pipe}}&lt;param2>=</code>, ...}}
*{{#invoke:Cs1 documentation support|help_text_error_messages|err_bad_date|$1=<code class="cs1-code">{{pipe}}year=</code> / <code class="cs1-code">{{pipe}}date=</code> mismatch}}
*{{#invoke:Cs1 documentation support|help_text_error_messages|err_bad_date|$1=<code class="cs1-code">{{pipe}}year=</code> / <code class="cs1-code">{{pipe}}date=</code> mismatch}}
</div>
{{endplainlist}}


When {{cs1}} and {{cs2}} templates contain date-holding parameters, an automated test is done to see if the dates are real dates that comply with a [[Help:Citation_Style_1#Date_compliance_with_Wikipedia's_Manual_of_Style|subset of the date rules]] in  Wikipedia's Manual of Style, specifically checking for violations of [[Wikipedia:Manual of Style/Dates and numbers#Dates and years|MOS:DATEFORMAT]].
When {{cs1}} and {{cs2}} templates contain date-holding parameters, an automated test is done to see if the dates are real dates that comply with a [[Help:Citation_Style_1#Date format compliance with Wikipedia's Manual of Style|subset of the date rules]] in  Wikipedia's Manual of Style, specifically checking for violations of [[Wikipedia:Manual of Style/Dates and numbers#Dates and years|MOS:DATEFORMAT]].


To resolve this error, ensure that the date is an actual date and that the date format follows the [[MOS:DATEFORMAT|Wikipedia Manual of Style's guidance on dates]] in the named parameter. See [[Help:CS1 errors#ExamplesOfUnacceptableDates|examples of unacceptable dates and how to fix them]], below.  Or, some conceptual issues to look for:
To resolve this error, ensure that the date is an actual date and that the date format follows the [[MOS:DATEFORMAT|Wikipedia Manual of Style's guidance on dates]] in the named parameter. See [[Help:CS1 errors#ExamplesOfUnacceptableDates|examples of unacceptable dates and how to fix them]], below.  Or, some conceptual issues to look for:
* impossible dates, such as 29 February 2011 (2011 was not a leap year)
* impossible dates, such as 29 February 2011 (2011 was not a leap year)
* {{para|access-date}} must specify a day, not just a month or year.
* {{para|access-date}} must specify a day, not just a month or year
* {{para|archive-date}} must specify a whole date
* misplaced, incorrect, or extraneous punctuation
* misplaced, incorrect, or extraneous punctuation
* misplaced, incorrect, or extraneous spacing
* extraneous text  
* extraneous text  
* hyphens or slashes instead of en dashes in date ranges (en dashes are required)  
* hyphens or slashes instead of en dashes in date ranges (en dashes are required)  
Line 271: Line 335:
* other unacceptable date formats listed in [[MOS:BADDATEFORMAT]]
* other unacceptable date formats listed in [[MOS:BADDATEFORMAT]]
* more than one date in a date-holding parameter
* more than one date in a date-holding parameter
* days of the week (such as Monday, June 6 instead of June 6)
* years before 100 AD, including BCE/BC dates. Try using parameter {{para|orig-date}} instead.  
* years before 100 AD, including BCE/BC dates. Try using parameter {{para|orig-date}} instead.  


See [[Help:Citation_Style_1#CS1_compliance_with_Wikipedia.27s_Manual_of_Style|Help: Citation Style 1]] for information about limitations in the CS1 citation templates' handling of date formats. [[WP:DATERANGE|The MOS section on date ranges]] describes how to separate dates in a date range. Do not use <code>&amp;nbsp;</code>, <code>&amp;ndash;</code>, or {{tlx|spaced ndash}} as these corrupt the metadata. To add an en dash, use the [[Help:CharInsert#Insert|CharInsert]] edit tool or see [[Wikipedia:How to make dashes]]. You may also use this one: &ndash;. A bot is often able to correct the separator, provided the overall format is unambiguous.
See [[Help:Citation_Style_1#CS1_compliance_with_Wikipedia.27s_Manual_of_Style|Help: Citation Style 1]] for information about limitations in the CS1 citation templates' handling of date formats. [[WP:DATERANGE|The MOS section on date ranges]] describes how to separate dates in a date range. Do not use <code>&amp;nbsp;</code>, <code>&amp;ndash;</code>, or {{tlx|spaced ndash}} as these corrupt the metadata. To add an en dash, use the [[Help:CharInsert#Insert|CharInsert]] edit tool or see [[Wikipedia:How to make dashes]]. You may also copy and paste this one: &ndash;. A bot is often able to correct the separator, provided the overall format is unambiguous.


Future dates in {{para|date}} in CS1|2 citations are limited to current year + 1; that is, for {{#time:Y}}, citation dates in {{#time:Y|now +1 year}} are acceptable but citation dates in {{#time:Y|now +2 year}} and beyond are not.
Future dates in {{para|date}} in CS1|2 citations are limited to current year + 1; that is, for {{#time:Y}}, citation dates in {{#time:Y|now +1 year}} are acceptable but citation dates in {{#time:Y|now +2 year}} and beyond are not.
Line 313: Line 378:
| Ambiguous date range or year and month || {{para|plain=y|date|2002-{{red|03}}}} || {{plainlist|
| Ambiguous date range or year and month || {{para|plain=y|date|2002-{{red|03}}}} || {{plainlist|
* {{para|plain=y|date|2002–{{green|20}}03}}
* {{para|plain=y|date|2002–{{green|20}}03}}
* {{para|plain=y|date|2002-03{{green|-XX}}}} ([[Extended Date Time Format|EDTF]] / ISO 8601:2019)
* {{para|plain=y|date|{{green|March}} 2002}}}}
* {{para|plain=y|date|{{green|March}} 2002}}}}
|-
|-
Line 393: Line 457:
: {{error-small|invalid form}} – 10-digit ISBNs with the mis-positioned 'X' character
: {{error-small|invalid form}} – 10-digit ISBNs with the mis-positioned 'X' character
: {{error-small|invalid group id}} – 13-digit ISBN begins with '9790'; this prefix / group ID combination is reserved to [[ISMN]]
: {{error-small|invalid group id}} – 13-digit ISBN begins with '9790'; this prefix / group ID combination is reserved to [[ISMN]]
To resolve this error, ensure that the {{para|isbn}} value is correct, that only one ISBN is used, that the proper optional separators are used, and that no other text is included. Use the ISBN printed on the work rather than one retrieved from third-party sources. If ''both are available'', use the 13-digit ISBN.. When a 10-digit ISBN is used, if the check digit is a lowercase 'x', change it to an uppercase 'X'.
To resolve this error, ensure that the {{para|isbn}} value is correct, that only one ISBN is used, that the proper optional separators are used, and that no other text is included. Use the ISBN printed on the work rather than one retrieved from third-party sources. If ''both are available'', use the 13-digit ISBN. When a 10-digit ISBN is used, if the check digit is a lowercase 'x', change it to an uppercase 'X'.


* '''Do not''' try to resolve the error by simply recalculating the check digit.  The check digit is there to check whether the main part of the number is correct.  If the ISBN is failing to validate, it is likely that there is a typo in the main part of the number.  In this case, recalculating the check digit results in an apparently valid ISBN that leads to the wrong source (or to nowhere).
* '''Do not''' try to resolve the error by simply recalculating the check digit.  The check digit is there to check whether the main part of the number is correct.  If the ISBN is failing to validate, it is likely that there is a typo in the main part of the number.  In this case, recalculating the check digit results in an apparently valid ISBN that leads to the wrong source (or to nowhere).
Line 419: Line 483:
==<span id="bad_issn">Check |issn= value</span>==
==<span id="bad_issn">Check |issn= value</span>==
<section begin="bad_issn_help_text" />{{help desk}}
<section begin="bad_issn_help_text" />{{help desk}}
<div class="plainlist">
{{plainlist}}
*{{#invoke:Cs1 documentation support|help_text_error_messages|err_bad_issn|$1=_}}
*{{#invoke:Cs1 documentation support|help_text_error_messages|err_bad_issn|$1=_}}
*{{#invoke:Cs1 documentation support|help_text_error_messages|err_bad_issn|$1=e}}
*{{#invoke:Cs1 documentation support|help_text_error_messages|err_bad_issn|$1=e}}
</div>
{{endplainlist}}


{{cs1}} and {{cs2}} templates that contain {{para|issn}} and/or {{para|eissn}} are checked to ensure that the [[ISSN]] is the proper length (eight digits) and that the final [[check digit]] validates according to the ISSN specification. Only one each of ISSN and eISSN is allowed in this field because the whole {{para|issn}} and {{para|eissn}} values are included in the citation's [[COinS]] [[metadata]]. See also [[Wikipedia:COinS]]. (If relevant, they can be specified using {{para|id|{{tlp|ISSN|...}} {{tlp|EISSN|...}}}} instead.)
{{cs1}} and {{cs2}} templates that contain {{para|issn}} and/or {{para|eissn}} are checked to ensure that the [[ISSN]] is the proper length (eight digits) and that the final [[check digit]] validates according to the ISSN specification. Only one each of ISSN and eISSN is allowed in this field because the whole {{para|issn}} and {{para|eissn}} values are included in the citation's [[COinS]] [[metadata]]. See also [[Wikipedia:COinS]]. (If relevant, they can be specified using {{para|id|{{tlp|ISSN|...}} {{tlp|EISSN|...}}}} instead.)
Line 428: Line 492:
The ISSN and eISSN are always rendered as two four-digit numbers separated with a hyphen.
The ISSN and eISSN are always rendered as two four-digit numbers separated with a hyphen.


To resolve this error, ensure that the {{para|issn}} and {{para|eissn}} values are correct, that only one value per parameter is used, and that no other text is included (allowable characters are 0–9, X, and -). If the check-digit is a lowercase 'x', change it to an uppercase 'X'.
To resolve this error, ensure that the {{para|issn}} and {{para|eissn}} values are correct, that only one value per parameter is used, and that no other text is included (allowable characters are 0–9, X, and -). If the check-digit is a lowercase 'x', change it to an uppercase 'X'. It may also be worth checking an actual [[hyphen]] (-) has been used, and not a hyphen-like character like an [[endash]] (–).


In very rare cases, publishers have released works with a malformed identifier. If you are certain that a non-conforming identifier truly corresponds to the published work, then you can add [[Help:Citation_Style_1#Accept-this-as-written_markup|accept-this-as-written markup]] around the identifier to suppress the error message. In some cases, works may have been reissued with a corrected identifier. Use the corrected one when possible.
In very rare cases, publishers have released works with a malformed identifier. If you are certain that a non-conforming identifier truly corresponds to the published work, then you can add [[Help:Citation_Style_1#Accept-this-as-written_markup|accept-this-as-written markup]] around the identifier to suppress the error message. In some cases, works may have been reissued with a corrected identifier. Use the corrected one when possible.
Line 481: Line 545:


Pages with this error are automatically placed in {{#invoke:cs1 documentation support|help_text_cats|err_bad_lccn|pages=yes}}.<ref group="lower-alpha" name="categories" /><section end="bad_lccn_help_text" />
Pages with this error are automatically placed in {{#invoke:cs1 documentation support|help_text_cats|err_bad_lccn|pages=yes}}.<ref group="lower-alpha" name="categories" /><section end="bad_lccn_help_text" />
==<span id="bad_medrxiv">Check |medrxiv= value</span>==
<section begin="bad_medrxiv_help_text" />{{help desk}}{{#invoke:Cs1 documentation support|help_text_error_messages|err_bad_medrxiv}}
When {{cs1}} and {{cs2}} templates contain {{para|medrxiv}}, a test is done to see if the [[medRxiv]] identifier has the proper form.  The medRxiv identifier begins with medRxiv's doi directory indicator and registrant code (10.1101) and followed by:
: ymd format date prefix followed by eight numeric characters without punctuation or spaces followed by optional version:
:: {{para|medrxiv|10.1101/yyyy.mm.dd.########v#}} where:
::: <code>yyyy.mm.dd.</code> – represents a date no earlier than 1 January 2020 (<code>2020.01.01.</code>) and no later than tomorrow's date; date must be a valid date
::: <code>########</code> – 8-digit medRxiv identifier
::: <code>v#</code> – optional version indicator
A common error is to include the medRxiv ''URL'' (<code>{{red|<nowiki>https://dx.doi.org/</nowiki>}}10.1101/yyyy.mm.dd.########}}</code>).
To resolve this error, ensure that the {{para|medrxiv}} value is correct.
Pages with this error are automatically placed in {{#invoke:cs1 documentation support|help_text_cats|err_bad_medrxiv|pages=yes}}.<ref group="lower-alpha" name="categories" /><section end="bad_medrxiv_help_text" />


==<span id="bad_message_id">Check |message-id= value</span>==
==<span id="bad_message_id">Check |message-id= value</span>==
<section begin="bad_message_id_help_text" />{{help desk}}{{#invoke:Cs1 documentation support|help_text_error_messages|err_bad_usenet_id}}
<section begin="bad_message_id_help_text" />{{help desk}}{{#invoke:Cs1 documentation support|help_text_error_messages|err_bad_usenet_id}}


The {{para|message-id}} parameter holds the unique identifier associated with a netnews message.<ref>{{cite web |url=//tools.ietf.org/html/rfc5536 |title=Netnews Article Format |website=[[Internet Engineering Task Force]] |at=[//tools.ietf.org/html/rfc5536#section-3.1.3 3.1.3] |rfc=5536 |date=November 2009}}</ref>  The value in {{para|message-id}} is checked to make sure that it contains <code>@</code> between left and right identifiers. {{para|message-id}} is also checked to make sure that the first character is not <code>&lt;</code> and the last character is not <code>></code>. [[Module:Citation/CS1]] adds the [[URI scheme]] <code>news:</code> to the value in {{para|message-id}}.  If the value in {{para|message-id}} is wrapped in <code><...></code> characters, the link created fails.
The {{para|message-id}} parameter holds the unique identifier associated with a netnews message.<ref>{{cite web |url=https://tools.ietf.org/html/rfc5536 |title=Netnews Article Format |website=[[Internet Engineering Task Force]] |at=[https://tools.ietf.org/html/rfc5536#section-3.1.3 3.1.3] |rfc=5536 |date=November 2009}}</ref>  The value in {{para|message-id}} is checked to make sure that it contains <code>@</code> between left and right identifiers. {{para|message-id}} is also checked to make sure that the first character is not <code>&lt;</code> and the last character is not <code>></code>. [[Module:Citation/CS1]] adds the [[URI scheme]] <code>news:</code> to the value in {{para|message-id}}.  If the value in {{para|message-id}} is wrapped in <code><...></code> characters, the link created fails.


Further validation is not performed.
Further validation is not performed.
Line 547: Line 627:
==<span id="bad_paramlink">Check |&lt;param>-link= value</span>==
==<span id="bad_paramlink">Check |&lt;param>-link= value</span>==
<section begin="bad_paramlink_help_text" />{{help desk}}
<section begin="bad_paramlink_help_text" />{{help desk}}
<div class="plainlist">
{{plainlist}}
* {{#invoke:Cs1 documentation support|help_text_error_messages|err_bad_paramlink|$1=<code class="cs1-code">&lt;param>-link</code>}}
* {{#invoke:Cs1 documentation support|help_text_error_messages|err_bad_paramlink|$1=<code class="cs1-code">&lt;param>-link</code>}}
* {{#invoke:Cs1 documentation support|help_text_error_messages|err_bad_paramlink|$1=<code class="cs1-code">&lt;param></code>}}
* {{#invoke:Cs1 documentation support|help_text_error_messages|err_bad_paramlink|$1=<code class="cs1-code">&lt;param></code>}}
</div>
{{endplainlist}}


These link-holding parameters and their matching title-holding parameters are combined to create a working [[wikilink]] to a related article.
These link-holding parameters and their matching title-/name-holding parameters are combined to create a working [[wikilink]] to a related article.
{{div col|colwidth=20em}}
{| class="wikitable"
* {{para|author-link}}
|+Parameters combined to make wikilinks
* {{para|contributor-link}}
!Link-holding parameter !! title-/name-holding parameter(s)
* {{para|editor-link}}
|-
* {{para|episode-link}}
| {{para|author-link}}{{dagger}} || {{para|author}}, {{para|last}}, {{para|last}} + {{para|first}}
* {{para|interviewer-link}}
|-
* {{para|series-link}}
| {{para|contributor-link}}{{dagger}} || {{para|contributor}}, {{para|contributor-last}}, {{para|contributor-last}} + {{para|contributor-first}}
* {{para|subject-link}}
|-
* {{para|title-link}}
| {{para|editor-link}}{{dagger}} || {{para|editor}}, {{para|editor-last}}, {{para|editor-last}} + {{para|editor-first}}
* {{para|translator-link}}
|-
* {{para|author}}
| {{para|episode-link}} || {{para|episode}}
* {{para|contributor}}
|-
* {{para|editor}}
| {{para|interviewer-link}}{{dagger}} || {{para|interviewer}}, {{para|interviewer-last}}, {{para|interviewer-last}} + {{para|interviewer-first}}
* {{para|episode}}
|-
* {{para|interviewer}}
| {{para|series-link}} || {{para|series}}
* {{para|series}}
|-
* {{para|subject}}
| {{para|subject-link}}{{dagger}} || {{para|subject}}
* {{para|title}}
|-
* {{para|translator}}
| {{para|title-link}} || {{para|title}}
{{div col end}}
|-
 
| {{para|translator-link}}{{dagger}} || {{para|translator}}, {{para|translator-last}}, {{para|translator-last}} + {{para|translator-first}}
(Parameters checked for this error may also be of the form {{para|author-link{{var|n}}}} or {{para|author{{var|n}}-link}}.)
|-
|colspan="2"|{{dagger}} Parameters checked for this error may also have the enumerated forms: {{para|author-link{{var|n}}}} or {{para|author{{var|n}}-link}} etc.
|}


This error occurs when any of these {{para|&lt;param>-link}} parameters contain a wikilink or a URL, or they contain any of the characters not permitted in Wikipedia article titles per [[WP:TITLESPECIALCHARACTERS]] (except <code>_</code> (underscore), used as a replacement for spaces, and <code>#</code>, used as a [[fragment identifier]] when linking to article sections).  The prohibited characters are: <code>&lt; > [ ] | { }</code>.
This error occurs when any of these {{para|&lt;param>-link}} parameters contain a wikilink or a URL, or they contain any of the characters not permitted in Wikipedia article titles per [[WP:TITLESPECIALCHARACTERS]] (except <code>_</code> (underscore), used as a replacement for spaces, and <code>#</code>, used as a [[fragment identifier]] when linking to article sections).  The prohibited characters are: <code>&lt; > [ ] | { }</code>.
Line 585: Line 667:
: <code><nowiki>[[:fr:Période d'exil de Caravage]]</nowiki></code>
: <code><nowiki>[[:fr:Période d'exil de Caravage]]</nowiki></code>


This error can also be caused when there is a {{para|&lt;param>-link}} value and the matching {{para|&lt;param>}} parameter contains a wikilink.<!--formatting template such as {{tl|smallcaps}} or {{tl|IAST}}, which should not be used in CS1 or CS2 templates.-->
This error can also be caused when:
* there is a {{para|&lt;param>-link}} value and the matching {{para|&lt;param>}} parameter contains a wikilink.<!--formatting template such as {{tl|smallcaps}} or {{tl|IAST}}, which should not be used in CS1 or CS2 templates.-->
* {{para|first}} and {{para|&lt;param>-first}} (and enumerated forms) contain a wikilink


To resolve this error, do one of the following:
To resolve this error, do one of the following:
Line 680: Line 764:


==<span id="bad_url">Check |url= value</span>==
==<span id="bad_url">Check |url= value</span>==
<section begin="bad_url_help_text" />{{help desk}}{{#invoke:Cs1 documentation support|help_text_error_messages|err_bad_url|$1=<code class="cs1-code">{{pipe}}url=</code>}}
<section begin="bad_url_help_text" />{{help desk}}{{plainlist|
*{{#invoke:Cs1 documentation support|help_text_error_messages|err_bad_url|$1=<code class="cs1-code">{{pipe}}url=</code>}}
*{{#invoke:Cs1 documentation support|help_text_error_messages|err_bad_url|$1=<code class="cs1-code">{{pipe}}archive-url=</code>}}}}


External links in {{cs1}} and {{cs2}} templates are made from two parts: the ''title'' ({{para|title}}, {{para|chapter}}, etc.) and the ''URL'' ({{para|url}}, {{para|archive-url}}, {{para|chapter-url}}, {{para|lay-url}}, etc.). The {{para|url}} parameter and other URL parameters must begin with a supported [[URI scheme]]. The URI schemes <code>http://</code>, <code>https://</code> and the protocol relative scheme <code>//</code> are most commonly used; <code>irc://</code>, <code>ircs://</code>, <code>ftp://</code>, <code>news:</code>, <code>mailto:</code> and <code>gopher://</code> are also supported.
External links in {{cs1}} and {{cs2}} templates are made from two parts: the ''title'' ({{para|title}}, {{para|chapter}}, etc.) and the ''URL'' ({{para|url}}, {{para|archive-url}}, {{para|chapter-url}}, etc.). The {{para|url}} parameter and other URL parameters must begin with a supported [[URI scheme]]. The URI schemes <code>http://</code>, <code>https://</code>, and the protocol relative scheme <code>//</code> are most commonly used; <code>irc://</code>, <code>ircs://</code>, <code>ftp://</code>, <code>news:</code>, <code>mailto:</code> and <code>gopher://</code> are also supported.


The URL field is checked to ensure that it contains only Latin characters and does not contain spaces.  The URL may be protocol relative (begins with <code>//</code>).  If there are no spaces and the URL is not protocol relative, then the scheme must comply with <nowiki>RFC 3986</nowiki>.<ref>{{citation |mode=cs1 |contribution-url=http://tools.ietf.org/html/std66#section-3.1 |contribution=Scheme |title=Uniform Resource Identifier (URI): Generic Syntax |publisher=[[Internet Engineering Task Force]] |date=January 2005 |rfc=3986}}</ref>   
The URL scheme and host are checked to ensure that they contain only Latin characters, certain (required) punctuation, and do not contain spaces.  The URL may be protocol relative (begins with <code>//</code>).  If there are no spaces and the URL is not protocol relative, then the scheme must comply with <nowiki>RFC 3986</nowiki>.<ref>{{citation |mode=cs1 |contribution-url=http://tools.ietf.org/html/std66#section-3.1 |contribution=Scheme |title=Uniform Resource Identifier (URI): Generic Syntax |publisher=[[Internet Engineering Task Force]] |date=January 2005 |rfc=3986}}</ref>
 
Some URL domains are written with non-Latin characters.  cs1|2 does not accept those kinds of URLs so they must be '[[Internationalized domain name|internationalized]]'. Online tools are available to internationalize URLs that are written in non-Latin scripts:
* {{cite web |url=https://www.verisign.com/en_US/channel-resources/domain-registry-products/idn/idn-conversion-tool/index.xhtml?loc=en_US |title=IDN Conversion Tool |website=Verisign }} Only enter the domain in the tool and not the full url.


Top- and second-level domain names are checked for proper form.  Generally, top-level domain names must be two or more letters; second-level domain names must be two or more letters, digits, or hyphens (first and last character must be a letter or digit).  [[Single-letter second-level domain]]s are supported for:
Top- and second-level domain names are checked for proper form.  Generally, top-level domain names must be two or more letters; second-level domain names must be two or more letters, digits, or hyphens (first and last character must be a letter or digit).  [[Single-letter second-level domain]]s are supported for:
Line 691: Line 780:
* certain letters of the [[.com]] TLD (q, x, z)
* certain letters of the [[.com]] TLD (q, x, z)
* certain letters of the [[.net]] TLD (i, q)
* certain letters of the [[.net]] TLD (i, q)
* certain other TLDs ({{#invoke:cs1 documentation support|single_ltr_2nd_lvl_domain_lister}})
Third- and subsequent-level domain names are not checked.  The path portion of the URL is not checked.
Third- and subsequent-level domain names are not checked.  The path portion of the URL is not checked.


{{#invoke:Cs1 documentation support|help_text_error_messages|err_bad_url|$1=<code class="cs1-code">{{pipe}}archive-url=</code>}}
There is an additional test for {{para|archive-url}}.  The cs1|2 templates expect that {{para|archive-url}} will hold a unique URL for an archived snapshot of the source identified by {{para|url}} or {{para|chapter-url}} (or any of its aliases).  This error message is emitted when the value assigned to {{para|archive-url}} is the same as the matching title or chapter URL. 


The cs1|2 templates expect that {{para|archive-url}} will hold a unique url for an archived snapshot of the source identified by {{para|url}} or {{para|chapter-url}} (or any of its aliases).  This error message is emitted when the value assigned to {{para|archive-url}} is the same as the matching title or chapter url. 
To resolve this error, ensure that:
 
*{{para|url}} and other URL parameters contain valid URLs
To resolve this error, ensure that {{para|url}} and other URL parameters contain valid URLs.  Online tools are available to [[Internationalized domain name|internationalize]] URLs that are written in non-Latin scripts:
*URLs copy-pasted from elsewhere include the URI scheme
* {{cite web |url=https://www.verisign.com/en_US/channel-resources/domain-registry-products/idn/idn-conversion-tool/index.xhtml?loc=en_US |title=IDN Conversion Tool |website=Verisign }}
*that the domain name uses only Latin characters


Pages with this error are automatically placed in {{#invoke:cs1 documentation support|help_text_cats|err_bad_url|pages=yes}}.<ref group="lower-alpha" name="categories" /><section end="bad_url_help_text" />
Pages with this error are automatically placed in {{#invoke:cs1 documentation support|help_text_cats|err_bad_url|pages=yes}}.<ref group="lower-alpha" name="categories" /><section end="bad_url_help_text" />
Line 716: Line 806:
*{{#invoke:Cs1 documentation support|help_text_error_messages|err_param_unknown_empty|$1=s|$2=<code class="cs1-code">{{pipe}}&lt;param1>=</code>, <code class="cs1-code">{{pipe}}&lt;param2>=</code>, ...}}}}
*{{#invoke:Cs1 documentation support|help_text_error_messages|err_param_unknown_empty|$1=s|$2=<code class="cs1-code">{{pipe}}&lt;param1>=</code>, <code class="cs1-code">{{pipe}}&lt;param2>=</code>, ...}}}}


This error message is hidden.  To show this error message see [[Help:CS1 errors#Controlling error message display|Controlling error message display]].
This error message highlights CS1|2 templates that hold empty parameters with names that are not known to a given CS1|2 template.  This error message is a companion to [[Help:CS1 errors#parameter_ignored|Unknown parameter {{pipe}}xxxx= ignored]].
 
This error message highlights CS1|2 templates that hold empty parameters with names that are not known to CS1|2.  This error message is a companion to [[Help:CS1 errors#parameter_ignored|Unknown parameter {{pipe}}xxxx= ignored]].


Empty positional parameters, which typically look like two adjacent pipes in a template, <code><nowiki>| |</nowiki></code>, or a pipe and then the end of the template, <code><nowiki>|}}</nowiki></code>, are identified as numbered parameters: {{error-small|{{para|1|plain=yes}}}}.  Similarly, a pipe followed by an HTML comment that encloses everything before the next pipe or closing brace, <code>| &lt;!--&lt;{{var|param name/value pair}}>--> |</code> will be identified as an empty numbered parameter. Parameters that have both a pipe and an equal sign but do not have a name are identified as empty-string parameters: <code>|=</code> or <code>| =</code> → {{error-small|{{para|(empty string)|plain=yes}}}}.  Various templates that wrap CS1|2 templates may cause this error when they use constructs like this: <code><nowiki>|{{#if:{{{2|}}}|title}}={{{2|}}}</nowiki></code>.  When <code><nowiki>{{{2|}}}</nowiki></code> does not have a value, the template creates <code>|=</code>.
Empty positional parameters, which typically look like two adjacent pipes in a template, <code><nowiki>| |</nowiki></code>, or a pipe and then the end of the template, <code><nowiki>|}}</nowiki></code>, are identified as numbered parameters: {{error-small|{{para|1|plain=yes}}}}.  Similarly, a pipe followed by an HTML comment that encloses everything before the next pipe or closing brace, <code>| &lt;!--&lt;{{var|param name/value pair}}>--> |</code> will be identified as an empty numbered parameter. Parameters that have both a pipe and an equal sign but do not have a name are identified as empty-string parameters: <code>|=</code> or <code>| =</code> → {{error-small|{{para|(empty string)|plain=yes}}}}.  Various templates that wrap CS1|2 templates may cause this error when they use constructs like this: <code><nowiki>|{{#if:{{{2|}}}|title}}={{{2|}}}</nowiki></code>.  When <code><nowiki>{{{2|}}}</nowiki></code> does not have a value, the template creates <code>|=</code>.


To resolve this error, remove the extra pipe, correct the parameter name, or remove the parameter from the CS1|2 template.
To resolve this error:
* remove the extra pipe,  
* correct the parameter name,  
* remove the parameter from the CS1|2 template, or
* change the citation to use a more appropriate template (e.g. change {{tl|Cite document}} to {{tl|Cite web}})


Pages with this error are automatically placed in {{#invoke:cs1 documentation support|help_text_cats|err_param_unknown_empty|pages=yes}}.<ref group="lower-alpha" name="categories" /><section end="param_unknown_empty_help_text" />
Pages with this error are automatically placed in {{#invoke:cs1 documentation support|help_text_cats|err_param_unknown_empty|pages=yes}}.<ref group="lower-alpha" name="categories" /><section end="param_unknown_empty_help_text" />
==<span id="missing_publisher"></span>Cite document requires |publisher===
<section begin="missing_publisher_help_text" />{{help desk}}{{#invoke:Cs1 documentation support|help_text_error_messages|err_missing_publisher|$1=document|$2=publisher}}
This error message is displayed when {{tlx|Cite document}} does not have {{para|publisher}}.  Usually, there is a more appropriate template that can be used in place of {{tld|cite document}}.  When {{tld|cite document}} is used, it  accepts a limited subset of the cs1|2 parameter suite but requires {{para|publisher}}.
To resolve this error, use a more appropriate template (preferred solution) or provide {{para|publisher}}.
Pages with this error are automatically placed in {{#invoke:cs1 documentation support|help_text_cats|err_missing_publisher|pages=yes}}.<ref group="lower-alpha" name="categories" /><section end="missing_publisher_help_text" />


==<span id="missing_periodical"></span>Cite &lt;template> requires |&lt;param>===
==<span id="missing_periodical"></span>Cite &lt;template> requires |&lt;param>===
<section begin="missing_periodical_help_text" />{{help desk}}{{#invoke:Cs1 documentation support|help_text_error_messages|err_missing_periodical|$1=&lt;template>|$2=&lt;param>}}
<section begin="missing_periodical_help_text" />{{help desk}}{{#invoke:Cs1 documentation support|help_text_error_messages|err_missing_periodical|$1=&lt;template>|$2=&lt;param>}}
This error message is hidden.  To show this error message see [[Help:CS1 errors#Controlling error message display|Controlling error message display]].


These CS1 periodical templates require a periodical parameter. The periodical templates are:
These CS1 periodical templates require a periodical parameter. The periodical templates are:
Line 744: Line 843:
* {{para|work}}
* {{para|work}}


In some cases, an incorrect template has been used (e.g. {{tlx|cite journal}} for a web page, book, or standalone document). The appropriate resolution in these cases is to change the incorrect template to {{tlx|cite web}}, {{tlx|cite book}}, or a different, more appropriate template.
In some cases, an incorrect template has been used (e.g. {{tlx|cite journal}} for a web page, book, or standalone document). The appropriate resolution in these cases is to change the incorrect template to {{tlx|cite web}}, {{tlx|cite book}}, {{tlx|cite document}}, or a different, more appropriate template.


Pages with this error are automatically placed in {{#invoke:cs1 documentation support|help_text_cats|err_missing_periodical|pages=yes}}.<ref group="lower-alpha" name="categories" /><section end="missing_periodical_help_text" />
Pages with this error are automatically placed in {{#invoke:cs1 documentation support|help_text_cats|err_missing_periodical|pages=yes}}.<ref group="lower-alpha" name="categories" /><section end="missing_periodical_help_text" />
Line 758: Line 857:
{|class="wikitable"  
{|class="wikitable"  
|+ Deprecated CS1/CS2 parameters
|+ Deprecated CS1/CS2 parameters
! Deprecated parameter
! style="width: 12em;" | Deprecated parameter
! Replace with
! Replace with
! style="width: 110px;" | Date
! style="width: 6em;" | Date
|-
|-
| none deprecated at present
| none deprecated at present ||  ||
| <!-- -->
|}<section end="deprecated_params_table" /><section end="deprecated_params_help_text" /><section begin="deleted_params_table" />
 
|}<section end="deprecated_params_table" /><section begin="deleted_params_table" />
<!-- Support for the following parameter aliases was recently removed. Usage in mainspace should be about zero, and hints for them added to the suggestion list. However, as they may occasionally pop up again through copy&paste or usage of old scripts for some while, list them here as well for users coming here searching for help. -->
<!-- Support for the following parameter aliases was recently removed. Usage in mainspace should be about zero, and hints for them added to the suggestion list. However, as they may occasionally pop up again through copy&paste or usage of old scripts for some while, list them here as well for users coming here searching for help. -->
{|class="wikitable"
{|class="wikitable"
|+ Recently removed CS1/CS2 parameters
|+ Recently removed CS1/CS2 parameters
! Removed parameter !! Replace with !! Date
! style="width: 12em;" | Removed parameter !! Replace with !! style="width: 6em;" | Date !! Note
<!-- |-
<!-- |-
| none removed at present
| none removed at present
| -->
| -->
|-
|-
| {{para|authorfirst}}
| {{para|authors}}
| {{para|author-first}}
| {{para|last{{var|n}}}} / {{para|first{{var|n}}}}, {{para|author{{var|n}}}}, {{para|vauthors}}
| October 2020
| August 2024
|-
|
| {{para|authorfirst{{var|n}}}}
|}<section end="deleted_params_table" />
| {{para|author-first{{var|n}}}}
 
| October 2020
==<span id="generic_name">Cite uses generic name</span>==
|-
<section begin="generic_name_help_text" />{{help desk}}{{#invoke:Cs1 documentation support|help_text_error_messages|err_generic_name|$1=&lt;param>}}
| {{para|author{{var|n}}first}}
 
| {{para|author{{var|n}}-first}}
Articles are listed in this category when [[Module:Citation/CS1]] identifies template author or editor name parameters that use place-holder names.  Such names may have been provided by bots or other tools that are unable to identify the source's correct names.  Pages in this category should only be added by Module:Citation/CS1.
| October 2020
 
|-
CS1|2 maintains a short list of 'names' that are typically not the correct names for the cited source.  Some examples are:
| {{para|authorgiven}}
 
| {{para|author-given}}
{{div col begin |colwidth=15em}}
| October 2020
*<code>about us</code>
|-
*<code>author</code>
| {{para|authorgiven{{var|n}}}}
*<code>collaborator</code>
| {{para|author-given{{var|n}}}}
*<code>contributor</code>
| October 2020
*<code>contact us</code>
|-
*<code>directory</code>
| {{para|author{{var|n}}given}}
*<code>editor</code>
| {{para|author{{var|n}}-given}}
*<code>email</code>
| October 2020
*<code>facebook</code>
|-
*<code>google</code>
| {{para|authorlast}}
*<code>home page</code>
| {{para|author-last}}
*<code>instagram</code>
| October 2020
*<code>interviewer</code>
|-
*<code>linkedIn</code>
| {{para|authorlast{{var|n}}}}
*<code>pinterest</code>
| {{para|author-last{{var|n}}}}
*<code>policy</code>
| October 2020
*<code>privacy</code>
|-
*<code>site name</code>
| {{para|author{{var|n}}last}}
*<code>statement</code>
| {{para|author{{var|n}}-last}}
*<code>submitted</code>
| October 2020
*<code>super user</code>
|-
*<code>translator</code>
| {{para|authormask}}
*<code>tumblr</code>
| {{para|author-mask}}
*<code>twitter</code>
| January 2021
*<code>user</code>
|-
*<code>verfasser</code>
| {{para|authormask{{var|n}}}}
{{div col end}}
| {{para|author-mask{{var|n}}}}
 
| January 2021
If you are aware of other common place-holder names, please report them at [[Help talk:Citation Style 1]], so that they can be added to the list.
|-
 
| {{para|author{{var|n}}mask}}
To resolve this error, replace the place-holder name with the source's actual author or editor name, or use a more appropriate parameter.
| {{para|author{{var|n}}-mask}}
 
| January 2021
Example fixes:
|-
 
| {{para|authorsurname}}
* Replace {{para|author|Smith, Jane, editor}} with {{para|editor|Smith, Jane}}
| {{para|author-surname}}
* Replace <code><nowiki>|author=[[Jane Smith (author)|Jane Smith]]</nowiki></code> with <code><nowiki>|first=Jane |last=Smith |author-link=Jane Smith (author)</nowiki></code> (preferably) or <code><nowiki>|author=Jane Smith |author-link=Jane Smith (author)</nowiki></code>
| October 2020
 
|-
False positives are possible. When the name is valid, wrap the parameter value in the [[Help:Citation_Style_1#Accept-this-as-written_markup|accept-this-as-written markup]]:
| {{para|authorsurname{{var|n}}}}
 
| {{para|author-surname{{var|n}}}}
:{{para|author|((Super User))}}
| October 2020
 
|-
Please do not use this markup when it is not appropriate.
| {{para|author{{var|n}}surname}}
 
| {{para|author{{var|n}}-surname}}
Pages with this error are automatically placed in {{#invoke:cs1 documentation support|help_text_cats|err_generic_name|pages=yes}}.<ref group="lower-alpha" name="categories" />
| October 2020
 
|-
See also the error category [[:Category:CS1 errors: generic title]].<section end="generic_name_help_text" />
| {{para|booktitle}}
| {{para|book-title}}
| May 2021
|-
| {{para|chapterurl}}
| {{para|chapter-url}}
| May 2021
|-
| {{para|conferenceurl}}
| {{para|conference-url}}
| April 2021
|-
| {{para|contributionurl}}
| {{para|contribution-url}}
| April 2021
|-
| {{para|deadurl|yes}}<!-- deprecation already some while ago, but gets reinserted into mainspace by old scripts, so continue to list until resolved -->
| {{para|url-status|dead}}
| September&nbsp;2019
|-
| {{para|dead-url|yes}}<!-- deprecation already some while ago, but gets reinserted into mainspace by old scripts, so continue to list until resolved -->
| {{para|url-status|dead}}
| September 2019
|-
| {{para|displayauthors}}
| {{para|display-authors}}
| January 2021
|-
| {{para|displayeditors}}
| {{para|display-editors}}
| October 2020
|-
| {{para|doi-broken}}
| {{para|doi-broken-date}}
| October 2020
|-
| {{para|doi-inactive-date}}
| {{para|doi-broken-date}}
| October 2020
|-
| {{para|editorfirst}}
| {{para|editor-first}}
| October 2020
|-
| {{para|editorfirst{{var|n}}}}
| {{para|editor-first{{var|n}}}}
| October 2020
|-
| {{para|editor{{var|n}}first}}
| {{para|editor{{var|n}}-first}}
| October 2020
|-
| {{para|editorgiven}}
| {{para|editor-given}}
| October 2020
|-
| {{para|editorgiven{{var|n}}}}
| {{para|editor-given{{var|n}}}}
| October 2020
|-
| {{para|editor{{var|n}}given}}
| {{para|editor{{var|n}}-given}}
| October 2020
|-
| {{para|editorlast}}
| {{para|editor-last}}
| October 2020
|-
| {{para|editorlast{{var|n}}}}
| {{para|editor-last{{var|n}}}}
| October 2020
|-
| {{para|editor{{var|n}}last}}
| {{para|editor{{var|n}}-last}}
| October 2020
|-
| {{para|editorlink}}
| {{para|editor-link}}
| January 2021
|-
| {{para|editorlink{{var|n}}}}
| {{para|editor-link{{var|n}}}}
| January 2021
|-
| {{para|editor{{var|n}}link}}
| {{para|editor{{var|n}}-link}}
| January 2021
|-
| {{para|editors}}
| {{para|editor}} (one editor) or {{para|editor{{var|n}}}} (more than one editor) or {{para|veditors}} (for Vancouver style editors). Consider splitting {{para|editor{{var|n}}}} into {{para|editor-first{{var|n}}}} and {{para|editor-last{{var|n}}}}, if possible. Consider {{para|editor-mask{{var|n}}}}, if annotation is required.
| January 2021
|-
| {{para|editorsurname}}
| {{para|editor-surname}}
| October 2020
|-
| {{para|editorsurname{{var|n}}}}
| {{para|editor-surname{{var|n}}}}
| October 2020
|-
| {{para|editor{{var|n}}surname}}
| {{para|editor{{var|n}}-surname}}
| October 2020
|-
| {{para|editormask}}
| {{para|editor-mask}}
| October 2020
|-
| {{para|editormask{{var|n}}}}
| {{para|editor-mask{{var|n}}}}
| October 2020
|-
| {{para|editor{{var|n}}mask}}
| {{para|editor{{var|n}}-mask}}
| October 2020
|-
| {{para|embargo}}
| {{para|pmc-embargo-date}}
| October 2020
|-
| {{para|episodelink}}
| {{para|episode-link}}
| May 2021
|-
| {{para|event-format}}
| (delete)
| January 2021
|-
| {{para|eventurl}}
| (delete)
| January 2021
|-
| {{para|event-url}}
| (delete)
| January 2021
|-
| {{para|ignoreisbnerror}}
| {{para|isbn|((&lt;{{var|isbn}}>))}}
| October 2020
|-
| {{para|ignore-isbn-error}}
| {{para|isbn|((&lt;{{var|isbn}}>))}}
| January 2021
|-
| {{para|interviewerlink}}
| {{para|interviewer-link}}
| October 2020
|-
| {{para|interviewerlink{{var|n}}}}<!-- for completeness only -->
| {{para|interviewer-link{{var|n}}}}
| October 2020
|-
| {{para|interviewer{{var|n}}link}}<!-- for completeness only -->
| {{para|interviewer{{var|n}}-link}}
| October 2020
|-
| {{para|interviewermask}}
| {{para|interviewer-mask}}
| October 2020
|-
| {{para|interviewermask{{var|n}}}}<!-- for completeness only -->
| {{para|interviewer-mask{{var|n}}}}
| October 2020
|-
| {{para|interviewer{{var|n}}mask}}<!-- for completeness only -->
| {{para|interviewer{{var|n}}-mask}}
| October 2020
|-
| {{para|last-author-amp}}
| {{para|name-list-style|amp}}
| January 2021
|-
| {{para|lastauthoramp}}
| {{para|name-list-style|amp}}
| January 2021
|-
| {{para|laydate}}
| {{para|lay-date}}
| April 2021
|-
| {{para|laysource}}
| {{para|lay-source}}
| April 2021
|-
| {{para|layurl}}
| {{para|lay-url}}
| April 2021
|-
| {{para|mailinglist}}
| {{para|mailing-list}}
| May 2021
|-
| {{para|mapurl}}
| {{para|map-url}}
| May 2021
|-
| {{para|name-list-format}}
| {{para|name-list-style}}
| April 2021
|-
| {{para|nocat}}
| {{para|no-tracking}}
| January 2021
|-
| {{para|no-cat}}
| {{para|no-tracking}}
| October 2020
|-
| {{para|nopp}}
| {{para|no-pp}}
| May 2021
|-
| {{para|notracking}}
| {{para|no-tracking}}
| October 2020
|-
| {{para|publicationdate}}
| {{para|publication-date}}
| May 2021
|-
| {{para|publicationplace}}
| {{para|publication-place}}
| May 2021
|-
| {{para|registration}}<!-- deprecation already some while ago, but gets reinserted into mainspace by old scripts, so continue to list until resolved -->
| {{para|url-access|registration}}
| January 2020
|-
| {{para|sectionurl}}
| {{para|section-url}}
| April 2021
|-
| {{para|serieslink}}
| {{para|series-link}}
| May 2021
|-
| {{para|seriesno}}
| {{para|series-number}}
| April 2021
|-
| {{para|seriesnumber}}
| {{para|series-number}}
| January 2021
|-
| {{para|series-separator}}
| (delete)
| October 2020
|-
| {{para|subjectlink}}
| {{para|subject-link}}
| January 2021
|-
| {{para|subjectlink{{var|n}}}}
| {{para|subject-link{{var|n}}}}
| January 2021
|-
| {{para|subject{{var|n}}link}}
| {{para|subject{{var|n}}-link}}
| January 2021
|-
| {{para|subscription}}<!-- deprecation already some while ago, but gets reinserted into mainspace by old scripts, so continue to list until resolved -->
| {{para|url-access|subscription}}
| January 2020
|-
| {{para|timecaption}}
| {{para|time-caption}}
| April 2021
|-
| {{para|titlelink}}
| {{para|title-link}}
| April 2021
|-
| {{para|transcripturl}}
| {{para|transcript-url}}
| May 2021
|}<section end="deleted_params_table" /><section end="deprecated_params_help_text" />


==<span id="generic_title">Cite uses generic title</span>==
==<span id="generic_title">Cite uses generic title</span>==
Line 1,117: Line 938:


CS1|2 maintains a short list of 'titles' that are typically not the title of the cited source.  Some examples are:
CS1|2 maintains a short list of 'titles' that are typically not the title of the cited source.  Some examples are:
* Wayback machine
{{div col begin |colwidth=15em}}
* This website is for sale
*<code>404</code>
* Are you a robot?
*<code>are you a robot</code>
 
*<code>hugedomains.com</code>
*<code>internet archive wayback machine</code>
*<code>log into facebook</code>
*<code>login • instagram</code>
*<code>no title</code> – various forms
*<code>page not found</code>
*<code>redirecting...</code>
*<code>subscribe to read</code>
*<code>unknown</code> – various forms
*<code>usurped title</code>
*<code>wayback machine</code>
*<code>webcite query result</code>
*<code>website is for sale</code>
*<code>wikiwix's cache</code>
{{div col end}}
If you are aware of other common place-holder titles, please report them at [[Help talk:Citation Style 1]], so that they can be added to the list.
If you are aware of other common place-holder titles, please report them at [[Help talk:Citation Style 1]], so that they can be added to the list.


To resolve this error, replace the place-holder title with the source's actual title.
To resolve this error, replace the place-holder title with the source's actual title.
False positives are possible. When the name is valid, wrap the parameter value in the [[Help:Citation_Style_1#Accept-this-as-written_markup|accept-this-as-written markup]]:
:{{para|title|((404th Fighter Aviation Regiment))}}
Please do not use this markup when it is not appropriate.


Pages with this error are automatically placed in {{#invoke:cs1 documentation support|help_text_cats|err_generic_title|pages=yes}}.<ref group="lower-alpha" name="categories" />
Pages with this error are automatically placed in {{#invoke:cs1 documentation support|help_text_cats|err_generic_title|pages=yes}}.<ref group="lower-alpha" name="categories" />


See also the maintenance category [[:Category:CS1 maint: archived copy as title]].<section end="generic_title_help_text" />
See also the maintenance category [[:Category:CS1 maint: archived copy as title]] and the similar error category [[:Category:CS1 errors: generic name]].<section end="generic_title_help_text" />


==<span id="citeseerx_missing">|citeseerx= required</span>==  
==<span id="citeseerx_missing">|citeseerx= required</span>==  
Line 1,195: Line 1,034:
A {{cs1}} or {{cs2}} template marked as "Empty" contains no recognizable parameter identifiers. For example, this citation is marked as "empty" even though it contains usable information:
A {{cs1}} or {{cs2}} template marked as "Empty" contains no recognizable parameter identifiers. For example, this citation is marked as "empty" even though it contains usable information:
:<code><nowiki>{{cite web |http://www.foobar.com |The Foobar News}}</nowiki></code>
:<code><nowiki>{{cite web |http://www.foobar.com |The Foobar News}}</nowiki></code>
The citation is "empty" because it does not contain the necessary parameter identifiers (in this case {{para|url}} and {{para|title}}) that tell {{tlx|cite web}} how to use the information that the citation does contain.
The citation is "empty" because it does not contain the necessary parameter identifiers (in this case {{para|url}} and {{para|title}}) that tell {{tlx|cite web}} how to use the information that the citation contains.


A citation is also marked as "empty" when it contains only parameters that it doesn't recognize:
A citation is also marked as "empty" when it contains only parameters that it doesn't recognize:
Line 1,214: Line 1,053:
This error can occur in any of the author, editor, interviewer, translator, or contributor parameters.
This error can occur in any of the author, editor, interviewer, translator, or contributor parameters.


Use the {{para|display-authors}} parameter instead (or other applicable {{para|display-''<names>''}} parameter), as documented at [[Help:Citation Style 1#Display options]].
Use the {{para|display-authors}} parameter instead (or other applicable {{para|display-&lt;{{var|names}}>}} parameter), as documented at [[Help:Citation Style 1#Display options]].


Pages with this error are automatically placed in {{#invoke:cs1 documentation support|help_text_cats|err_etal|pages=yes}}.<ref group="lower-alpha" name="categories" /><section end="explicit_etal_help_text" />
Pages with this error are automatically placed in {{#invoke:cs1 documentation support|help_text_cats|err_etal|pages=yes}}.<ref group="lower-alpha" name="categories" /><section end="explicit_etal_help_text" />
Line 1,221: Line 1,060:
<section begin="param_has_ext_link_help_text" />{{help desk}}{{#invoke:Cs1 documentation support|help_text_error_messages|err_param_has_ext_link|$1={{pipe}}&lt;param>=}}
<section begin="param_has_ext_link_help_text" />{{help desk}}{{#invoke:Cs1 documentation support|help_text_error_messages|err_param_has_ext_link|$1={{pipe}}&lt;param>=}}


This error occurs when any of the [[Help:Citation Style 1|CS1]] or [[Help:Citation Style 2|CS2 citation]] title-holding parameters –  {{para|title}}, {{para|chapter}}, {{para|publisher}}, {{para|work}} or any of its aliases: {{para|journal}}, {{para|magazine}}, {{para|newspaper}}, {{para|periodical}} and {{para|website}} – hold an external link (URL). External links in these parameters corrupt the citation's metadata and can be the source of a variety of other error messages.
This error occurs when a URL is found in any parameter that is not one of these URL-holding parameters:
 
{{div col begin}}
*{{para|archive-url}}
*{{para|article-url}}
*{{para|chapter-url}}
*{{para|conference-url}}
*{{para|contribution-url}}
*{{para|entry-url}}
*{{para|map-url}}
*{{para|section-url}}
*{{para|transcript-url}}
*{{para|url}}
{{div col end}}
or any of these insource locator parameters:
{{div col begin}}
*{{para|page}}
*{{para|p}}
*{{para|pages}}
*{{para|pp}}
*{{para|at}}
*{{para|quote-page}}
*{{para|quote-pages}}
{{div col end}}
To resolve this error, remove the external link from the identified parameter.  Consider placing the external link in a more appropriate parameter:
To resolve this error, remove the external link from the identified parameter.  Consider placing the external link in a more appropriate parameter:
* for {{para|chapter}}, the URL may belong in {{para|chapter-url}}.
* for {{para|chapter}}, the URL may belong in {{para|chapter-url}}.
Line 1,248: Line 1,108:


The list of {{para|...-format}} parameters is:
The list of {{para|...-format}} parameters is:
: {{para|archive-format}}, {{para|article-format}}, {{para|chapter-format}}, {{para|conference-format}}, {{para|contribution-format}}, {{para|entry-format}}, {{para|event-format}}, {{para|lay-format}}, {{para|map-format}}, {{para|section-format}}, {{para|transcript-format}}
: {{para|archive-format}}, {{para|article-format}}, {{para|chapter-format}}, {{para|conference-format}}, {{para|contribution-format}}, {{para|entry-format}}, {{para|event-format}}, {{para|map-format}}, {{para|section-format}}, {{para|transcript-format}}


(<!-- TBD: Ia this still necessary to be mentioned? -->Citations that relied on the pre-2014<!-- 2014-11-29 -->, somewhat odd use of {{para|url}} and {{para|format}} may need adjustment in regard to {{para|chapter-format}}.)
(<!-- TBD: Ia this still necessary to be mentioned? -->Citations that relied on the pre-2014<!-- 2014-11-29 -->, somewhat odd use of {{para|url}} and {{para|format}} may need adjustment in regard to {{para|chapter-format}}.)
Line 1,262: Line 1,122:


To resolve this error, do one of the following:
To resolve this error, do one of the following:
* Remove the {{para|display-&lt;names>}} parameter from the citation (because "et al." is not appropriate in the citation)
* Remove the {{para|display-&lt;names>}} parameter from the citation (typically because "et al." is not appropriate in the citation)
* Change the <code>&lt;value></code> of the {{para|display-&lt;names>}} parameter such that it is less than the number of <code>&lt;names></code> in the name-list (thereby truncating the displayed list to the number)
* Change the <code>&lt;value></code> of the {{para|display-&lt;names>}} parameter such that it is less than the number of <code>&lt;names></code> in the name-list (thereby truncating the displayed list to the number)
* Change the <code>&lt;value></code> of the {{para|display-&lt;names>}} parameter to <code>etal</code>, which will cause "et al" to display after the last <code>&lt;name></code>.
* Change the <code>&lt;value></code> of the {{para|display-&lt;names>}} parameter to <code>etal</code>, which will cause "et al" to display after the last <code>&lt;name></code>.
Line 1,289: Line 1,149:
| {{para|no-tracking}}
| {{para|no-tracking}}
|-
|-
| {{para|bibcode-access}}||rowspan=7|<code>free</code>
| {{para|bibcode-access}}||rowspan=8|<code>free</code>
|-
|-
| {{para|doi-access}}
| {{para|doi-access}}
Line 1,300: Line 1,160:
|-
|-
| {{para|osti-access}}
| {{para|osti-access}}
|-
| {{para|ssrn-access}}
|-
|-
| {{para|s2cid-access}}
| {{para|s2cid-access}}
Line 1,317: Line 1,179:
| {{para|section-url-access}}
| {{para|section-url-access}}
|-
|-
| {{para|url-status}}||<code>dead</code>, <code>live</code>, <code>unfit</code>, <code>usurped</code>
| {{para|url-status}}||<code>dead</code>, <code>live</code>, <code>deviated</code>, <code>unfit</code>, <code>usurped</code>
|}
|}


To resolve this error, use an appropriate value.
To resolve this error for the parameters in the table, use an appropriate value.
 
Support for {{para|ref|harv}} is withdrawn because cs1|2 templates now automatically create the <code>CITEREF</code> anchor value that {{para|ref|harv}} controlled.  To resolve this error, remove {{para|ref|harv}}.


Pages with this error are automatically placed in {{#invoke:cs1 documentation support|help_text_cats|err_invalid_param_val|pages=yes}}.<ref group="lower-alpha" name="categories" /><section end="invalid_param_val_help_text" />
Pages with this error are automatically placed in {{#invoke:cs1 documentation support|help_text_cats|err_invalid_param_val|pages=yes}}.<ref group="lower-alpha" name="categories" /><section end="invalid_param_val_help_text" />
Line 1,345: Line 1,209:
The templates emit this error message when various forms of issue or number prefixes (like <code>Iss.</code> or <code>No.</code>) are found in the value assigned to {{para|issue}} or {{para|number}}.
The templates emit this error message when various forms of issue or number prefixes (like <code>Iss.</code> or <code>No.</code>) are found in the value assigned to {{para|issue}} or {{para|number}}.


To resolve this error, remove the extraneous text from the parameter value. If the extraneous text removed is related to issues, please use the {{para|issue}} parameter rather then {{para|number}} for this, and vice versa. At present, the output is the same for both parameters, but this may not hold true in future versions, therefore it is important that issues and number values are used with the proper parameter as per what nomenclature is used in the actual publication.
To resolve this error, remove the extraneous text from the parameter value. If the extraneous text removed is related to issues, please use the {{para|issue}} parameter rather than {{para|number}} for this, and vice versa. At present, the output is the same for both parameters, but this may not hold true in future versions, therefore it is important that issues and number values are used with the proper parameter as per what nomenclature is used in the actual publication.


Pages with this error are automatically placed in {{#invoke:cs1 documentation support|help_text_cats|err_extra_text_issue|pages=yes}}.<ref group="lower-alpha" name="categories" /><section end="extra_text_issue_help_text" />
Pages with this error are automatically placed in {{#invoke:cs1 documentation support|help_text_cats|err_extra_text_issue|pages=yes}}.<ref group="lower-alpha" name="categories" /><section end="extra_text_issue_help_text" />
Line 1,363: Line 1,227:


Pages with this error are automatically placed in {{#invoke:cs1 documentation support|help_text_cats|err_apostrophe_markup|pages=yes}}.<ref group="lower-alpha" name="categories" /><section end="apostrophe_markup_help_text" />
Pages with this error are automatically placed in {{#invoke:cs1 documentation support|help_text_cats|err_apostrophe_markup|pages=yes}}.<ref group="lower-alpha" name="categories" /><section end="apostrophe_markup_help_text" />
==<span id="medrxiv_missing">|medrxiv= required</span>==
<section begin="medrxiv_missing_help_text" />{{help desk}}{{#invoke:Cs1 documentation support|help_text_error_messages|err_medrxiv_missing}}
{{tlx|cite medRxiv}} requires the identifier parameter {{para|medrxiv}}.
To resolve this error, ensure that the template has {{para|medrxiv}} with a properly constructed value.
Pages with this error are automatically placed in {{#invoke:cs1 documentation support|help_text_cats|err_medrxiv_missing|pages=yes}}.<ref group="lower-alpha" name="categories" /><section end="medrxiv_missing_help_text" />


==<span id="missing_name">Missing |&lt;name>''n''=</span>==
==<span id="missing_name">Missing |&lt;name>''n''=</span>==
Line 1,442: Line 1,315:


{{tlx|cite episode}} will show this error if {{para|series}} is omitted or left blank (even if a {{para|title}} is provided).
{{tlx|cite episode}} will show this error if {{para|series}} is omitted or left blank (even if a {{para|title}} is provided).
{{tlx|cite encyclopedia}} will show this error if {{para|encyclopedia}} has a value but {{para|entry}} (or another {{para|chapter}} alias) is omitted or left blank.


Sometimes this error occurs because an editor has used a CS1|2 citation as a [[Help:Shortened footnotes|shortened footnote]] when {{tlx|sfn}} or one of the {{tlx|harv}} family of templates would have been more appropriate. This error also occurs when an editor used {{tlx|citation}} but intended to use {{tlx|citation needed}}.
Sometimes this error occurs because an editor has used a CS1|2 citation as a [[Help:Shortened footnotes|shortened footnote]] when {{tlx|sfn}} or one of the {{tlx|harv}} family of templates would have been more appropriate. This error also occurs when an editor used {{tlx|citation}} but intended to use {{tlx|citation needed}}.
Line 1,547: Line 1,422:


Pages with this error are automatically placed in {{#invoke:cs1 documentation support|help_text_cats|err_param_access_requires_param|pages=yes}}.<ref group="lower-alpha" name="categories" /><section end="param_access_requires_param_help_text" />
Pages with this error are automatically placed in {{#invoke:cs1 documentation support|help_text_cats|err_param_access_requires_param|pages=yes}}.<ref group="lower-alpha" name="categories" /><section end="param_access_requires_param_help_text" />
==<span id="numeric_names">|&lt;param>= has numeric name</span>==
<section begin="numeric_names_help_text" />{{help desk}}{{#invoke:Cs1 documentation support|help_text_error_messages|err_numeric_names|$1=&lt;param>}}
This error is reported when a name-list parameter {{para|author{{var|n}}}}, {{para|contributor{{var|n}}}}, {{para|editor{{var|n}}}}, {{para|interviewer{{var|n}}}}, {{para|translator{{var|n}}}} (including aliases) has an assigned value that is composed solely of digits and / or punctuation.  Errors of this type are often the result of automated or semi-automated edits where the source metadata is misplaced or improperly translated.
To resolve this error, make sure that the value assigned to the name-list parameter is a name and only a name.
Pages with this error are automatically placed in {{#invoke:cs1 documentation support|help_text_cats|err_numeric_names|pages=yes}}.<ref group="lower-alpha" name="categories" /><section end="numeric_names_help_text" />
==<span id="periodical_ignored">|&lt;periodical>= ignored</span>==
<section begin="periodical_ignored_help_text" />{{help desk}}{{#invoke:Cs1 documentation support|help_text_error_messages|err_periodical_ignored|$1=periodical}}
{{cs1}} templates {{tlx|cite book}} and {{tlx|cite encyclopedia}} do not support {{para|periodical}} (and aliases {{para|journal}}, {{para|magazine}}, {{para|newspaper}}, {{para|website}}, {{para|work}}) and associated {{para|script-periodical}} and {{para|trans-periodical}} (and their aliases).
To resolve this error:
* use a more appropriate citation template, or
* most common: change {{para|title}} to {{para|chapter}} (or appropriate alias) and then change {{para|periodical}} to {{para|title}}, or
* change {{para|work}} to {{para|series}} if {{para|title}} is the actual title of the book and {{para|work}} contains the name of a book series, or
* change {{para|work}} to another appropriate parameter (it has been used to hold values for {{para|publisher}}, {{para|editor}}, {{para|via}}, and more), or
* move the content of the {{para|periodical}} parameter out of the template, before the closing <nowiki></ref></nowiki>, or
* delete the {{para|periodical}} parameter
Pages with this error are automatically placed in {{#invoke:cs1 documentation support|help_text_cats|err_periodical_ignored|pages=yes}}.<ref group="lower-alpha" name="categories" /><section end="periodical_ignored_help_text" />


==<span id="embargo_missing_pmc">|pmc-embargo-date= requires |pmc=</span>==
==<span id="embargo_missing_pmc">|pmc-embargo-date= requires |pmc=</span>==
Line 1,560: Line 1,460:
<section begin="ssrn_missing_help_text" />{{help desk}}{{#invoke:Cs1 documentation support|help_text_error_messages|err_ssrn_missing}}
<section begin="ssrn_missing_help_text" />{{help desk}}{{#invoke:Cs1 documentation support|help_text_error_messages|err_ssrn_missing}}


{{tlx|cite ssrn}} requires the identifier parameter {{para|ssrn}}.
{{tlx|cite SSRN}} requires the identifier parameter {{para|ssrn}}.


To resolve this error, ensure that the template has {{para|ssrn}} with a properly constructed value.
To resolve this error, ensure that the template has {{para|ssrn}} with a properly constructed value.
Line 1,591: Line 1,491:
*{{#invoke:Cs1 documentation support|help_text_error_messages|err_parameter_ignored_suggest|$1=&lt;param>|$2=&lt;sparam>}}}}
*{{#invoke:Cs1 documentation support|help_text_error_messages|err_parameter_ignored_suggest|$1=&lt;param>|$2=&lt;sparam>}}}}
   
   
{{cs1}} and {{cs2}} templates report this error when the name portion of a parameter's {{para|name|value}} pair is not recognized as a valid name. Typically, this is caused by spelling or capitalization errors or when a page is reverted to a version where the citation template did support the parameter.
{{cs1}} and {{cs2}} templates report this error when the name portion of a parameter's {{para|name|value}} pair is not recognized as a valid name. Typically, this is caused by spelling or capitalization errors or when a page is reverted to a version where the citation template did support the parameter. It can also be caused by the use of parameters that are valid in some, but not all, CS1|2 templates. For example, {{tl|cite book}} citations are sometimes erroneously created using {{para|title}} and {{para|work}} when they should use {{para|chapter}} and {{para|title}} instead.


The CS1|2 engine does not ignore unrecognized parameters. The purpose of the citation is to properly identify the source, not to act as a repository of notes and ancillary information.
The CS1|2 engine does not ignore unrecognized parameters. The purpose of the citation is to properly identify the source, not to act as a repository of notes and ancillary information.
Line 1,670: Line 1,570:
<!-- When moving this section keep <section begin="notes_help_text"> (located above this section header) attacted -->
<!-- When moving this section keep <section begin="notes_help_text"> (located above this section header) attacted -->
{{reflist |group=lower-alpha |refs=
{{reflist |group=lower-alpha |refs=
<ref group="lower-alpha" name="categories">Pages in the Book talk, Category talk, Draft 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 tracking categories. In addition, pages with names matching the patterns '/[Ss]andbox', '/[Tt]estcases', '/[^/]*[Ll]og', and '/[Aa]rchive' are not included in the tracking categories.<!--See Module:Citation/CS1/Configuration in uncategorized_namespaces{}--></ref>
<ref group="lower-alpha" name="categories">Pages in the Category talk, Draft 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 tracking categories. In addition, pages with names matching the patterns '/[Ss]andbox', '/[Tt]estcases', '/[^/]*[Ll]og', and '/[Aa]rchive' are not included in the tracking categories.<!--See Module:Citation/CS1/Configuration in uncategorized_namespaces{}--></ref>
}}<section end="notes_help_text" /><!--
}}<section end="notes_help_text" /><!--
When moving this section keep the following attached to the References section below --><section begin="references_help_text" />
When moving this section keep the following attached to the References section below --><section begin="references_help_text" />