Extension talk:Add Media Wizard/Archive 1

Archive Issues page

addMediaWiz is not a function
Also, some of the loaded js files have // in the path. The file loads without problems, but it could cause problems if it was hosted in an environment using mod_rewrite, for example. --Tgr 17:30, 3 October 2009 (UTC)


 * I have created a gadget that should work (that includes the mv_embed js that is needed for the gadget to work) please check out the mwEmbed gadget Mdale 19:02, 5 October 2009 (UTC)

It works with the new edit toolbar, doesn't with the old one though -- the button does not even appear. (I tried to use the new toolbar but gave up; too much loss of functionality.) --Tgr 16:33, 10 October 2009 (UTC)
 * Did some rearranging of things to increase chances of working with old tool-bar in r57628 (will be pushed out shortly) --Mdale 21:09, 10 October 2009 (UTC)

The old toolbar button seems to exist in a state of quantum uncertainty. For a day or two it worked fine; right now it does not appear, even through the gadget script seems to run fine (at least it sends a lot of log messages to the Firebug console, and no error). --Tgr 10:20, 17 October 2009 (UTC)
 * Yea seems to be a problem with $j.wikieditor being defined even if using the old toolbar. I have put in a more generalized check in r57863 so add-media-wiz should work with old toolbar now. Mdale 20:26, 17 October 2009 (UTC)

The place of the button on the old toolbar (first or last) changes very frequently (at least daily). Are you experimenting with the layout, or is that the effect of some sort of race condition?

Some people still report not always seeing the button, though for me it worked for the last few days. --Tgr 19:34, 19 October 2009 (UTC)
 * The latter seems to depend on the browser. FF works fine, IE8 says Expected ';' mv_embed.js?urid=57411, line 83 character 10 --Tgr 20:12, 19 October 2009 (UTC)

Works with the enhanced toolbar nicely
Just tried add-media-wizard from the enhanced toolbar. Search relevance, cropping and caption of the image, they all worked nicely. Can't wait to integrate into the enhanced toolbar. Shuhari 22:39, 8 October 2009 (UTC)

Description extraction
Hi. Been using Add Media Wizard for a while now, great tool!

Would it possible to fill the thumb caption by extracting only the description field of the Information template? Maybe even, by detecting the active user language or the general language of the project, extracting only the relevant language description using Language templates? Jean-Fred 13:07, 10 October 2009 (UTC)

Indeed, looking for (or some other language, based on user language) seems to be the best way to get a description on Commons. --Tgr 16:34, 10 October 2009 (UTC)


 * oky added in language parse description for initial in-line description: r57627 --Mdale 21:01, 10 October 2009 (UTC)

A few things to consider: --Tgr 20:03, 19 October 2009 (UTC)
 * it doesn't seem to recognize {{en|1= (used to avoid problems with a = sign in the argument) test
 * this didn't work either, for no obvious reason:
 * it would be nice if the description in the content language of the wiki would take precedence (ie. in the contents of the {{fi|...}} template when you are on the Finnish Wikipedia)
 * when there is no description template, you could try to split by headings, and select the contents of == {{int:license}} ==
 * you should strip categories and unknown templates. You could even try to throw away everything after the first double newline, it was useful more often than not in my (very limited) testing.
 * | (pipe) marks seem to cause a problem: test

UI problems
--Tgr 20:02, 19 October 2009 (UTC)
 * when you try to crop an SVG with transparent background, the bg turns black (not a real problem, just strange)
 * selecting a sound file causes the gadget to hang (though it can still be closed, so not much of a usability problem); video works fine though
 * so does pdf. Surprisingly, djvu works (I can even crop it!)
 * if you open video options with the little wrench thing, then click "cancel insert", the options menu remains
 * the bottom left corner file format icon shows "unk" instead of gif
 * ah I get it, must be "unknown". "?" would be probably better.
 * cropping gif files changes their resolution

Search for english name
Since Commons is mostly English (and the other sources even more), it might be better to search for the en: interwiki than the name of the article by default. --Tgr 15:33, 16 October 2009 (UTC)


 * yea it would be nice if we integrated with the wikiword efforts Mdale 20:33, 17 October 2009 (UTC)

Indeed, but Wikiword seems to be far from being ready, and checking the interwiki is a trivial thing. Right now the default search is useless for most articles on non-English wikis. --Tgr 23:47, 18 October 2009 (UTC)

A few issues
Hello. Congratulations, your extension is pretty amazing. :-) Here are a few reports, illustrated with the screen capture: That's it! I hope you can fix it! Keep up the good work! :-) Yours, Dodoïste 20:24, 20 October 2009 (UTC)
 * 1) The button "cancel insert" should be renamed to "return to selection", or "return to gallery". That is, because the button doesn't close Add Media Wizard, but goes back to the previous dialog. It could be confusing.
 * 2) The buttons at the bottom doesn't render correctly on Opera 9.64.
 * 3) As shown in the picture, the "inline description" sometimes contains other information than the description, such as categories, or such.