Page MenuHomePhabricator

Hashtags inside a internal link are not detected
Open, Needs TriagePublic

Description

Hi! When a hashtag is used inside an internal link (I mean by that, in the visible text, as this: [[Wikipedia:AnyLink|#hastag]]), it is not detected by the tool. This is a problem, as on several projects on fr-wp, we ask people to use an hashtag with a link to the project.

Example: https://hashtags.wmflabs.org/?query=%23moisdusour%C3%A7age&project=fr.wikipedia.org&startdate=&enddate=&search_type=or&user=Jules*, where this edit doesn't show up: https://fr.wikipedia.org/w/index.php?title=Banque_parisienne_pour_l%27industrie&diff=prev&oldid=178282080&diffmode=source

(Has been tested with other users. Same result.)

Event Timeline

Probably linked to T262234. But if I understand the explanation by @Samwalton9:

We follow Twitter's specification for what constitutes a hashtag, which includes not flagging it if there is no space or punctuation before the hashtag

I think it should anyway detect hashtags after a | inside internal links, for the reasons explained above (really useful and common on Wikipedia to use an hashtag and make a link to the project using the hashtag).

I second this request. Three of my tools (Proveit, Synchronizer and WikiEdit) would benefit from it.

Hi, good news! I was able to add valid hashtags to links by simply adding a space before the # (so as to satisfy the Twitter's specification of a hashtag) like so:

[[Example| #example]]

Good enough for me!