mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-30 17:54:20 +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 |
||
---|---|---|
.. | ||
Parsoid | ||
CitationToolDefinitionTest.php | ||
CiteHooksUnitTest.php | ||
CiteParserHooksTest.php | ||
CiteParserTagHooksTest.php | ||
ErrorReporterTest.php | ||
ReferenceListFormatterTest.php | ||
ReferenceMessageLocalizerUnitTest.php | ||
ReferenceStackTest.php |