Page MenuHomePhabricator

Investigate an easier and more consistent way to credit media on Space blog
Open, NormalPublic


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.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJun 28 2019, 9:15 PM

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 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:
The corresponding thread looks fine too, but with a little wonkiness with the caption (the "File:..." is not on a new line):

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. :)

Challenge accepted: I'll try to emblockify the plugin, and @Prtksxna has even volunteered to help with the design of the block's interface. :)

In the meantime, it's possible to add these URLs via the 'Embed' block.

Qgil triaged this task as Normal priority.Jul 3 2019, 9:26 AM
Qgil edited projects, added Space (Jul-Sep-2019); removed Space.
Qgil moved this task from Backlog to Started on the Space (Jul-Sep-2019) board.

WiP PR: — 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.

I just gave it a try and it's looking good Sam. I can even put media in a column, which is great!