wikimedia-l | wikisource-l | meta | mediawiki | Phabricator | feedback

Onebox & Commons


#1


Commons - video.

Commons - picture.


#2

YouTube

Vimeo

Flickr


#3

Does this mean MediaWiki needs to support https://oembed.com/ ?


#4

I get a bit lost with Open Graph, oEmbed, but yeah, one of these. I learned this the hard way yesterday:


#5

The relevant tasks are https://phabricator.wikimedia.org/T33338 (easy-ish and somewhat shocking that we don’t do it already given that so many things use it - Facebook previews, Twitters cards, just about any social media site…) and https://phabricator.wikimedia.org/T27854 (would have to figure out license display, which tends to be contentious; also our video code is held together by duct tape so might require some refactoring first). TBH sharing Commons media links does not sound like a major enough use case to merit much attention. Phabricator and MediaWiki links would be more frequent, I’m not sure how much value is added by OneBox (vs. mini OneBox) there; it mostly just seems to make the comment hard to read. I really like Phabricator’s approach of displaying the title & status and putting the rest in a popup, I wonder if that’s an option in Discourse…


#6

I wonder what exactly makes the mini onebox trigger, looks like my comment did not make it.

OneBox always works for direct image refererences (which is probably something we want to explicitly prevent due to licensing issues):



#7

Mini one-box needs to be inline. It cannot be at the beginning of a paragraph. It requires at least one space before.