Page MenuHomePhabricator

API fallback (broken) title shown for mention notification
Closed, ResolvedPublic


Hi. I have nothing to say. Just look at this:

And I get the same in daily mail. Thank you.

Event Timeline

@IKhitron Can you make a screenshot, where you append ?uselang=en to URL, to make it readable to the most developers? Thanks.

I don't think there will be important differences, but here you are:

ok, thanks. In general it makes the screenshot for people like me better readable, because I normally don't read from the right to the left side ;).

Is the linked page a Flow board or regular wikitext page?

Mattflaschen-WMF renamed this task from Weird notification to API fallback (broken) title shown for mention notification.Apr 18 2016, 6:52 PM

A regular page. Otherwise I would connect flow project, of course.

I managed to reproduce this eventually; the edit that triggered it was .

It seems that the template is parsed twice, because if I test with {{תב|תב}} as the section name (the Hebrew equivalent of {{tl|tl}}) I get this:

and I can reproduce that on localhost by creating a section with == {{tl|tl}} == and pinging a user in that section.

Change 284119 had a related patch set uploaded (by Catrope):
Use plaintextParams() for snippets and sections

Change 284119 merged by jenkins-bot:
Use plaintextParams() for snippets and sections

Checked in betalabs - for templates in section titles on wikitext based pages.

A template in the section title (e.g. == {{tl|tl}} == was used) does not mess up the layout anymore or display any errors.

In a notification, there is small part of section title code gets exposed - i.e. == .

The post was:

== {{tl|tl}} ==
[[User:Etonkovidova]] ~~~~

 =={{תב|תב}} ==
[[User:ET1]] ~~~~

Since there is general inconsistency in displaying transclusions as plain text between Flow board topic titles and wikitext pages section titles, the issue was filed as {T133319: Transclusions in section titles on wikitext pages not displayed as plain text in Notifications}.