Help:Sitelinks

From Wikidata
Jump to: navigation, search

Other languages:
বাংলা • ‎čeština • ‎dansk • ‎Deutsch • ‎Deutsch (Sie-Form)‎ • ‎dolnoserbski • ‎Ελληνικά • ‎English • ‎español • ‎فارسی • ‎suomi • ‎føroyskt • ‎français • ‎Frysk • ‎ગુજરાતી • ‎hornjoserbsce • ‎Bahasa Indonesia • ‎italiano • ‎日本語 • ‎ქართული • ‎Ripoarisch • ‎Kurdî • ‎latviešu • ‎македонски • ‎മലയാളം • ‎norsk bokmål • ‎Nederlands • ‎occitan • ‎polski • ‎português do Brasil • ‎русский • ‎Scots • ‎српски / srpski • ‎தமிழ் • ‎తెలుగు • ‎українська • ‎中文
Wikidata screenshot - adding a new sitelink

Sitelinks (also known as interwiki links) are special links that contain a site and a title, and go from individual items in Wikidata to pages on other Wikimedia sites such as Wikipedia and Wikivoyage.

Language independent general principles[edit]

Before Wikidata: Interlanguage links between all languages
After the start of Wikidata: Sitelinks to all languages from one central point

Usage[edit]

Typically items have at least one corresponding page on a Wikimedia site such as Wikipedia, Wikivoyage, Wikisource, Wikiquote, or Wikimedia Commons (however, there are some exceptions to this rule). Having at least one sitelink ensures that an item meets Wikidata's notability criteria. Sitelinks are also useful for ensuring that items in Wikidata represent only one unique concept; in cases when more than one item could reasonably correspond to the same Wikimedia page, it is likely that the items should be merged together.

Sitelinks serve as a replacement for a previous system of interlanguage links that was used to link from a page in one language on a Wikimedia site to an equivalent page in another language, for example the English Wikipedia page on Paris to the French Wikipedia page on Paris. These interlanguage links used to be stored locally on each Wikimedia site and maintained separately in each language so that if the name of a page on one Wikimedia site changed, then the other Wikimedia sites in each language would need to have their links updated to reflect the changes. Sitelinks thereby improve upon this system by having everything centralized in Wikidata.

Linking to Wikimedia site pages[edit]

Wikidata currently supports sitelinks for Wikipedia, Wikinews, Wikiquote, Wikisource, Wikivoyage, and Wikimedia Commons (other Wikimedia projects will be added later). The site id for English Wikipedia is enwiki, for French Wikipedia frwiki and so on and for Commons commonswiki. The site id for English Wikimedia projects are enwikinews, enwikiquote, enwikisource, enwikivoyage etcetera.

Sitelinks are for linking items to standalone pages that already exist on Wikimedia sites. Wikidata sitelinks do not support anchors (links to a specific section of a page). Anchors are preceded by the "#" character on Wikimedia sites.

For example, a sitelink for the item for The Beatles (Q1299) should only link to the Wikipedia page on The Beatles (http://en.wikipedia.org/wiki/The_Beatles) — and not any sections of that page, such as http://en.wikipedia.org/wiki/The_Beatles#Discography. Moreover, it's not possible for any item on Wikidata to link to just the Discography section of The Beatles page because this would require an anchor link. However, it would be possible to link a different item, The Beatles discography (Q829965) to a different Wikipedia page (i.e. one that is completely devoted to The Beatles discography, such as http://en.wikipedia.org/wiki/The_Beatles_discography).

It is, however, possible to maintain sitelinks for anchors outside of Wikidata and locally on Wikimedia sites. Please see Interlanguage links with anchors section for more on this.

Note that you can only add any sitelink to one item only on Wikidata. You will see an error message when attempting to add a new sitelink if that link has already been added to another item page. If you receive an error message but believe the item you are editing is the most appropriate one for a sitelink, you may need to merge two items. Please consult Help:Merge or visit Wikidata:Interwiki conflicts to report a conflict and ask for others to look at the situation.

Languages[edit]

Sitelinks can be added to Wikimedia sites in more than 200 languages. When adding a sitelink for an item, you will need to input both the language of the Wikimedia site page that the item corresponds to and the title of the page as it appears on the Wikimedia site. You can only add a sitelink for a language and a Wikimedia site if a page on that language version of the Wikimedia site already exists.

Badges[edit]

Badges for good and featured articles are stored on Wikidata right in front of the sitelink.

Namespaces[edit]

The Wikidata community agreed in an RFC that all namespaces of Wikimedia projects other than "User" are eligible for storage on Wikidata. This means that in addition to sitelinks for pages like Wikipedia articles, Wikisource texts, and Wikimedia Commons files, sitelinks for categories, templates, and help pages can also be stored in Wikidata. For an example of a Wikidata item referring to a namespace, see item Wikimedia category page (Q4167836), which includes sitelinks to w:Wikipedia:Categorization, q:Help:Category, and voy:Wikivoyage:Categories.


Note that only when adding a sitelink for a page that is outside of a Wikimedia site's main namespace you need to keep the namespace in the page title.

Examples:

Wikidata item: Wikimedia category page (Q4167836)
Wikiquote page to add as sitelink: http://en.wikiquote.org/wiki/Help:Category
Wikimedia site to add under "Language Code": English enwikiquote
Page title to add under "Linked page": Help:Category

Wikidata item: Joan of Arc (Q7226)
Wikiquote page to add as sitelink: http://en.wikiquote.org/wiki/Joan_of_Arc
Wikiquote site to add under "Language Code": English enwikiquote
Page title to add under "Linked page": Joan of Arc

Guidelines for using sitelinks on other Wikimedia sites[edit]

Managing Wikidata sitelinks[edit]

Editors on the English Wikipedia have created a great page with all the necessary information for editors. Much of the information will be relevant to contributors on other Wikimedia projects too.

Suppression of Wikidata links[edit]

An individual page on a Wikimedia site can completely suppress Wikidata sitelinks by using the {{noexternallanglinks}} magic word. The magic word also supports suppression of sitelinks from only specific languages, for example, "{{noexternallanglinks:es|fr|it}}" would suppress only the Spanish, French, and Italian links. Neither of these uses prevents Wikidata from listing all sitelinks of an item.

Interlanguage links with anchors[edit]

Screenshot of "Languages" (Wikidata sitelinks) highlighted on a Wikimedia page

In the previous system of interlanguage links, an anchor link was used when a Wikimedia site did not have an exact match in another language for a corresponding page, but did have a page that dealt in part with the same subject. As discussed above, Wikidata does not support anchors as sitelinks, so interlanguage links with anchors must be retained locally on the Wikimedia sites (not Wikidata) if desired.

An example of this in practice comes from the English Wikipedia page on "survival function". An equivalent page on "survival function" also exists on the Spanish Wikipedia and Sudanese Wikipedia, but there is no equivalent page for it on the French Wikipedia (instead, there is only a section of a page, Analyse de survie#Fonction de survie, that covers the concept). While the "Languages" section on the left side menu of the survival function page on English Wikipedia displays links for all languages, only the Spanish and Sudanese ones are provided by Wikidata provides via the item page for survival function (Q2915096). Since the link for French Wikipedia is a anchor, it is instead listed locally on the English Wikipedia in the wikitext itself.

See also[edit]

For related Help pages, see:

  • Help:Items, which explains what items are and what rules they follow
  • Help:Merge, which explains what merges are and how to perform one

For additional information and guidance, see:

  • Wikidata:Project chat, for discussing all and any aspects of Wikidata
  • Wikidata:Glossary, the glossary of terms used in this and other Help pages
  • Help:FAQ, frequently asked questions asked and answered by the Wikidata community
  • Help:Contents, the Help portal featuring all the documentation available for Wikidata