Last modified: 2011-05-03 23:44:41 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 T28178, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 26178 - Replace underscore with space in thumbWikiText of prefillThanksPage: function()
Replace underscore with space in thumbWikiText of prefillThanksPage: function()
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
UploadWizard (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Neil Kandalgaonkar
:
Depends on:
Blocks: 27260
  Show dependency treegraph
 
Reported: 2010-11-30 20:06 UTC by Raimond Spekking
Modified: 2011-05-03 23:44 UTC (History)
2 users (show)

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


Attachments

Description Raimond Spekking 2010-11-30 20:06:59 UTC
Replace the underscores with spaces in prefillThanksPage: function() for wikilinks:

 var thumbWikiText = "[[" + upload.title + "|thumb|Add caption here]]";

Btw: "Add caption here" should be localized too :-)
Comment 1 Neil Kandalgaonkar 2011-02-26 02:47:18 UTC
Kaldari: you may find mw.Title.js useful here to do the conversion
Comment 2 Ryan Kaldari 2011-03-03 20:06:24 UTC
Both issues fixed in r83168.
Comment 3 Raimond Spekking 2011-04-28 19:36:44 UTC
This seems to work incomplete:

Uploaded today: http://commons.wikimedia.org/wiki/File:Sheikh_Abd_el-Qurna_(3704-06).jpg

Result (only the first underscore is replaced by a space):

[[File:Sheikh Abd_el-Qurna_(3704-06).jpg|thumb|Bildbeschriftung hier hinzufügen]]
Comment 4 Ryan Kaldari 2011-04-28 19:51:14 UTC
My bad. Fixed for real in r87097.
Comment 5 Neil Kandalgaonkar 2011-05-03 23:29:43 UTC
re-fixed in an easier way (using the .toText() method of a mw.Title) in r87370

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


Navigation
Links