Page MenuHomePhabricator

gadget to add external ID as reference
Closed, ResolvedPublic

Description

Items usually have a number of external identifiers. Quite a few are potential references for other statements on the Item. It would be useful to have a gadget that makes it easy to add one of the external identifiers as a reference to an existing statement on the same Item.

Event Timeline

Thanks for creating this! I'm not sure what the standard citation reference for an external ID is, but what I've been using is:

  • stated in (P248) the value of "subject item of this property" (P1629) for that external ID property, if any
  • external ID property with value from the item
  • retrieved (P813) on the current date.

So it would be nice if this gadget could add these three (or 2 if no P1629 value) statements as a reference with a simple interaction...

Hello, as far as I can tell that is the behavior of https://www.wikidata.org/wiki/User:Bargioni/UseAsRef.js.

I am not sure that closes the issue, but seems useful to mention.

Lydia_Pintscher claimed this task.

Thanks, Tiago!
Let's consider this done then and any further improvements should probably be made there.

This task asked for a gadget, the mentioned thing is a user script. It’s probably a good starting point, but doesn’t resolve the task. (And a simple move to MediaWiki namespace isn’t straightforward due to T75714 and the script using ES6 syntax.)