Page MenuHomePhabricator

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

Description

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

Screenshot_2016-04-16-04-03-18.png (600×1 px, 159 KB)

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:

Untitled.png (827×503 px, 39 KB)

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 https://he.wikipedia.org/w/index.php?title=%D7%9E%D7%A9%D7%AA%D7%9E%D7%A9:Roan_Kattouw_(WMF)/Sandbox&oldid=prev&diff=18498914 .

hewiki-broken-notif.png (272×479 px, 35 KB)

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:

hewiki-weird-wrapping.png (114×502 px, 18 KB)

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

https://gerrit.wikimedia.org/r/284119

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

https://gerrit.wikimedia.org/r/284119

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.

Screen Shot 2016-04-21 at 9.36.27 AM.png (191×643 px, 36 KB)

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

Screen Shot 2016-04-21 at 9.43.01 AM.png (189×630 px, 36 KB)

Screen Shot 2016-04-21 at 9.41.08 AM.png (312×736 px, 39 KB)

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}.