mediawiki-extensions-Cite/tests/phpunit/unit
thiemowmde d885a0c6b5 Allow disabling the alternative backlink labels message
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
2024-08-12 13:36:20 +02:00
..
Parsoid Add strictly typed RefGroupItem class to Parsoid code 2024-03-14 11:59:34 +01:00
CitationToolDefinitionTest.php Use namespaced classes 2024-06-08 23:31:42 +02:00
CiteHooksUnitTest.php More simple and consistent @covers and @license tags 2023-12-15 12:12:16 +01:00
CiteParserHooksTest.php Use namespaced classes 2024-06-08 23:31:42 +02:00
CiteParserTagHooksTest.php Use namespaced classes 2024-06-08 23:31:42 +02:00
ErrorReporterTest.php Relax support for error/warning message keys with dashes 2024-08-09 12:29:34 +00:00
ReferenceListFormatterTest.php Allow disabling the alternative backlink labels message 2024-08-12 13:36:20 +02:00
ReferenceMessageLocalizerUnitTest.php More simple and consistent @covers and @license tags 2023-12-15 12:12:16 +01:00
ReferenceStackTest.php Move extendsCount into parent ref item 2024-01-10 11:55:16 +01:00