OpenGraphMeta MediaWiki extension

mediawiki

#1

I suggest to install the OpenGraphMeta extension into the ImageJ wiki installation.

This would enable the wiki to provide metadata using the Open Graph protocol, and permit to embed wiki pages into forum posts by one-boxing the link, similar to how you can embed other posts in discussions as well.

/cc @ctrueden :slight_smile:


#2

I added the OpenGraphMeta extension.


#3

Thanks, @ctrueden!

Great, now ImageJ wiki pages contain some Open Graph metadata like this:

<meta property="og:type" content="website"/>
<meta property="og:title" content="ImageJ"/>
<meta property="og:image" content="http://imagej.net/skins/imagej-128.png"/>
<meta property="og:url" content="http://imagej.net/Welcome"/>

However, oneboxing of wiki pages in Discourse still doesnโ€™t work yet (as opposed to Google or Facebook, see this tool), because I missed the fact that it also requires a description tag to be present.

Consequently I suggest to also install the Description2 extension which automatically extracts a description from the page content and also allows to explicitly specify a description using a tag. I opened a pull request for this:


#4

Thanks @imagejan; I merged it, pulled the submodule, and updated LocalSettings.php accordingly.


#5

Thank you, it works beautifully now. Here are a few examples: