It's important to make sure we add attribution to media used on the blog. We're doing this manually with the Caption option in WordPress' media management. To make the editorial process easier to manage I'd like to look into a better way to call attention to the attribution, and properly link it back to the source.
Yes, that plugin can be used to display Commons files in WordPress, by just putting the whole Commons File-page URL on a line of its own in a WordPress post. It currently gets metadata via https://tools.wmflabs.org/magnus-toolserver/commonsapi.php but I've been meaning to update it to use WikibaseMediaInfo.
For input like this:
The output is like this:
We actually have this plugin installed on the blog! Initially I was thinking of using the featured image in WordPress for adding images to post, which doesn't work with @Samwilson's excellent plugin. We shifted to putting an image at the top of the article right before we announced and the use of this plugin escaped my thought.
Let's see if this will work.
I just updated this blog post to use the plugin: https://space.wmflabs.org/2019/06/27/how-do-blog-comments-work/
The corresponding thread looks fine too, but with a little wonkiness with the caption (the "File:..." is not on a new line): https://discuss-space.wmflabs.org/t/how-do-blog-comments-work/305
One small hesitation I have is that the plugin does not seem to work with the new WordPress editor,
VisualEditor Gutenberg. Authors would have to use the "classic" editor block to insert media. Which is a little more challenging to explain and to do for novice users. If the plugin were to be updated to support Gutenberg, then this would be a good solution. Yes, this is a flagrant attempt to nerd snipe Sam. :)
WiP PR: https://github.com/samwilson/embed-wikimedia/pull/2 — still needs better icons, and to figure out what the best UI is for each embed type (Commons, Wikidata, and Wikipedia).
And I might be wrong above about using the 'Embed' block as a fallback; that appears to ignore custom embed registrations and tries to go directly to the remote site to discover oembed data.