Wikipedia:Wikidata

Wikidata is a Wikimedia project to create an open and collaborative database. It stores relational statements about an entity as well as the interwiki links associated with the pages on the Wikimedia projects that describe that entity. The English Wikipedia uses these interlanguage links stored at Wikidata, and has some limited applications for the statements made in Wikidata.

From a Wikipedia page, you can go to the link "Wikidata item", using "Tools" in the side panel (in the left), to see and edit it. Also in Tools, there is another link to "page information", where is "Wikidata item ID", that contains the QID (for example: Q171 or "None").

You can go to the corresponding page in Wikimedia sister projects using the links under "In other projects", also in the side pane.

Finally, you can go to other Wikipedia language links of the item, clicking in "Languages" in the side pane. You can use "Edit links" there.

Each Wikipedia page with an entry in Wikidata uses the language links stored there to populate the language links that show in the left column. Traditional interwiki links in a page's wiki-text are still recognized, and simply override the information for that language (if any) from Wikidata.

If the article is linked to from Wikidata, then it will display all links listed there, in addition to any links entered in the article wiki-text. In the case of a conflict, or intentional difference, between a local link and a Wikidata link for a given language, the local link will be displayed; the Wikidata links for all other languages will still display.

If the article is not yet linked to from Wikidata, then it will display whatever links are in the article wiki-text. In some cases (especially for new articles), there may be a Wikidata item that corresponds to the article, but the English Wikipedia article has not yet been associated with it.

A very incomplete list of experienced Wikidata editors who are active on the English Wikipedia, and may be able to help you resolve any Wikidata issues. Most of these users, and many others, can also be found on #wikidata .

Key: A=administrator; B=bureaucrat; CU=CheckUser; OS=oversighter; S=Steward; WD=Wikidata; WP=English Wikipedia; WMF=all Wikimedia Foundation projects.

Of course, adminship is NOBIGDEAL, so this is just for reference in case you run into a task requiring administrative tools in the course of resolving an interwiki conflict (e.g. deleting an item that's been merged with another).

Note that in Wikidata the statements define the concept so, if you cannot find a concept under a certain name, it still may exist under another name. Hint: use unique identifiers from related databases to confirm that a concept does or does not exist.

Local interlanguage links in Wikipedia pages can be safely removed if the local list and the Wikidata list match. . To avoid being reverted, leave an edit summary when removing local links, preferably linking to this page.

Understand that unexplained removal of interlanguage links could appear to be vandalism

In general, it is best to remove interwiki links in Wikipedia articles once they are associated with Wikidata. (You can tell that the page is "associated" with Wikidata by the presence of the "Edit links" text below the language list.) This is because whatever interwiki links are left over will always override the more current information that Wikidata endeavors to provide. Page sizes also decrease noticeably when long lists of interwikis are removed. However, . This task is now done by a bot (Addbot), so you don't need to do this manually on most pages.

you should not remove links if you have not verified that they have been copied to Wikidata

Bot operators using the pywiki framework should upgrade to a minimum of pyrev:11073. Bot operators using bots editing interwikis using other frameworks or methods should stop running their bot until they have fixed their code to avoid changing interwikis. See .

Below are methods which can be used to change the links in a more automatic fashion, which decreases the chance that you will make an error while transferring the links:

To use Checksitelinks (once installed), click to edit an article, then go to the dropdown menu. (In the MonoBook skin, the tab simply appears at the top of the page, to the right of "unwatch".)
A screenshot of the slurpInterwiki interface. The button to initiate it, "Import interwiki", can be seen in the bottom left corner of the screen, along with several other gadget-generated buttons.

If you encounter any interwiki conflicts (most notably situations where you get an error message informing you that a link you've tried to add is already in use on another item), you can raise the issue at Wikipedia talk:Wikidata#Interwiki conflicts or d:Wikidata:Interwiki conflicts, though if you can think of a way to resolve it yourself, by all means please do.

If you run into any confusion in the process of transferring links from Wikipedia to Wikidata, feel free to drop by at d:Wikidata:Project chat or ask for advice on IRC at #wikidata .

Good Articles and Featured Articles on other-language Wikipedias are indicated by a star next to the language link. Wikidata supports this through badges (see :d:Wikidata:Development plan § Badges).

When editing the list of Wikipedia links in Wikidata, the status of the article can be changed by clicking on the medallion to the right of the article name.

An anchor link is used when the linked-to, other-language Wikipedia does not have an article that corresponds entirely with the one on the linked-from Wikipedia, but does have an article that deals in part with the same subject.

By design, Wikidata's language links do not support anchors. To keep any interlanguage links with anchors, they must be retained on Wikipedia. For an example, see in the article Survival function. There, Wikidata is providing all of the language links—through the item d:Q2915096—except for the one to the French Wikipedia, which, since it is a section link, is instead listed locally in the article itself.

The Wikidata community agreed in an RFC that all namespaces of Wikipedia projects other than "User" and "Special" are eligible for storage on Wikidata. This means that interwiki links for categories, templates, and Wikipedia policy pages can also be stored in Wikidata and removed locally if both communities agree.

For an example of a Wikidata item referring to the Wikipedia namespace, see item Q4167836, which refers to Wikipedia:Categories.

Inline interlanguage links (those of the format [[:<language>:<article>]]) continue to work as before and have not been changed by Wikidata. For instance, the following piped link to the German version of this page (which is: [[:de:Wikipedia:Wikidata|the German version of this page]]) still functions without in any way affecting its interlanguage links, here or on Wikidata.

Only then add the linked-to page title and any piped link text you want after it.

Changes on the Wikidata project site that relate to articles on this Wikipedia will show up in Recent Changes if the option is enabled by the user. See Special:Preferences § mw-prefsection-rc.

Wikidata holds information in many languages that can be re-used on Wikipedias, particularly in infoboxes. The choice to use this information is left entirely to the Wikipedia community itself — future changes to the wiki software will only provide an option to retrieve information from Wikidata if desired. (For example, some wiki-text may ask for the atomic number of a chemical element, or the population of a country.) Wikidata supports citations for all data.

There are two methods of obtaining data from Wikidata to use in an article.

The simplest is to use the #statements parser function. For example, to get Madonna's date of birth you need to know the property number of "date of birth" which is P569. (You can find this by clicking the property on Wikidata.)

To obtain data from a different item, you'll need the item number. For example, to get the capital (P36) from the item about Germany (Q183):

Note that this may return multiple values separated by commas, if there are multiple statements for the given property. For example, if you fetch the occupation (P106) of Douglas Adams (Q42):

Values that are references to other data items, such as the occupations in the above example, will be represented by wiki links to the corresponding pages on the local wiki. If you want unlinked labels instead, use #property instead of #statements.

Note that the value returned can be unlinked, even though Wikipedia may have an article covering the topic, because Wikidata is set up not to allow links via redirects. For example, if you fetch the occupation (P106) of Howard Carter (Q133682):

Also, #statements may return values that are completely unreferenced, or only "imported from a Wikipedia", so may not be suitable in applications where it is important to have verified data. Note that for Howard Carter's occupation:

For more advanced uses, it is necessary to use Lua modules, for example to choose between alternative values, to include references and to create links. Several competing Wikidata modules have been developed, and are used in different Wikipedia language versions. Modules that are used to put automatically-updating Wikidata values into a Wikipedia article is still in its infancy. Before using the module in an article or a template, you should discuss its usage on the template's or article's talk page. Users may revert your edit if the module is not working on that particular page or the user doesn't believe the benefit outweighs the risk of a bug in the module.

Before considering the use of Wikidata in any particular article, editors should be aware of the conclusions of the various Requests for Comment regarding Wikidata: