I’ve released another beta version of Embed Wikimedia, with support for three blocks for the WordPress block-editor (Commons, Wikipedia, and Wikidata). There’s still work to be done on their interfaces, but before tackling that I want to sort out support for captions from Structured Data on Commons. There’s a few other bugs too (and I’m sure I’ll write more before I’m done).
The annoying thing about blocks, I’m finding, is that I still write a fair bit with the Android WordPress editor, and so still do old-fashioned embeds where they’re just a bare URL on its own line. I feel like the blocks get away from that simplicity (although, internally, so far they’re exactly the same functionality).
I’ve had a stab at a WordPress plugin for embedding Wikimedia URLs: https://github.com/samwilson/embed-wikimedia
It’s of course just a draft and proof-of-concept and beta and rough at the moment. It only supports Wikipedia and Wikimedia Commons; I’m going to add Wikidata next, I think, and then Wikisource (although that will mostly be a reformatted version of the Wikidata one, because all relevant metadata about Wikisource items is in Wikidata).
I have no idea if it’s very useful. I mainly want it for Commons photos, and Wikisource books.
Here’s my first draft at making Piwigo sites embeddable in WordPress: github.com/samwilson/piwigo-embeds
‘Embed’ here is what WordPress calls the ability to add a URL of a site on its own line in a post or page, and for a nice rendering of the site at that URL to be provided automatically. It works with core WordPress with sites like Youtube and Flickr, and somewhat for random other sites if they provide the right metadata. Piwigo does not yet provide particularly rich metadata (there are some ideas to do so, though), but anyway it’s nicer to be able to do something more complicated that uses the Piwigo API.
As a first hack at this, my plugin just shows the medium-sized image, with title below and description as the tooltip, and the image linked to the page on the Piwigo site. I plan on introducing caching, and perhaps some nicer display (dates, comment count, etc.). Ideas welcome!