Last modified: 2011-08-04 18:56:07 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 T32110, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30110 - Image title (caption) attribute voided by blanked link attribute
Image title (caption) attribute voided by blanked link attribute
Status: RESOLVED DUPLICATE of bug 21454
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-07-29 06:21 UTC by Thomash Lee
Modified: 2011-08-04 18:56 UTC (History)
4 users (show)

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


Attachments

Description Thomash Lee 2011-07-29 06:21:51 UTC
When embedding an image like this <code>[[File:Placeholder.png|link=|Caption]]</code>, the "caption" which should pop up as a tooltip doesn't show and I've found that it is because the link attribute is blanked (this is done intentionally as per [[:en:WP:ICON]] and [[:en:WP:ALT]] guidelines).
Comment 1 MZMcBride 2011-07-29 06:30:50 UTC
This sounds like a duplicate of bug 16912.

Where are you seeing this broken behavior? On the English Wikipedia? On your own wiki? Somewhere else?
Comment 2 MZMcBride 2011-07-29 06:36:37 UTC
It looks like r50641 covered two cases (cf. <r1=50640&r2=50641">http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/maintenance/parserTests.txt?pathrev=50641&r1=50640&r2=50641>). I don't think anyone ever thought to test with a blank |link= (it's a bit of a hack). This seems like a valid bug.
Comment 3 Bryan Tong Minh 2011-07-29 07:38:52 UTC
The title attribute should be added to the <img>

Actual:
<img alt="Caption" src="//upload.wikimedia.org/wikipedia/commons/4/47/Placeholder.png" width="678" height="841" />
Expected:
<img alt="Caption" title="Caption" src="//upload.wikimedia.org/wikipedia/commons/4/47/Placeholder.png" width="678" height="841" />
Comment 4 Thomash Lee 2011-07-29 07:42:10 UTC
Blanking the link attribute is an increasingly common practice in English Wikipedia. The guideline suggests that small icon image which is used inline should not be clickable, otherwise it may distract the reader and it is usually not worth checking if higher resolution avaiable of the icon. Someone tested that the absent of tooltip can be substituted by title attribute of the div tags that nest the File syntax. See my en.wp sandbox [[User:Sameboat/sandbox2]].
Comment 5 db [inactive,noenotif] 2011-08-04 18:56:07 UTC

*** This bug has been marked as a duplicate of bug 21454 ***

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


Navigation
Links