I recently hacked together a thing [0] which allows you to add and edit descriptions on file pages in an Ajaxy way. Nobody has told me that I broke everything yet, so I'm making sliiiightly more calls for testing for it. Bug reports and feature requests can go to the talk page [1] and I will try to get to them as quickly as possible.
Things I already want: * Delete descriptions * Default to user's interface language if it's not present * Parse and display the new descriptions without page reload * Slightly less clunky interface (but not too much less clunky!)
Thanks in advance for the input, I look forward to making this nicer.
[0] https://commons.wikimedia.org/wiki/User:MarkTraceur/editDescriptions.js [1] https://commons.wikimedia.org/wiki/User_talk:MarkTraceur/editDescriptions.js
Hey Mark, this is is nice idea. I've added it to my user script, and promptly found a bug. Clicking on [edit] for the english description here: https://commons.wikimedia.org/wiki/File:Wikimania_2014_by_Dschwen_3273.jpg Gives me an empty textfield (rather than the existing description text). Cheers, Daniel
On Thu, Aug 28, 2014 at 7:50 PM, Mark Holmquist mtraceur@member.fsf.org wrote:
I recently hacked together a thing [0] which allows you to add and edit descriptions on file pages in an Ajaxy way. Nobody has told me that I broke everything yet, so I'm making sliiiightly more calls for testing for it. Bug reports and feature requests can go to the talk page [1] and I will try to get to them as quickly as possible.
Things I already want:
- Delete descriptions
- Default to user's interface language if it's not present
- Parse and display the new descriptions without page reload
- Slightly less clunky interface (but not too much less clunky!)
Thanks in advance for the input, I look forward to making this nicer.
[0] https://commons.wikimedia.org/wiki/User:MarkTraceur/editDescriptions.js [1] https://commons.wikimedia.org/wiki/User_talk:MarkTraceur/editDescriptions.js
-- Mark Holmquist Software Engineer, Multimedia Wikimedia Foundation mtraceur@member.fsf.org https://wikimediafoundation.org/wiki/User:MHolmquist
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux)
iQIcBAEBAgAGBQJT/8BYAAoJEEPl+wghkjzxVTYP/3g8O9rGLyHtroQ6PwIeaDRQ 9uYb9aomdA4Vb0/KZrepzOcxGf0SG/TYRUQrFqrffRhp+63UOW8ii9On5l2W3Ktu Y8gWQ2qEGUTKZKkzp9UDRfj3G0DZ8K0wdYnLE3MrI3QGT9wgIzAdssNtc7Q6sIvE wJgFaLIVmCj13Nq5NWYx2d7JBPscR3CEvOvf1pqlH4AnqSGniPQIe14VkEBz0IT1 8741cku7/tJ6pvksMiQNSZ3QnV8uXHM79fojXHclCXLHFgzPfzqLX0WpdIANLugW OQst6sQW4M962Hd2yj2LYd5SRiPVQWZVz4SxJhsaHYS4VDHFhAcu1Am8RoGZvvHP UAgwbn2eyhdL67vOj65d82AC9VsTbgz2QZVSVQSXmDUqsai+j12hnP0Sg4MVimB/ qCwz9g4NblMYUGSUe+47Yw6rBRatGwUbRILHmAht/NKauh72bCF4y5BUEJIWpdUc Ihisaxzc8eOxpjIPKiNw4PcULrzaW8tRNAg5t9js1eR7Mayqm5Hwa8Tu7xgliwG7 XW3LO529pkqvV6AWx3j7i+RUcO4sCr5ZemeFYEaN397yr9VKT6Q4VJLeiB5LV859 VeYFreMl114xl01NlELd455MDHCBTNT/V5GRGLijtd49+/4wuMeiANahX0cZtBv/ 9NMjI8sgd1axHG6hAs/L =EHvO -----END PGP SIGNATURE-----
Commons-l mailing list Commons-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/commons-l
On Fri, Aug 29, 2014 at 10:57:25AM -0400, Daniel Schwen wrote:
Hey Mark, this is is nice idea. I've added it to my user script, and promptly found a bug. Clicking on [edit] for the english description here: https://commons.wikimedia.org/wiki/File:Wikimania_2014_by_Dschwen_3273.jpg Gives me an empty textfield (rather than the existing description text).
This generally means that the description regex failed - I fixed it.
https://commons.wikimedia.org/w/index.php?diff=prev&oldid=133135046
This generally means that the description regex failed - I fixed it.
https://commons.wikimedia.org/w/index.php?diff=prev&oldid=133135046
Note that template parameters are case sensitive (except for the first letter)! https://en.wikipedia.org/wiki/Help:Template#Other_details
So a better Regexp should be: matches = wt.match( /|\s*[Dd]escription\s*=/ )
Cheers, Daniel