mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-23 14:36:51 +00:00
d885a0c6b5
The message cite_references_link_many_format_backlink_labels contains e.g. "a b c …" and so on, to be used as alternative backlink labels when a single reference is re-used multiple times. The default numeric rendering is "1.1 1.2 …" and so on. The two labels end in the message cite_references_link_many_format as parameters $2 and $3. But only one of the two parameters is ever used. By default the alternative label in $3 is unused. This implies that everything about these alternative backlink labels including the error message is effectively dead code most of the time, never to be seen on the majority of wikis. This change makes it possible to disable the message without breaking anything. Instead the code will silently fallback to the default behavior of showing the numeric label. This is much more efficient than rendering possibly hundreds of error messages that never show up anyhere. The same optimization is already done for the extremely similar cite_link_label_group-… messages, see FootnoteMarkFormatter::fetchCustomizedLinkLabel. This is also partly motivated by T335129 as well as T321217. Change-Id: Iab818d7db7eddaf7091234f6a22a18cdff70f8e8 |
||
---|---|---|
.phan | ||
i18n | ||
modules | ||
src | ||
tests | ||
.eslintrc.json | ||
.gitignore | ||
.gitreview | ||
.mailmap | ||
.npmrc | ||
.phpcs.xml | ||
.stylelintrc.json | ||
AUTHORS.txt | ||
CODE_OF_CONDUCT.md | ||
composer.json | ||
COPYING.txt | ||
extension.json | ||
Gruntfile.js | ||
jsdoc.json | ||
MIT-LICENSE.txt | ||
package-lock.json | ||
package.json | ||
README.md |
The Cite extension to MediaWiki provides a way for wiki editors to add references and footnotes to articles.
See mw:Extension:Cite for technical documentation on installing and configuring the extension. See mw:Help:Cite for user documentation.
Cite is responsible for implementing the <ref>
and <references>
tags in wikitext. Integrations are provided for the legacy wikitext parser, Parsoid, WikiEditor, VisualEditor, and the reading interface.