Hello,
Just writing to let folks know that on Commons we are developing some Javascript that add form elements to the upload page, instead of asking the user to use a template, to "fake" structured data. If the user doesn't have Javascript, it defaults to the plain normal form.
It could be considered a model of what we would like the upload form to look like one day.
Just flagging it here in case there are any performance-related things we should take into consideration.
Demo (you need to be logged in at Commons): http://commons.wikimedia.org/wiki/Special:Upload?withJS=MediaWiki:UploadForm.js
Demo combing uselang hack: http://commons.wikimedia.org/wiki/Special:Upload?withJS=MediaWiki:UploadForm.js&uselang=ownwork
The JS is here: http://commons.wikimedia.org/wiki/MediaWiki:UploadForm.js
(FYI, the add-category functionality is here: http://commons.wikimedia.org/wiki/MediaWiki:Gadget-HotCat.js )
thanks, Brianna user:pfctdayelise
On 18/01/2008, Brianna Laugher brianna.laugher@gmail.com wrote:
Just writing to let folks know that on Commons we are developing some Javascript that add form elements to the upload page, instead of asking the user to use a template, to "fake" structured data. If the user doesn't have Javascript, it defaults to the plain normal form. It could be considered a model of what we would like the upload form to look like one day.
That's excellent! We should put this into place ASAP once it's definite it works on all reasonable browsers.
Needs the "other versions" field (I've been doing a lot of cropped versions of shots already on Commons), possibly automatically doing the right thing with the filename of existing Commons files - turning all of Example.jpg or Image:Example.jpg or [[Image:Example.jpg]] into [[:Image:Example.jpg]]. And leaving anything else (http:// links) alone. (What's JavaScript's regular expression performance like?)
Just flagging it here in case there are any performance-related things we should take into consideration.
Since it's using the client's CPU power, performance shouldn't be a problem - sanity-check for security, I expect.
Demo (you need to be logged in at Commons): http://commons.wikimedia.org/wiki/Special:Upload?withJS=MediaWiki:UploadForm.js Demo combing uselang hack: http://commons.wikimedia.org/wiki/Special:Upload?withJS=MediaWiki:UploadForm.js&uselang=ownwork The JS is here: http://commons.wikimedia.org/wiki/MediaWiki:UploadForm.js (FYI, the add-category functionality is here: http://commons.wikimedia.org/wiki/MediaWiki:Gadget-HotCat.js )
Suggestion: a properly internationalised version of http://www.mediawiki.org/wiki/Extension:Add_Article_to_Category that sends the user to an upload form with the category in place - I put it on the work intranet with vast success, but it's not properly internationalised and (obviously) would need to go to Special:Upload rather than creating an article with the cat preloaded.
- d.
On 18/01/2008, David Gerard dgerard@gmail.com wrote:
Needs the "other versions" field (I've been doing a lot of cropped versions of shots already on Commons), possibly automatically doing the right thing with the filename of existing Commons files - turning all of Example.jpg or Image:Example.jpg or [[Image:Example.jpg]] into [[:Image:Example.jpg]]. And leaving anything else (http:// links) alone. (What's JavaScript's regular expression performance like?)
No idea. Best to leave comments like this at http://commons.wikimedia.org/wiki/MediaWiki_talk:UploadForm.js.
Suggestion: a properly internationalised version of http://www.mediawiki.org/wiki/Extension:Add_Article_to_Category that sends the user to an upload form with the category in place - I put it on the work intranet with vast success, but it's not properly internationalised and (obviously) would need to go to Special:Upload rather than creating an article with the cat preloaded.
Hm, that strikes me as backward. You normally want to add categories (note, multiple) to a file rather than a file to a category, don't you? After all if you start from the category, you have to find the damned thing first. At least you *know* you have the file. :)
cheers, Brianna
On Fri, 18 Jan 2008 10:55:21 +0100, Brianna Laugher brianna.laugher@gmail.com wrote:
Hello,
Just writing to let folks know that on Commons we are developing some Javascript that add form elements to the upload page, instead of asking the user to use a template, to "fake" structured data. If the user doesn't have Javascript, it defaults to the plain normal form.
It could be considered a model of what we would like the upload form to look like one day.
Just flagging it here in case there are any performance-related things we should take into consideration.
Demo (you need to be logged in at Commons): http://commons.wikimedia.org/wiki/Special:Upload?withJS=MediaWiki:UploadForm.js
Demo combing uselang hack: http://commons.wikimedia.org/wiki/Special:Upload?withJS=MediaWiki:UploadForm.js&uselang=ownwork
The JS is here: http://commons.wikimedia.org/wiki/MediaWiki:UploadForm.js
(FYI, the add-category functionality is here: http://commons.wikimedia.org/wiki/MediaWiki:Gadget-HotCat.js )
I think it's a good idea. Performance (for the servers) should not be an issue since all the JavaScript is executed on the client side (as long as it doesn't fire off hundreds of http requests in the background at least).
I have been toying with a simmilar idea on the English Wikipedia though instead of adding some extra fields I was thinkling more along the lines of replacing the default form entierly and put a interactive multi step "wizard" in it's place (if you choose to upload a non-free image it would ask you to assert that no free replacement can be created and explain why, force you to add a rationale etc). Never got past the "that would be neat" thinking about it phase though.
On 18/01/2008, Sherool jamydlan@online.no wrote:
I have been toying with a simmilar idea on the English Wikipedia though instead of adding some extra fields I was thinkling more along the lines of replacing the default form entierly and put a interactive multi step "wizard" in it's place (if you choose to upload a non-free image it would ask you to assert that no free replacement can be created and explain why, force you to add a rationale etc). Never got past the "that would be neat" thinking about it phase though.
There are a few upload wizards like this on en:wp already; it should be a case of looking through them all and covering whatever use cases aren't already covered.
- d.
wikitech-l@lists.wikimedia.org