Zeko added a comment.

Hello and sorry for the late reply.

Been working on this lately and I have some questions and some suggestions.
As said by @DanBri I understand this as a topic characterizing of the page (or tag), and an linker to the associated wikidata item and before discussing how to make this (I like the ideas shown here but I think we should define specifically how to implement that) we should talk about how to associate tags or categories to wikidata items.

As @Pigsonthewing said we could add a dialog to make the user make the assoc in a dialog page related to the tag or category (if I understood that correctly) but (I repeat, if I understood it correctly) it could be really tedious for the user to make them one by one. So in a first approach I find logical to make that association, so that the user can handle all of them from one place: in the plugin setup page. But there may be some problems in how to make that association.

  1. We could let the user just add the wiki item id into a textfield and "poof": magic, done. Later we just have to add the assoc to the meta of the page and done. (After we discuss exactly and specifically how to do it)
  2. We could add a semi-automatic way to make the associations. I mean, all tags are a specific and relevant "keyword" or "keywords" and using the wikidata api we can get a list of wikidata items whose title are related to that "keyword" (or the tag name if you like it better) so we can make the user just disambiguate the term. For example: https://www.wikidata.org/w/api.php?action=""> would get us a json with some simple but relevant info about wikidata items related to the search of the term "car" among which the user could decide for the most suitable for his tag.
  3. If we do this, I am not sure we need a dialog page, we could make that with ajax or even just _javascript_, just showing a little pop-up dialog next to the "manual field" so the user selects from there to disambiguate the assoc.
  4. Anyway I would let both options, so if the automatic can't find a proper item for the user (very long tag name, or searchs with very large disambiguation lists) he can just go to wikidata, look for the id he wants to assoc to, and paste it in the textfield.

In addition to this, we could make this also for posts, we though about a metabox in the post editing area in which we could add new associations, and even more, add formatted references (ie: harvard or ieee format) to the post text but that will be up to you =)

waiting for your opinion =) Thank you!


TASK DETAIL
https://phabricator.wikimedia.org/T138371

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Zeko
Cc: Samwilson, Mbch331, Framawiki, DanBri, Esh77, Lydia_Pintscher, abian, Tramullas, Zeko, Aklapper, Pigsonthewing, Zppix, GoranSMilovanovic, QZanden, Psychoslave, Wikidata-bugs, aude
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to