Page MenuHomePhabricator

Hovercards: Add documentation on extract-size
Closed, ResolvedPublic

Description

What /exactly/ is Hovercards using to define the length of the extract?

The only line I can find is https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FPopups/edd49b32ca889024854efc4d7b0bf03dace55835/resources%2Fext.popups.core.js#L47
This gets 2 sentences. But sometimes the extracts are shorter than 2 sentences, so where is the limit further-defined?

Please Add documentation, in either the Extension page, or the Hovercards explanation page, to describe the answer.


Version: unspecified
Severity: normal

Details

Reference
bz63871

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:19 AM
bzimport added a project: Page-Previews.
bzimport set Reference to bz63871.
bzimport added a subscriber: Unknown Object (MLST).

Change 125579 had a related patch set uploaded by Prtksxna:
Added documentation for text extract length

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

(In reply to Quiddity from comment #0)

Please Add documentation, in either the Extension page, or the Hovercards
explanation page, to describe the answer.

;)

https://www.mediawiki.org/wiki/Beta_Features/Hovercards
or
https://www.mediawiki.org/wiki/Extension:Popups
please and thank you!

Including pointers to the lines in the code, would be a bonus, but I'm mainly asking for an easily accessible sentence of explanation, for editors/admins who wonder how it works.

Change 125579 merged by jenkins-bot:
Added documentation for text extract length

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