(Translated by https://www.hiragana.jp/)
⚓ T59153 Allow links in Flow topic titles
Page MenuHomePhabricator

Allow links in Flow topic titles
Closed, ResolvedPublic

Authored By
MZMcBride
Nov 18 2013, 2:03 AM
Referenced Files
F2993105: Screen Shot 2015-11-20 at 1.34.41 PM.png
Nov 20 2015, 11:27 PM
F2993008: Screen Shot 2015-11-20 at 2.45.41 PM.png
Nov 20 2015, 11:25 PM
F2993093: Screen Shot 2015-11-20 at 3.21.36 PM.png
Nov 20 2015, 11:25 PM
F2992994: Screen Shot 2015-11-20 at 2.33.24 PM.png
Nov 20 2015, 11:25 PM
F2993084: Screen Shot 2015-11-20 at 3.09.50 PM.png
Nov 20 2015, 11:25 PM
F2993045: Screen Shot 2015-11-20 at 2.54.12 PM.png
Nov 20 2015, 11:25 PM
F250640: 1 - thread.jpg
Jul 24 2015, 8:07 PM
F250686: 6 - board history.jpg
Jul 24 2015, 8:07 PM
Tokens
"Love" token, awarded by Liuxinyu970226."The World Burns" token, awarded by revi."Like" token, awarded by Ricordisamoa."The World Burns" token, awarded by Sunpriat."The World Burns" token, awarded by thiemowmde.

Description

When a topic title includes an internal link, the title should render as a working link in the topic header.

This will use the edit summary parser.

Examples:
The topic title is [[Foo]] -- it will render as Foo -- a link to the article page Foo.
The topic title is [[Foo|Bar]] -- it will render as Bar -- a link to the article page Foo.
The topic title is [http://foo.com Foo] -- it will render as Foo -- an external link to foo.com. (We decided to use the edit summary parser, which does not support this.)

NOTE #1: For posts, replies and edits to a post/reply -- in watchlist, recent changes and contributions, there will be a blue link that says Foo -- but this will NOT be a link to the article page Foo. It will be a link to the Topic:UUID. See screenshots below.

NOTE #2: In topic history, board history, watchlist, recent changes and contributions, when there is a change to the topic summary, or moderation actions, the topic title will be rendered as Foo, no link.
For example: created topic summary on Foo

Topic heading -- this should be a working link

1 - thread.jpg (310×721 px, 73 KB)

Contributions --
For the post/reply/edit, the link should render as the title (no brackets), and should link to the Topic:UUID, not to the page.
For editing the topic summary, the link should render as the title, not linked.

3 - contributions.jpg (399×984 px, 217 KB)

Recent changes --
For the post/reply/edit, the link should render as the title (no brackets), and should link to the Topic:UUID, not to the page.
For editing the topic summary, the link should render as the title, not linked.

4 - recent changes.jpg (480×1 px, 324 KB)

Watchlist --
For the post/reply/edit, the link should render as the title (no brackets), and should link to the Topic:UUID, not to the page.
For editing the topic summary, the link should render as the title, not linked.

2a - watchlist item for reply.jpg (414×1 px, 233 KB)

2b - watchlist item for creating topic summary.jpg (432×1 px, 242 KB)

Board and Topic history --
For both post/reply/edit and editing the topic summary, the link should render as the title, not linked.

5 - topic history.jpg (327×1 px, 155 KB)

6 - board history.jpg (184×1 px, 115 KB)

See T115910: Track references in topic titles.


previous version of the ticket:

Flow: Wikitext formatting (such as [[links]] and ''italics'') doesn't work in topic titles

When you create a new Flow thread, there's a "topic" field. This topic field is analogous to the "subject" field in a wikitext talk page. The topic field currently cannot support wikitext.

Example: http://ee-flow.wmflabs.org/w/index.php?title=Sandbox&workflow=0509a3b2518b34dffb6efa163e68c4ac&action=view

Topic input: "here's a new [[topic]]"

Expected behavior: "[[topic]]" becomes an internal hyperlink


Version: unspecified
Severity: enhancement
URL: http://ee-flow.wmflabs.org/w/index.php?title=Sandbox&workflow=0509a3b2518b34dffb6efa163e68c4ac&action=view
See Also:

https://trello.com/c/bj3IZSE5/190-limited-wikitext-formatting-in-topic-titles

Related Objects

Event Timeline

There are a very large number of changes, so older changes are hidden. Show Older Changes

@DannyH https://trello.com/c/bj3IZSE5/190-limited-wikitext-formatting-in-topic-titles

We shouldn't do wikitext in topic titles -- titles will be used in log pages like contributions, watchlist, etc.

Many wikis use titles with wikitext "==[[PageInTitle]]==" and special log pages showing simply "PageInTitle" and links [[ SomePage#PageInTitle ]] work fine. Why this can not further work so?

We discussed the possibility of using the same subset the edit summary parser allows.

In T59153#1439920, @Mattflaschen wrote:

We discussed the possibility of using the same subset the edit summary parser allows.

That would be the least. You've already broken many topic titles:
https://www.mediawiki.org/wiki/Talk:MediaWiki_Stakeholders%27_Group

DannyH renamed this task from Flow: Wikitext formatting (such as [[links]] and ''italics'') doesn't work in topic titles to Allow links in Flow topic titles.Jul 24 2015, 8:07 PM
DannyH raised the priority of this task from Lowest to Medium.
DannyH updated the task description. (Show Details)
DannyH raised the priority of this task from Medium to High.Aug 20 2015, 8:35 PM

Change 243066 had a related patch set uploaded (by Mattflaschen):
WIP: Add support for edit summary formatting in topic titles

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

Change 243066 merged by jenkins-bot:
Add support for edit summary formatting in topic titles

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

Checked in betalabs according to specs. Please check below
Talk:ET19 - the link in the title and in the Summary - [[Talk:ET1|ET1]]

Topic heading -- this should be a working link

Screen Shot 2015-11-20 at 2.33.24 PM.png (444×1 px, 55 KB)

  1. The links to the topic ET1 are rendered as for the Recent changes - see below

Contributions -
For the post/reply/edit, the link should render as the title (no brackets), and should link to the Topic:UUID, not to the page.
For editing the topic summary, the link should render as the title, not linked.

Screen Shot 2015-11-20 at 2.45.41 PM.png (437×884 px, 104 KB)

Recent changes --
For the post/reply/edit, the link should render as the title (no brackets), and should link to the Topic:UUID, not to the page.
For editing the topic summary, the link should render as the title, not linked.

Screen Shot 2015-11-20 at 2.54.12 PM.png (587×1 px, 197 KB)

Watchlist --
For the post/reply/edit, the link should render as the title (no brackets), and should link to the Topic:UUID, not to the page.
For editing the topic summary, the link should render as the title, not linked.

Screen Shot 2015-11-20 at 3.09.50 PM.png (376×1 px, 140 KB)

  1. Links are in the right place - checked.

Board and Topic history --
For both post/reply/edit and editing the topic summary, the link should render as the title, not linked.

Screen Shot 2015-11-20 at 3.21.36 PM.png (329×1 px, 135 KB)

Filed as a separate issue T119537: Links in Flow topic titles: html code displayed when page scrolls up

  • Have a title with a link in it
  • scroll up - the link exposes html code:

Screen Shot 2015-11-20 at 1.34.41 PM.png (251×805 px, 38 KB)

(This will be announced in Tech News the week after next, as there's no MediaWiki deployment next week.)

Catrope subscribed.

Watchlist --
For the post/reply/edit, the link should render as the title (no brackets), and should link to the Topic:UUID, not to the page.
For editing the topic summary, the link should render as the title, not linked.

Screen Shot 2015-11-20 at 3.09.50 PM.png (376×1 px, 140 KB)

That looks like a bug: those brackets should not appear. I've filed T120329: Brackets appear in history when topic title that contains link is changed for this, so we can close this bug.