Le 2013-05-30 06:21, Erik Moeller a écrit :
Yes, better support for display of images through a modal viewer would be great. I'm not sure a "modal" parameter that has to be explicitly set for files is the best approach - I would recommend optimizing the default experience when a user clicks an image or video. It's not clear that the current behavior based on a pixel threshold is actually desirable as the default behavior. (On a side note, the TMH behavior should be improved to actually play the video immediately, not require a second click to play in modal view.)
You'll probably need to pop-up a menu on mouse over the media, so user may open the modal window, open the commons page, and so on. Also you may want to integrate a next/previous media file in your modal.
Magnus Manske explored an alternative approach pretty extensively in response to the October 2011 Coding Challenge, which is worth taking a look at: https://www.mediawiki.org/wiki/User:Magnus_Manske/wikipic
Oh, well, I suppose he already wrote all this obvious things then :P
Cheers, Erik
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l