Last modified: 2014-06-30 02:17:43 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T69227, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 67227 - Hovercards: Punctuation should not prevent the title from being bolded in an extract
Hovercards: Punctuation should not prevent the title from being bolded in an ...
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Popups (Other open bugs)
master
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-28 00:14 UTC by Laurence 'GreenReaper' Parry
Modified: 2014-06-30 02:17 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Laurence 'GreenReaper' Parry 2014-06-28 00:14:19 UTC
If you have an extract in which the title is followed immediately by punctuation which is not part of the title, the title should still be bolded.

Example: http://en.wikifur.com/wiki/Category:NordicFuzzCon_staff

The text "Trax" is not bolded in the popup for the title "Trax" because it is followed by a comma: "Trax, also known as TraxSwe, ..."

The pattern "Title," is not all that common in developed articles, but it is valid. "Title (something)," is quite common and if Bug 67225 is fixed, it will become more common in extracts as well.
Comment 1 Laurence 'GreenReaper' Parry 2014-06-28 00:21:30 UTC
Another example of punctuation preventing a title from being bolded in an extract:
http://en.wikifur.com/wiki/Paradise
The title is styled as "Paradise" (with the quotes) in the lede, per standard song punctuation, but the title is just [[Paradise]], and this prevents it from being bolded.

In this case, it would be nice to include the quotes in the bolding; there might ideally be two sorts of punctuation; one set which is part of the bolded text, even if it is not in the title, and one which is excluded from it.
Comment 2 Laurence 'GreenReaper' Parry 2014-06-30 02:17:43 UTC
A related consideration: while article.getProcessedHtml requires space (or the article start/end) before and after the title, in some languages there may correctly be no spaces *or* punctuation between the title and subsequent text.

For example, in http://zh.wikifur.com/wiki/Rei the title is followed immediately by another character, and many of the links below follow the same pattern. This is common on zh.wikipedia.org as well.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links