mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-23 22:45:20 +00:00
Provide way for users to find articles with the automatic <references />
By adding a tracking category Bug: 67700 Change-Id: I62584de085ae7a849a099e127bd950692a0dff8a
This commit is contained in:
parent
672124cf26
commit
44472de458
2
Cite.php
2
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
|
||||
|
|
|
@ -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<br />" . $this->error( 'cite_error_group_refs_without_references', htmlspecialchars( $group ) );
|
||||
}
|
||||
|
|
|
@ -36,5 +36,7 @@
|
|||
"cite_references_link_accessibility_label": "Jump up",
|
||||
"cite_references_link_many_accessibility_label": "Jump up to:",
|
||||
"cite_references_prefix": "<ol class=\"references\">",
|
||||
"cite_references_suffix": "</ol>"
|
||||
"cite_references_suffix": "</ol>",
|
||||
"cite_error_refs_without_references_category": "-",
|
||||
"cite_error_refs_without_references_category-desc": "The page has <code><nowiki><ref></nowiki></code>s defined with no specific group, but it has no explicit <code><nowiki><references /></nowiki></code> tag."
|
||||
}
|
||||
|
|
|
@ -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 <code><nowiki><ref></nowiki></code>s but not <code><nowiki><references /></code></nowiki> are listed.",
|
||||
"cite_error_refs_without_references_category-desc": "Automatically-included <code><nowiki><references /></nowiki></code> description. Shown on [[Special:TrackingCategories]]."
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue