Hi all,

for my latest toy [1] I would really like to get the item IDs (Qxxx) for
the items in the dropdown box when editing a claim that points to an item.

I can get the item IDs for the search dropdown via the link hrefs, but
didn't find anything similar in the "role='menuitem'" <li>s for the edit
box.

Is there a global data structure with the ID list I could access? Are the
IDs attached to DOM nodes via jQuery data()? A hook I can add my function
to? Or something else I could use?

Alternatively, could you add an attribute (e.g. "itemid='Qxxx'") to the
<li> nodes? Shouldn't be too hard, as it couldn't really break anything
AFAICT. Could be really handy.

Thanks,
Magnus


[1] http://magnusmanske.de/wordpress/?p=64
_______________________________________________
Wikidata-tech mailing list
Wikidata-tech@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-tech

Reply via email to