Jump to content

Wikipedia:Wikidata: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
rm both color and small. the point is to upstage the earlier portions, but I can understand not wanting to. going back to black and noraml size might do that?
Line 20: Line 20:
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''' 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, as before. In some cases, there may be a Wikidata item that corresponds to the article, but the English Wikipedia article has not yet been associated with it. In the course of routine maintenance at Wikidata, more and more correct associations between Wikipedia articles will develop—all stored in one place and propagated to every Wikipedia that has a related article, in real time, with a single edit.
If the article '''is not''' yet linked to from Wikidata, then it will display whatever links are in the article wiki-text, as before. In some cases, there may be a Wikidata item that corresponds to the article, but the English Wikipedia article has not yet been associated with it. In the course of routine maintenance at Wikidata, these instances will be fixed.
[[File:Interlanguage links provided by WikiData.png|thumb|The link to edit the Wikidata page, in grey, on the Vector skin.]]


{{anchor|Editing interlanguage links}}<!-- Redundant anchor which is used by the edit interface. Do not delete unless the edit interface also changes. The header below can be changed normally. -->
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, '''please note the information in the section below''' before removing such "legacy links".
{{anchor|Editing interlanguage links}}<!-- Redundant anchor in case the section header below is ever changed. THIS ANCHOR IS USED BY THE EDIT INTERFACE, AND THUS UNDER NO CIRCUMSTANCES SHOULD IT BE REMOVED (though the header below can of course be changed like any other header) -->
=== Editing interlanguage links ===
=== Editing interlanguage links ===
[[File:Interlanguage links provided by WikiData.png|thumb|The link to edit the Wikidata page, in grey, on the Vector skin.]]
Local interlanguage links in Wikipedia pages can be safely removed if the local list and the Wikidata list match. '''Understand that unexplained removal of interlanguage links could appear to be vandalism'''. To avoid being reverted, leave an [[Help:edit summary|edit summary]] when removing local links, preferably linking to this page.


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, '''you should not remove links if you have not verified that they have been copied to Wikidata'''.
Local interlanguage links in Wikipedia pages can be safely removed if the local list and the Wikidata list match. '''Understand that unexplained removal of interlanguage links could appear to be vandalism'''. To avoid being reverted, leave an [[Help:edit summary|edit summary]] when removing local links, preferably linking to this page. You may want to add the following [[JavaScript]] to [[Special:MyPage/common.js|your common.js]] page, which will allow you, when editing a page, to click a "remove interwikis" button, which will remove all interlanguage links that have been copied to Wikidata:

<syntaxhighlight lang="javascript">mw.loader.load('//www.wikidata.org/w/index.php?title=User:Yair_rand/checksitelinks.js&action=raw&ctype=text/javascript');</syntaxhighlight>
==== Manual editing of links ====
'''You should not remove links if you have not verified that they have been copied to Wikidata'''. The best way to do that is with the aforementioned script; if that's not feasible for you, however, you can also use the following methods:
The following method is the basic way to edit an interlanguage link:

# Go to the Wikidata item. There are two manual methods to do this:
#* Click the grey "edit links" link at the bottom of the "Languages" bar
#* Go to [[d:Special:ItemByTitle]] and search for your page
# Compare the links with the article's
# Edit the links in Wikidata. This should be straightforward; each interlanguage wiki link has an [edit] next to it. Click that link exposes several forms:
#* The first is for the language code
#* The second is for the languages' link
#* Where the [edit] link was should now appear three options: save, remove, and cancel.
#** Save is used when you have completely finished changing the information in the entry
#** Remove completely removes the entry from the database
#** Cancel cancels the interaction with the interface
# Add any missing links in Wikidata if appropriate. This can be done by going to the bottom of the interlanguage wiki link list and clicking on "add link". This exposes mostly the same forms as a normal edit.
# Once all links are accounted for, preview a version of the article on Wikipedia with all interlanguage links removed, and compare it to the current version of the article. Look to see if there are any differences between the rendered text. If there are not, they may be removed safely. If there ''are'' differences, you should either ''not'' remove the links that differ, or, better yet, return to editing Wikidata, and then remove them from the article.

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 {{freenode|wikimedia-wikidata}}.

==== Semi-automated editing of links ====
[[File:Checksitelinks location screenshot.png|thumb|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".)]]
[[File:Checksitelinks location screenshot.png|thumb|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".)]]
The 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:
*Go to the Wikidata item itself by either of three methods: click the grey "edit links" link at the bottom of the "Languages" bar; go to [[d:Special:ItemByTitle]] and search for your page; or use [[d:User:Yair rand/WikidataInfo.js|the WikidataInfo script]]) and compare the links with the article's. Since this can be tedious, you may want to consider enabling ''slurpInterwiki'' on your [[d:Special:Preferences#mw-prefsection-gadgets|Wikidata gadgets panel]].
*Preview a version of the article with all interlanguage links removed, and compare it to the current version of the article. Look to see if there are any differences between the rendered text. If there are not, they may be removed. (This is just like the policy of deleting most images that are identical to their [[WP:Commons|Commons]] counterparts.) If there ''are'' differences, you should either ''not'' remove the links that differ, or, better yet, add them to Wikidata yourself, and then remove them from the article.
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 {{freenode|wikimedia-wikidata}}. 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.


* You may want to add the following [[JavaScript]] to [[Special:MyPage/common.js|your common.js]] page, which will allow you, when editing a page, to click a "remove interwikis" button, which will remove all interlanguage links that have been copied to Wikidata: <syntaxhighlight lang="javascript">mw.loader.load('//www.wikidata.org/w/index.php?title=User:Yair_rand/checksitelinks.js&action=raw&ctype=text/javascript');</syntaxhighlight>
* An alternative script called [[d:User:Yair rand/WikidataInfo.js|the WikidataInfo script]] is available also.
* ''slurpInterwiki'' is a Wikidata gadget which can be used to semi-automatically pull in new links from the article. See [[d:Special:Preferences#mw-prefsection-gadgets|Wikidata gadgets panel]]

==== Automated editing of links ====
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 [[Wikipedia:Bot owners' noticeboard#Wikidata]].

=== Related information ===
==== Article status indicators ====
==== Article status indicators ====
Good Articles and Featured Articles on other Wikipedias are indicated by a star beside the language link. This star is generated by a template. Since Wikidata does not store this information, these templates '''should not be removed'''. The corresponding language link itself may be removed.
Good Articles and Featured Articles on other Wikipedias are indicated by a star beside the language link. This star is generated by a template. Since Wikidata does not store this information, these templates '''should not be removed'''. The corresponding language link itself may be removed.
Line 43: Line 70:
==== Suppression of Wikidata links ====
==== Suppression of Wikidata links ====
An individual article can completely suppress Wikidata links by using the {{[[mediawikiwiki:Extension:Wikibase_Client#noexternallanglinks|noexternallanglinks]]}} magic word. The magic word also supports suppression of only specific languages, in the form <nowiki>"{{noexternallanglinks:es|fr|it}}"</nowiki>, which would suppress the Spanish, French, and Italian links.
An individual article can completely suppress Wikidata links by using the {{[[mediawikiwiki:Extension:Wikibase_Client#noexternallanglinks|noexternallanglinks]]}} magic word. The magic word also supports suppression of only specific languages, in the form <nowiki>"{{noexternallanglinks:es|fr|it}}"</nowiki>, which would suppress the Spanish, French, and Italian links.

=== Related information ===


==== Scope of Wikidata's language links ====
==== Scope of Wikidata's language links ====
Line 54: Line 79:
==== Recent changes ====
==== Recent changes ====
Changes on Wikidata 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]].
Changes on Wikidata 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]].

==== Interwiki bots ====
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 [[Wikipedia:Bot owners' noticeboard#Wikidata]].


== Infoboxes (Phase 2) ==
== Infoboxes (Phase 2) ==

Revision as of 01:52, 21 February 2013

Wikidata is a Wikimedia project to create a collaboratively edited knowledge base. Part of this project is to centralize the interlanguage links for all the Wikipedia projects. The English Wikipedia can now use interlanguage links stored at Wikidata. For instance, the interlanguage links appearing on the left side of this information page come from d:Q4847210. In the future, Wikidata will include other kinds of relation data, such as information used in infoboxes.

Interlanguage links

Wikidata, phase 1: Links of all languages to one central point
Old system: Interlanguage links between all languages

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, as before. In some cases, there may be a Wikidata item that corresponds to the article, but the English Wikipedia article has not yet been associated with it. In the course of routine maintenance at Wikidata, these instances will be fixed.

Editing interlanguage links

The link to edit the Wikidata page, in grey, on the Vector skin.

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

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, you should not remove links if you have not verified that they have been copied to Wikidata.

Manual editing of links

The following method is the basic way to edit an interlanguage link:

  1. Go to the Wikidata item. There are two manual methods to do this:
    • Click the grey "edit links" link at the bottom of the "Languages" bar
    • Go to d:Special:ItemByTitle and search for your page
  2. Compare the links with the article's
  3. Edit the links in Wikidata. This should be straightforward; each interlanguage wiki link has an [edit] next to it. Click that link exposes several forms:
    • The first is for the language code
    • The second is for the languages' link
    • Where the [edit] link was should now appear three options: save, remove, and cancel.
      • Save is used when you have completely finished changing the information in the entry
      • Remove completely removes the entry from the database
      • Cancel cancels the interaction with the interface
  4. Add any missing links in Wikidata if appropriate. This can be done by going to the bottom of the interlanguage wiki link list and clicking on "add link". This exposes mostly the same forms as a normal edit.
  5. Once all links are accounted for, preview a version of the article on Wikipedia with all interlanguage links removed, and compare it to the current version of the article. Look to see if there are any differences between the rendered text. If there are not, they may be removed safely. If there are differences, you should either not remove the links that differ, or, better yet, return to editing Wikidata, and then remove them from the article.

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 #wikimedia-wikidata connect.

Semi-automated editing of 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".)

The 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:

  • You may want to add the following JavaScript to your common.js page, which will allow you, when editing a page, to click a "remove interwikis" button, which will remove all interlanguage links that have been copied to Wikidata:
    mw.loader.load('//www.wikidata.org/w/index.php?title=User:Yair_rand/checksitelinks.js&action=raw&ctype=text/javascript');
    
  • An alternative script called the WikidataInfo script is available also.
  • slurpInterwiki is a Wikidata gadget which can be used to semi-automatically pull in new links from the article. See Wikidata gadgets panel

Automated editing of links

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 Wikipedia:Bot owners' noticeboard#Wikidata.

Related information

Article status indicators

Good Articles and Featured Articles on other Wikipedias are indicated by a star beside the language link. This star is generated by a template. Since Wikidata does not store this information, these templates should not be removed. The corresponding language link itself may be removed.

Interlanguage links with anchors

Sometimes an interlanguage link includes an anchor, which is a link to a section of an article. The anchor is represented by the "#" character (e.g. [[fr:Analyse de survie#Fonction de survie]]). Such a link is used when the linked Wikipedia does not have an exactly corresponding article, but has an article that deals in part with the same subject. Wikidata's language links do not support anchors by design, so language links with anchors must be retained on Wikipedia if desired. For an example, see the end of the wikitext in the article Survival function: Wikidata is providing all of the language links—via 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.

Suppression of Wikidata links

An individual article can completely suppress Wikidata links by using the {{noexternallanglinks}} magic word. The magic word also supports suppression of only specific languages, in the form "{{noexternallanglinks:es|fr|it}}", which would suppress the Spanish, French, and Italian links.

Scope of Wikidata's language links

The Wikidata community agreed in an RFC that all namespaces of Wikipedia projects other than "User" 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 effected by both communities. For an example of a Wikidata item referring to the Wikipedia namespace, see item Q4167836, which refers to Wikipedia:Categories.

Inline interlanguage links

Inline interlanguage links (those of the format [[:<language>:<article>]]) continue to work as before and have not been changed by Wikidata.

Recent changes

Changes on Wikidata 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.

Infoboxes (Phase 2)

Wikidata aims to hold information in many languages that can eventually 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 will support citations for all data. This phase of the Wikidata project is a large one, and is still in development.[needs update]

See also

External links