Last modified: 2011-03-02 10:07:45 UTC
It would be nice to include the <iframe> embedcode for videos in PhotoCommons as well. <iframe src="http://commons.wikimedia.org/wiki/File:Folgers.ogv?withJS=MediaWiki:MwEmbed.js&embedplayer=yes" width="240" height="180" frameborder="0"></iframe> Needs some cross-browser testing and checking if videos are returned in the search results.
And for the same reason we use shortcodes for images, the iframe code should be generated indirectly via a shortcode so that the <iframe> code isn't hardcoded in the post. Perhaps detect from the filename if it's a video or introduce a seperate shortcode ie. [photocommons file="Folgers.ogv" width="240" height="180"] (as for images, internally switched for iframe-vid or img-tag)) or a seperate shortcode: [videocommons file="Folgers.ogv" ... ] -- Krinkle (see also bug 27821)