Page MenuHomePhabricator

Implement image as special higher grouping type
Closed, DuplicatePublic

Description

See https://www.wikidata.org/wiki/User:Daniel_Mietchen/Wikidata_lists/Scholarly_journals : having an image as higher-grouping type seems like a reasonable use case.

Event Timeline

In that example, I was trying to indicate the publisher of these journals. This does not absolutely have to be via an image, and we do not necessarily have a logo image for all of them. But the main problem right now is that the tool somehow converts the image file name to all UPPERCASE, which then impedes fetching the file from Commons.

the main problem right now is that the tool somehow converts the image file name to all UPPERCASE, which then impedes fetching the file from Commons.

There’s no such conversion per se: the tool expects the higher grouping result to be a Qid, and is hardcoded to pipe it into Template:Q. (With {{Q}} somehow uppercasing it)

So if you don’t strictly care about the logo, I would suggest to replace |higher_grouping=wdt:P123/wdt:P154 with |higher_grouping=wdt:P123, and simply output the publisher name.