Last modified: 2009-01-17 23:37:56 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 T19044, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 17044 - |alt= should work when |link= is used
|alt= should work when |link= is used
Status: RESOLVED DUPLICATE of bug 16912
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
http://www.mediawiki.org/wiki/User:Si...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-01-17 05:32 UTC by MZMcBride
Modified: 2009-01-17 23:37 UTC (History)
2 users (show)

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


Attachments

Description MZMcBride 2009-01-17 05:32:41 UTC
|link= was implemented to stop people from mis-using <imagemap> to link files to other places beside the file description page.

However, <imagemap> allows specifying alt text while using |link= does not. See also: http://en.wikipedia.org/w/index.php?diff=252640097&oldid=252620105

It should be possible to use |alt= when |link= is used.
Comment 1 Melancholie 2009-01-17 12:12:50 UTC
|alt= works for me, you probably mean tooltips?
Example:
[[File:Qsicon Exzellent.svg|16px|alt=alt is working|link=Link|actual caption (no title="" gets specified (non-IE tooltip))]]

What is missing in source here for me is title="", not alt=""; thus this probably is a dupe of bug 16912 (?)
Comment 2 Aryeh Gregor (not reading bugmail, please e-mail directly) 2009-01-17 23:37:56 UTC
|alt= works fine when |link= is used.  Look at the HTML source of the page -- I've set a test case as the URL for this bug.  On browsers that cause HTML alt= to render as a tooltip, the tooltip won't work when wikitext link= is set, because wikitext link= sets a tooltip on the wrapping <a> which overrides the tooltip on the image itself.  However, alt= is supposed to be used for alt text, *not* tooltips.  It doesn't even work for tooltips in non-IE browsers, as my link shows (see the last case, which doesn't have the custom "Commons" tooltip in Firefox).  Therefore, this bug as stated is wrong: alt= on linked images is working as intended.

However, the unnamed parameter (which is different from alt= and is really only kept for backwards compatibility because Brion insisted on it, I wanted to use it only for captions) is supposed to set both alt text and tooltip, and on linked images it doesn't.  This is a bug, which has already been filed as bug 16912.

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

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


Navigation
Links