Page MenuHomePhabricator

Hovercards: Make snippet text in hovercard which matches the article title bold
Closed, ResolvedPublic

Description


Version: unspecified
Severity: normal

Details

Reference
bz65098

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:13 AM
bzimport added a project: Page-Previews.
bzimport set Reference to bz65098.

Created attachment 15328
result

Attached:

bold.png (464×332 px, 147 KB)

Should we match the whole word?

Hypothetical example for "trains" -
Train or trains should not be confused with Unicorn Training.
[ 1 ] [ 2 ] [ 3 ]

Should we match only 1? If we match 2 we'll have to match 3 too. Or should we just do plurals (the simple ones, with an s at the end)?

Bold the article title only. The purpose of this solution is to clarify redirects. And we won't actually carry the disambiguation text in the hovercard. Will a user ever see a sentence such as 'Train or trains should not be confused with Unicorn Training'

The point I was trying to make got shadowed by the confusion introduced by my had example. Consider this -

Train or trains are the favorite mode of transport of Pokémon trainers in Pal…
[ 1 ] [ 2 ] [ 3 ]

Change 132707 had a related patch set uploaded by Prtksxna:
render.article: Make the title of the text bold in the extract

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

Change 132707 merged by jenkins-bot:
render.article: Make the title of the text bold in the extract

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