Add a tracking category for cite errors that trigger a visual diff

We're adding support for Cite error messages in Parsoid. Some of these
error messages do not render in the same way between the legacy parser
and Parsoid; this category aims at tracking them.

Bug: T378386
Change-Id: If1935acc6d23ee5e63c94f037762638e77b38831
This commit is contained in:
Isabelle Hurbain-Palatin 2024-10-28 18:41:07 +01:00
parent 873bee7e20
commit 9614c84780
3 changed files with 5 additions and 0 deletions

View file

@ -358,6 +358,7 @@
"Cite\\Tests\\": "tests/phpunit/" "Cite\\Tests\\": "tests/phpunit/"
}, },
"TrackingCategories": [ "TrackingCategories": [
"cite-tracking-category-cite-diffing-error",
"cite-tracking-category-cite-error", "cite-tracking-category-cite-error",
"cite-tracking-category-ref-extends" "cite-tracking-category-ref-extends"
], ],

View file

@ -39,6 +39,8 @@
"cite_error_empty_references_define": "<code>&lt;ref&gt;</code> tag with name \"$1\" defined in <code>&lt;references&gt;</code> group \"$2\" has no content.", "cite_error_empty_references_define": "<code>&lt;ref&gt;</code> tag with name \"$1\" defined in <code>&lt;references&gt;</code> group \"$2\" has no content.",
"cite-tracking-category-cite-error": "Pages with reference errors", "cite-tracking-category-cite-error": "Pages with reference errors",
"cite-tracking-category-cite-error-desc": "Pages in this category have errors in the usage of references tags.", "cite-tracking-category-cite-error-desc": "Pages in this category have errors in the usage of references tags.",
"cite-tracking-category-cite-diffing-error": "Pages with reference errors that trigger visual diffs",
"cite-tracking-category-cite-diffing-error-desc": "Pages in this category have errors in the usage of references tags, and these errors are not rendered in the same way in the legacy parser and in Parsoid.",
"cite-tracking-category-ref-extends": "Pages that use extended references", "cite-tracking-category-ref-extends": "Pages that use extended references",
"cite-tracking-category-ref-extends-desc": "Pages in this category use the \"extends\" attribute of the &lt;ref&gt; tag.", "cite-tracking-category-ref-extends-desc": "Pages in this category use the \"extends\" attribute of the &lt;ref&gt; tag.",
"cite-reference-previews-reference": "Reference", "cite-reference-previews-reference": "Reference",

View file

@ -44,6 +44,8 @@
"cite_error_empty_references_define": "Error message shown when there is a <code>&lt;ref&gt;</code> inside <code>&lt;references&gt;</code>, but it does not have any content, e.g.\n<pre>\n<references>\n<ref name=\"foo\" />\n</references>\n</pre>\nParameters:\n* $1 - the <code><nowiki>name</nowiki></code> of the erroneous <code>&lt;ref&gt;</code> (in the above example, “foo”)", "cite_error_empty_references_define": "Error message shown when there is a <code>&lt;ref&gt;</code> inside <code>&lt;references&gt;</code>, but it does not have any content, e.g.\n<pre>\n<references>\n<ref name=\"foo\" />\n</references>\n</pre>\nParameters:\n* $1 - the <code><nowiki>name</nowiki></code> of the erroneous <code>&lt;ref&gt;</code> (in the above example, “foo”)",
"cite-tracking-category-cite-error": "{{tracking category name}}\nTracking category name.", "cite-tracking-category-cite-error": "{{tracking category name}}\nTracking category name.",
"cite-tracking-category-cite-error-desc": "Tracking category description.", "cite-tracking-category-cite-error-desc": "Tracking category description.",
"cite-tracking-category-cite-diffing-error": "{{tracking category name}}\nTracking category name for pages with reference errors that trigger visual diffs.",
"cite-tracking-category-cite-diffing-error-desc": "Tracking category description for pages with reference errors that trigger visual diffs.",
"cite-tracking-category-ref-extends": "{{tracking category name}}\nThe [[:mw:Special:MyLanguage/Help:Tracking categories|tracking category]] to add to the article if it uses <code>&lt;ref&gt;</code> tags with an <code>extends</code> attribute.", "cite-tracking-category-ref-extends": "{{tracking category name}}\nThe [[:mw:Special:MyLanguage/Help:Tracking categories|tracking category]] to add to the article if it uses <code>&lt;ref&gt;</code> tags with an <code>extends</code> attribute.",
"cite-tracking-category-ref-extends-desc": "Description of the <code>extends</code> feature tracking category. (See {{msg-mw|Cite-tracking-category-ref-extends}}.)", "cite-tracking-category-ref-extends-desc": "Description of the <code>extends</code> feature tracking category. (See {{msg-mw|Cite-tracking-category-ref-extends}}.)",
"cite-reference-previews-reference": "Default heading for popups that show previews of references as provided by the Cite extension's <ref> tags (also known as footnotes).\n{{Identical|Reference}}", "cite-reference-previews-reference": "Default heading for popups that show previews of references as provided by the Cite extension's <ref> tags (also known as footnotes).\n{{Identical|Reference}}",