Page MenuHomePhabricator

"⧼" and "⧽" added to the link text for onSkinAddFooterLinks
Closed, InvalidPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):
When I use the sample from:
https://www.mediawiki.org/wiki/Manual:Footer
to add an element in the footer, then the link text will be enclosed by the two characters from the subject.

What happens?:
The link text will be:
⧼Foo⧽

What should have happened instead?:
That the link text will be:
Foo

Software version (skip for WMF-hosted wikis like Wikipedia):
1.39.4

Other information (browser name/version, screenshots, etc.):
Sample source code:

$wgHooks['SkinAddFooterLinks'][] = function ( Skin $skin, string $key, array &$footerlinks ) {
        if ( $key === 'places' ) {
                $footerlinks['foo'] = Html::element( 'a',
                        [
                                'href'   => 'https://foo,bar',
                                'rel'    => 'noreferrer',
                                'target' => '_blank',
                        ],
                        $skin->msg('Foo')->text()
                );
        };
};

I have take a look in the source code of the page and the both char's will be also here.
So it can't be an browser problem.

Event Timeline

What is the value of the Foo message (MediaWiki:Foo)? If it doesn't exist, ⧼Foo⧽ will be shown to indicate that the message is missing.

What do you mean? In the documentation for external links, no additional values are described.
Do you have an sample for it?

Hi, this is described on https://www.mediawiki.org/wiki/Manual:Footer by "in this case the contents of MediaWiki:test-desc and MediaWiki:test-page."
Please feel free to bring this up in a support forum instead: https://www.mediawiki.org/wiki/Communication - Thanks!