Page MenuHomePhabricator

Anchors for original heading titles shouldn't be distributed by MassMessage
Open, MediumPublicFeature

Description

Recently, a new feature was introduced: T62544: Automatically add anchor for original (English on Wikimedia) version of heading title. However, this feature adds anchors to texts distributed using MassMessage:

Here is an example of an anchored section title that was distributed:

<div class="plainlinks mw-content-rtl" lang="ar" dir="rtl">
[[File:Growth_team_logo_-_Icon_only.svg|right|frameless]]

مرحبا بكم في النشرة الإخبارية الثانية والعشرين من [[mw:Special:MyLanguage/Growth|فريق النمو]]!

<span id="Newcomers_tasks_reach_the_500,000_edits_milestone_—_more_data_publicly_available"></span>
===فاقت تعديلات الوافدين الجدد حاجز الـ 500000 تعديل — المزيد من البيانات متاحة للعموم===

Ideally, MassMessage should strip off these anchors, as the targeted page is in one language, with no need to refer to an original anchoring.

Event Timeline

Does the anchor cause issues or is this just a suggestion for improvement?

In some (rare) cases, this may be useful to keep them: if the message contains links to some sections of it, e.g. if it contains some kind of ToC.

Does this empty span produce some issues on targeted wikis?

I’d avoid links to sections within the message: you cannot make sure that none of the anchors already exist on any of the talk pages the message will be distributed to. If an anchor already exists on a talk page, the link will point there instead of the one within the just-distributed message, since the existing one will be higher up on the page.

Does the anchor cause issues or is this just a suggestion for improvement?

It is a suggestion for improvement. Anchors are only visible if you edit wikitext, and some users like to have clean wikitext, with no extras.

In some (rare) cases, this may be useful to keep them: if the message contains links to some sections of it, e.g. if it contains some kind of ToC.

As the message can have two aspects (translated or untranslated) and is distributed "as is", I'm not sure of this use case.

Does this empty span produce some issues on targeted wikis?

I'm not aware of an issue, as I just discovered this today, and manually removed the anchors before sending my message.

I’d avoid links to sections within the message: you cannot make sure that none of the anchors already exist on any of the talk pages the message will be distributed to. If an anchor already exists on a talk page, the link will point there instead of the one within the just-distributed message, since the existing one will be higher up on the page.

Good point: if one arrives on the wrong section just because of the anchors, it could be confusing.

Nikerabbit changed the subtype of this task from "Task" to "Feature Request".