Help:CS1 errors: Difference between revisions
Jump to navigation
Jump to search
m
→|chapter= ignored: +cite magazine;
m (1 revision imported) |
m (→|chapter= ignored: +cite magazine;) |
||
Line 8: | Line 8: | ||
Errors issued by Wikipedia's <code><ref></code> system, in which citation templates are typically embedded, can be found at [[Help:Cite errors]]. | Errors issued by Wikipedia's <code><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 == | ||
To display maintenance messages, include the following text in your common [[Cascading Stylesheets|CSS]] | === 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>, 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 are pages that are specific to you, and control your view of pages, by adding to the [[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 whose first two lines of text are: '''''Wikipedia does not have a user page with this exact name. Before creating this page, please see Wikipedia:Subpages.''''' and '''''Start the User:(your username)/common.css page.''''' Click the second line to start creating the page, 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 26: | ||
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: | 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]].<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}} | |||
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 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-jul-greg-uncertainty {}|}} – {{cl|CS1: Julian–Gregorian uncertainty}} | |||
::{{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 <template> requires %7C<param>=]], ~ | * [[#Cite <template> requires %7C<param>=]], ~54k pages | ||
* [[#Citation without a title of any form]], ~ | * [[#Citation without a title of any form]], ~33k pages | ||
* [[# | * [[#Cite uses generic name]], ~28k pages | ||
* [[# | * [[#Bare URL without a title]], ~23k pages | ||
* [[#External link in %7C<param>=]], ~7k pages | |||
* [[#External link in %7C<param>= | |||
{{See also|Category:CS1 errors|Category:CS1 maintenance}} | {{See also|Category:CS1 errors|Category:CS1 maintenance}} | ||
Line 126: | Line 146: | ||
<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}} or the aliases {{para|contribution}}, {{para|entry}}, {{para|article}}, or {{para|section}}. | ||
To resolve this error: | To resolve this error: | ||
Line 134: | Line 154: | ||
* 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 167: | ||
* [[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 | ||
* [[horizontal tab]], U+0009 (HT) | * [[horizontal tab]], U+0009 (HT) | ||
* [[line feed]], U+0010 (LF) | * [[line feed]], U+0010 (LF) | ||
Line 161: | Line 182: | ||
{{#invoke:Cs1 documentation support|help_text_error_messages|err_invisible_char|$1=<name> stripmarker|$2=<code class="cs1-code">{{pipe}}<param>=</code>|$3={{var|n}}}} | {{#invoke:Cs1 documentation support|help_text_error_messages|err_invisible_char|$1=<name> stripmarker|$2=<code class="cs1-code">{{pipe}}<param>=</code>|$3={{var|n}}}} | ||
[[Help:Strip markers|Strip markers]] are special sequences of characters that [[MediaWiki]] inserts as a place-holder for certain [[ | [[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 | 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 255: | Line 276: | ||
==<span id="bad_date">Check date values in: |<param1>=, |<param2>=, ...</span>== | ==<span id="bad_date">Check date values in: |<param1>=, |<param2>=, ...</span>== | ||
<section begin="bad_date_help_text" />{{help desk}} | <section begin="bad_date_help_text" />{{help desk}} | ||
{{plainlist}} | |||
*{{#invoke:Cs1 documentation support|help_text_error_messages|err_bad_date|$1=<code class="cs1-code">{{pipe}}<param1>=</code>, <code class="cs1-code">{{pipe}}<param2>=</code>, ...}} | *{{#invoke:Cs1 documentation support|help_text_error_messages|err_bad_date|$1=<code class="cs1-code">{{pipe}}<param1>=</code>, <code class="cs1-code">{{pipe}}<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}} | ||
{{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_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]]. | ||
Line 273: | Line 294: | ||
* 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>&nbsp;</code>, <code>&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 | 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>&nbsp;</code>, <code>&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: –. 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 334: | ||
| 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|{{green|March}} 2002}}}} | * {{para|plain=y|date|{{green|March}} 2002}}}} | ||
|- | |- | ||
Line 419: | Line 439: | ||
==<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}} | ||
{{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}} | ||
{{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 448: | ||
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 547: | Line 567: | ||
==<span id="bad_paramlink">Check |<param>-link= value</span>== | ==<span id="bad_paramlink">Check |<param>-link= value</span>== | ||
<section begin="bad_paramlink_help_text" />{{help desk}} | <section begin="bad_paramlink_help_text" />{{help desk}} | ||
{{plainlist}} | |||
* {{#invoke:Cs1 documentation support|help_text_error_messages|err_bad_paramlink|$1=<code class="cs1-code"><param>-link</code>}} | * {{#invoke:Cs1 documentation support|help_text_error_messages|err_bad_paramlink|$1=<code class="cs1-code"><param>-link</code>}} | ||
* {{#invoke:Cs1 documentation support|help_text_error_messages|err_bad_paramlink|$1=<code class="cs1-code"><param></code>}} | * {{#invoke:Cs1 documentation support|help_text_error_messages|err_bad_paramlink|$1=<code class="cs1-code"><param></code>}} | ||
{{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. | ||
{ | {| class="wikitable" | ||
|+Parameters combined to make wikilinks | |||
!Link-holding parameter !! title-/name-holding parameter(s) | |||
|- | |||
| {{para|author-link}}{{dagger}} || {{para|author}}, {{para|last}}, {{para|last}} + {{para|first}} | |||
|- | |||
| {{para|contributor-link}}{{dagger}} || {{para|contributor}}, {{para|contributor-last}}, {{para|contributor-last}} + {{para|contributor-first}} | |||
|- | |||
| {{para|editor-link}}{{dagger}} || {{para|editor}}, {{para|editor-last}}, {{para|editor-last}} + {{para|editor-first}} | |||
|- | |||
| {{para|episode-link}} || {{para|episode}} | |||
|- | |||
| {{para|interviewer-link}}{{dagger}} || {{para|interviewer}}, {{para|interviewer-last}}, {{para|interviewer-last}} + {{para|interviewer-first}} | |||
|- | |||
| {{para|series-link}} || {{para|series}} | |||
|- | |||
| {{para|subject-link}}{{dagger}} || {{para|subject}} | |||
|- | |||
| {{para|title-link}} || {{para|title}} | |||
{{ | |- | ||
| {{para|translator-link}}{{dagger}} || {{para|translator}}, {{para|translator-last}}, {{para|translator-last}} + {{para|translator-first}} | |||
|- | |||
|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|<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>< > [ ] | { }</code>. | This error occurs when any of these {{para|<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>< > [ ] | { }</code>. | ||
Line 585: | Line 607: | ||
: <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|<param>-link}} value and the matching {{para|<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|<param>-link}} value and the matching {{para|<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|<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 695: | Line 719: | ||
{{#invoke:Cs1 documentation support|help_text_error_messages|err_bad_url|$1=<code class="cs1-code">{{pipe}}archive-url=</code>}} | {{#invoke:Cs1 documentation support|help_text_error_messages|err_bad_url|$1=<code class="cs1-code">{{pipe}}archive-url=</code>}} | ||
The cs1|2 templates expect that {{para|archive-url}} will hold a unique | 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. Online tools are available to [[Internationalized domain name|internationalize]] URLs that are written in non-Latin scripts: | 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: | ||
Line 758: | Line 782: | ||
{|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: | ! style="width: 6em;" | Date | ||
|- | |||
| {{para|lay-date}}<!-- none deprecated at present -->|| rowspan="4" | if the source named by these parameters is important to the Wikipedia article, create a cs1|2 template for that source with all of the appropriate bibliographic information<!-- --> || rowspan="4" |2021-01-03 | |||
|- | |||
| {{para|lay-format}} | |||
|- | |||
| {{para|lay-source}} | |||
|- | |||
| {{para|lay-url}} | |||
|- | |- | ||
| | | {{para|transcripturl}} || {{para|transcript-url}} || 2022-01-22 | ||
| | |}<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 | ||
<!-- |- | <!-- |- | ||
| none removed at present | | none removed at present | ||
Line 1,071: | Line 1,101: | ||
|- | |- | ||
| {{para|seriesno}} | | {{para|seriesno}} | ||
| {{para|series- | | {{para|series-no}} | ||
| April 2021 | | April 2021 | ||
|- | |- | ||
Line 1,106: | Line 1,136: | ||
| April 2021 | | April 2021 | ||
|- | |- | ||
| {{para|transcripturl}} | | <s>{{para|transcripturl}}</s> | ||
| {{para|transcript-url}} | | <s>{{para|transcript-url}}</s> restored January 2022 as deprecated | ||
| May 2021 | | <s>May 2021</s> | ||
|}<section end="deleted_params_table" /><section end=" | |}<section end="deleted_params_table" /> | ||
==<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=<param>}} | |||
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. | |||
CS1|2 maintains a short list of 'names' that are typically not the correct names for the cited source. Some examples are: | |||
{{div col begin |colwidth=15em}} | |||
*<code>about us</code> | |||
*<code>author</code> | |||
*<code>collaborator</code> | |||
*<code>contributor</code> | |||
*<code>contact us</code> | |||
*<code>directory</code> | |||
*<code>editor</code> | |||
*<code>email</code> | |||
*<code>facebook</code> | |||
*<code>google</code> | |||
*<code>home page</code> | |||
*<code>instagram</code> | |||
*<code>interviewer</code> | |||
*<code>linkedIn</code> | |||
*<code>pinterest</code> | |||
*<code>policy</code> | |||
*<code>privacy</code> | |||
*<code>translator</code> | |||
*<code>tumblr</code> | |||
*<code>twitter</code> | |||
*<code>site name</code> | |||
*<code>statement</code> | |||
*<code>submitted</code> | |||
*<code>super user</code> | |||
*<code>user</code> | |||
*<code>verfasser</code> | |||
{{div col end}} | |||
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. | |||
To resolve this error, replace the place-holder name with the source's actual author or editor name, or use a more appropriate parameter. | |||
Example fixes: | |||
* Replace {{para|author|Smith, Jane, editor}} with {{para|editor|Smith, Jane}} | |||
* Replace <code><nowiki>|author=[[Jane Smith (author)|Jane Smith]]</nowiki></code> with <code><nowiki>|author=Jane Smith |author-link=Jane Smith (author)</nowiki></code> | |||
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|author|((Super User))}} | |||
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_name|pages=yes}}.<ref group="lower-alpha" name="categories" /> | |||
See also the error category [[:Category:CS1 errors: generic title]].<section end="generic_name_help_text" /> | |||
==<span id="generic_title">Cite uses generic title</span>== | ==<span id="generic_title">Cite uses generic title</span>== | ||
Line 1,117: | Line 1,197: | ||
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: | ||
* | {{div col begin |colwidth=15em}} | ||
* | *<code>404</code> | ||
* | *<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,221: | Line 1,319: | ||
<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}}<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}}<param>=}} | ||
This error occurs when any of | 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|{{xtd|lay-url}}}} – deprecated | |||
*{{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,289: | Line 1,409: | ||
| {{para|no-tracking}} | | {{para|no-tracking}} | ||
|- | |- | ||
| {{para|bibcode-access}}||rowspan= | | {{para|bibcode-access}}||rowspan=8|<code>free</code> | ||
|- | |- | ||
| {{para|doi-access}} | | {{para|doi-access}} | ||
Line 1,300: | Line 1,420: | ||
|- | |- | ||
| {{para|osti-access}} | | {{para|osti-access}} | ||
|- | |||
| {{para|ssrn-access}} | |||
|- | |- | ||
| {{para|s2cid-access}} | | {{para|s2cid-access}} | ||
Line 1,317: | Line 1,439: | ||
| {{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,469: | ||
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 | 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" /> |