Jump to content

AutosuggestSitelink

From Meta, a Wikimedia project coordination wiki
This is an archived version of this page, as edited by DMartin (WMF) (talk | contribs) at 20:22, 19 December 2022. It may differ significantly from the current version.

AutosuggestSitelink is a Wikipedia user script that suggests Wikidata items for possible linking with a Wikipedia article, using Interwiki_linking. It was designed and implemented for possible use as a Wikipedia gadget. It was created by the Community Tech Wishathon, based on the Community Wishlist Survey 2022 proposal Autosuggest linking Wikidata item after creating an article.

Overview of Functionality

Brief explanation of Wikipedia / Wikidata links and what AutosuggestSitelink does.... Wikipedia / Wikidata links are 1-to-1 ...

AutosuggestSitelink searches Wikidata for items that might be appropriate for linking to an article.  The search is based on the title of the Wikipedia article just edited. If candidate items are found, AutosuggestSitelink allows for one-click creation of a new link with an item chosen by the contributor.

A few search / language details ...

Important: AutosuggestSitelink does not determine the appropriateness of any Wikidata item for linking to the article. Before linking to an item, it is important for the contributor to verify its appropriateness. If appropriateness cannot verified, it is better not to make the link. This is true even if AutosuggestSitelink returns just a single candidate item.

Before creating a new Wikidata item, the contributor should verify that an appropriate item does not already exist.  This is true even if AutosuggestSitelink has reported that no matches were found.

How to verify appropriateness ... ...

Usage

AutosuggestSitelink is triggered when a Wikipedia contributor publishes changes to an article.

  • If the article is already linked with a Wikidata item, AutosuggestSitelink does nothing.
  • Otherwise, AutosuggestSitelink searches for candidate Wikidata items for linking.
    • If no search matches are found, the contributor is given an opportunity to create a new Wikidata item corresponding to the article just edited. Before doing this, the contributor should determine that no such Wikidata item currently exists, as discussed above.
    • If search matches are found, they are presented in a list and a pop-up window. Before making a selection, the contributor should carefully determine which, if any, of the listed items represents the main subject of the article, as discussed above.  Once an appropriate Wikidata item has been identified in the list, the contributor clicks onLink this item. ...
      • Linking to an item is optional. If the contributor prefers not to create a link, they may simply click Close.

What to do if a Wikidata item gets incorrectly linked ...

Maybe add screenshots.

Installation

Implementation

It is implemented as a single JavaScript file, which is stored at TBD. ...