[openstreetmap/openstreetmap-website] Utilize P8798 for light/dark mode human-readable wikidata logos (Issue #7000)

Héctor Ochoa Ortiz notifications at github.com
Wed Apr 15 13:32:28 UTC 2026


Robot8A left a comment (openstreetmap/openstreetmap-website#7000)

The code currently checks for P8972; if not found, then P154; if not found, then P14; and, among the results, picks the one with the best rank.
Leaving the first part unchanged, the second part would have to be changed to: between those with equal best rank, pick the one with a P8798 qualifier that matches the user's current light/dark mode (if any of them have a P8798 qualifier).
So pick the one with P8798: Q101608434 for when the user is in light mode, and P8798: Q6545942 for when the user is in dark mode.


-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/7000#issuecomment-4252493263
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/7000/4252493263 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260415/d6076581/attachment.htm>


More information about the rails-dev mailing list