Help:Nettstedlenker

From Wikidata
Jump to: navigation, search
This page is a translated version of the page Help:Sitelinks and the translation is 5% complete.

Outdated translations are marked like this.
Other languages:
العربية • ‎বাংলা • ‎català • ‎čeština • ‎dansk • ‎Deutsch • ‎Deutsch (Sie-Form)‎ • ‎dolnoserbski • ‎Ελληνικά • ‎English • ‎Esperanto • ‎español • ‎فارسی • ‎suomi • ‎føroyskt • ‎français • ‎Frysk • ‎ગુજરાતી • ‎हिन्दी • ‎hornjoserbsce • ‎Հայերեն • ‎Bahasa Indonesia • ‎italiano • ‎日本語 • ‎ქართული • ‎Ripoarisch • ‎Kurdî • ‎latviešu • ‎македонски • ‎മലയാളം • ‎norsk bokmål • ‎नेपाली • ‎Nederlands • ‎occitan • ‎polski • ‎português • ‎português do Brasil • ‎русский • ‎Scots • ‎српски / srpski • ‎svenska • ‎தமிழ் • ‎తెలుగు • ‎Türkçe • ‎українська • ‎中文


Wikidata screenshot - adding a new sitelink

Nettstedlenker (eller interwikilenker eller språklenker eller sider som lenkes til et datasett) er spesielle lenker som inneholder en side og en tittel, og som fører fra enkeltemner på Wikidata til sider på andre sider slik som Wikipedia. De brukes både for å identifisere et emne fra en ekstern nettside, og som erstatning for språklenker. Nettstedlenker kan ha tilknyttede kjennetegn (eng. badges) som viser f.eks. om en artikkel har status som utmerket eller lignende.

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, Wikibooks, 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 a particular sitelink to one item 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. Another solution can be using Interlanguage links with anchors-for example the English Wikipedia redirect "Planform (aeronautics)" (redirecting to English Wikipedia page "Wing configuration"). The page "Wing configuration" already has a Wikidata item page wing configuration (Q2992500), so using the redirect as a sitelink for no label (Q2643782) is essentialy linking to English Wikipedia page "Wing configuration" from two item pages, which is not allowed. This can be solved as described in the relevant section.

Språk[edit]

Legg kun til språk for hvis det eksisterer artikler på Wikipedia. Den lenkede artikkelen skal være en eksisterende artikkel.

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 (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 (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]

Undertrykkelse av Wikidata-lenker[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 via the item page for survival function (Q2915096). Since the link for French Wikipedia is an anchor, it is instead listed locally on the English Wikipedia in the wikitext itself.

Talk pages[edit]

When linking from a Wikidata talk page (or most other pages other than items) to another Wikimedia project, a prefix is used in the wiki markup. For example, of one wished to link to the documentation about JSON format on mediawiki.org, one could write [[mediawikiwiki:Wikibase/DataModel/JSON]] and the result would be mediawikiwiki:Wikibase/DataModel/JSON.

A table of available prefixes may be found at Special:Interwiki.

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
  • Help:Badges, which explains badges

For additional information and guidance, see:

  • Project chat, for diskusjoner rundt alle aspekter av Wikidata
  • Wikidata:Glossary, ordboken for begreper brukt på denne og andre hjelpesider
  • Help:FAQ, ofte stilte spørsmål og svar fra Wikidata-samfunnet
  • Help:Contents, hjelpeportal som inneholder all tilgjengelig dokumentasjon for Wikidata