== [[ https://meta.wikimedia.org/wiki/Community_Wishlist_Survey_2022/Wikidata/Autosuggest_linking_Wikidata_item_after_creating_an_article | Original Wish ]]
**Problem:** Someone creates an article in Language A Wikipedia, but he does not know there is already the same article in Language B Wikipedia (often a smaller language version), so no Wikidata linkage is made. I have seen many cases between Chinese Wikipedia (zh) and Cantonese Wikipedia (yue).
**Proposed solution: **After creating an article in Wikipedia, there would be a popup which guides the user to link the Wikidata item. The system will search if there is the same name or similar name of sitelinks already existing in any Wikidata item, if so, the results are listed and the user has to judge whether it is suitable to link. If no existing Wikidata is suitable to link, user can also choose to create a new Wikidata item immediately.
**Who would benefit: **Wikipedia article creators in all languages
== Context
This gadget was developed during the Spring Community Tech WMF Hackathon. The requirements below are meant to be abstracted information without being too invasive. We do not want to betray the intricate details of accuracy of the last time someone was active, we just want to provide useful information about their level of recent engagement on the platforms.
== Requirements
As a user of this gadget, I am be able to:
- See a list of auto suggested site links for the new created article.
- Save selected wikidata items related to new created article.
== Decisions
== Possible Further Refinements / Next Steps
- Tag edits (in Wikidata) made by our script, in case a senior editor wants to monitor them, or a bot can track them
- Additional testing to indicate that we are getting a high-precision set of candidate results
-- Especially testing with search results coming from real Wikidata
-- Testing in other projects besides Wikipedia (since this will be offered as a global script)
== Open Questions
- What if a wikidata item, which matches, already is linked to a different article?
-- Don't show it to the user at all
-- Show it to the user, but with an indication that the item is already linked
--- If the user choShow for informational purposes it,only; remove the existing link beforenot available for linking
--- Or available for linking to the current article(in which case remove the existing link)
- Run the script for a new page only, or for every publish event?
-- If the former, need to find the best way to detect that it's a new page
- We should automatically refresh the left sidebar after linking, so "Wikidata item" shows up under Tools
- Additional testing is needed to indicate that we are getting a high-precision set of candidate results
-- Especially testing with search results coming from real Wikidata
-- Testing in other projects besides Wikipedia (since this will be offered as a global script)
- We should probablyShould we just show candidate items that have a label in the user's language or in the language of the edited article?
- Could there be a way to easily undo a link created by mistake?