[openstreetmap/openstreetmap-website] Integrate human-readable wikidata browser plugin (PR #6127)
Anton Khorev
notifications at github.com
Wed Jul 16 09:46:12 UTC 2025
@AntonKhorev commented on this pull request.
> @@ -101,4 +112,108 @@
scrollableList.scrollLeft = scrollableList.scrollWidth - scrollableList.offsetWidth;
}
}
+
+ function previewWikidataValue($btn) {
+ if (!OSM.WIKIDATA_API_URL) return;
+ const items = $btn.data("qids");
+ if (!items?.length) return;
+ $btn.prop("disabled", true);
+ fetch(OSM.WIKIDATA_API_URL + "?" + new URLSearchParams({
+ action: "wbgetentities",
+ format: "json",
+ origin: "*",
+ ids: items.join("|"),
+ props: "labels|sitelinks/urls|claims|descriptions",
+ languages: langs.join("|"),
+ sitefilter: wikis.join("|")
This parameter is going to be something like `sitefilter=enwiki|mulwiki`.
What is `mulwiki`? I don't see it among [the possible values](https://www.wikidata.org/w/api.php?action=help&modules=wbgetentities).
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6127#pullrequestreview-3024033147
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6127/review/3024033147 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250716/a8cde6a6/attachment.htm>
More information about the rails-dev
mailing list