Last modified: 2012-04-12 13:53:36 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 T25938, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 23938 - Link text of red links to files
Link text of red links to files
Status: NEW
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.16.x
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-06-13 06:43 UTC by Liangent
Modified: 2012-04-12 13:53 UTC (History)
5 users (show)

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


Attachments

Description Liangent 2010-06-13 06:43:40 UTC
When I enter [[File:Something.png|200px]], if Something.png exists, everything does well; if it doesn't exist, a link to Special:Upload is generated. However, the link text is 200px, neither File:Something.png nor something meaningful, which may get people confused.
Comment 1 Thomas Shone 2010-07-11 15:37:31 UTC
The problem here is the width parameter is only relative to images. When the file handler is returned for an image it adds an additional regex match for parsing the parameters (to handle the "[0-9]+px" parameter and thus remove it from the parameter section and thus preventing it being applied as a label). However since the image does not exist the handler is empty and the width regex match isn't added to the MagicWordArray.

Any recommendations on the best way to handle this? Attempt to guess if the missing file should be an image? Or should we add the width parameter to the default regex list?

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


Navigation
Links