diff --git a/Cite.php b/Cite.php
index 11964415c..2fe101a7b 100644
--- a/Cite.php
+++ b/Cite.php
@@ -33,6 +33,8 @@ $wgExtensionMessagesFiles['Cite'] = __DIR__ . "/Cite.i18n.php";
$wgAutoloadClasses['Cite'] = __DIR__ . "/Cite_body.php";
$wgSpecialPageGroups['Cite'] = 'pagetools';
+$wgTrackingCategories[] = 'cite_error_refs_without_references_category';
+
define( 'CITE_DEFAULT_GROUP', '' );
/**
* The emergency shut-off switch. Override in local settings to disable
diff --git a/Cite_body.php b/Cite_body.php
index f88919fd7..778e583d5 100644
--- a/Cite_body.php
+++ b/Cite_body.php
@@ -1069,6 +1069,7 @@ class Cite {
}
if ( $group == CITE_DEFAULT_GROUP ) {
$text .= $this->referencesFormat( $group, '', '' );
+ $parser->addTrackingCategory( 'cite_error_refs_without_references_category' );
} else {
$text .= "\n
" . $this->error( 'cite_error_group_refs_without_references', htmlspecialchars( $group ) );
}
diff --git a/i18n/core/en.json b/i18n/core/en.json
index c5aa5bec1..e623bb2a7 100644
--- a/i18n/core/en.json
+++ b/i18n/core/en.json
@@ -36,5 +36,7 @@
"cite_references_link_accessibility_label": "Jump up",
"cite_references_link_many_accessibility_label": "Jump up to:",
"cite_references_prefix": "
s defined with no specific group, but it has no explicit
tag."
}
diff --git a/i18n/core/qqq.json b/i18n/core/qqq.json
index 79464bb19..956a24171 100644
--- a/i18n/core/qqq.json
+++ b/i18n/core/qqq.json
@@ -50,5 +50,7 @@
"cite_references_link_accessibility_label": "Text for screen readers to describe the jump to citation link (\"↑\").\n\nSee also:\n* {{msg-mw|Cite references link many accessibility label}} - if the citation is used multiple times",
"cite_references_link_many_accessibility_label": "Text for screen readers to describe the jump to citation links (a b c ...) for citations which are used in multiple places.\n\nThis is going to be prepended to the first link, the following ones will just be read by screen readers as they are visible.\n\nSee also:\n* {{msg-mw|Cite references link accessibility label}} - if the citation is used one time",
"cite_references_prefix": "{{notranslate}}",
- "cite_references_suffix": "{{notranslate}}"
+ "cite_references_suffix": "{{notranslate}}",
+ "cite_error_refs_without_references_category": "Name of [[mw:Special:MyLanguage/Help:Tracking categories|tracking category]] where pages that have
s but not
are listed.",
+ "cite_error_refs_without_references_category-desc": "Automatically-included
description. Shown on [[Special:TrackingCategories]]."
}