Help:Sitelinks/dsb: Difference between revisions

From Wikidata
Jump to navigation Jump to search
Content deleted Content added
FuzzyBot (talk | contribs)
Updating to match new version of source page
FuzzyBot (talk | contribs)
Updating to match new version of source page
 
(8 intermediate revisions by the same user not shown)
Line 8: Line 8:
</div>
</div>


<span id="Language-independent_general_principles"></span>
<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
== Směrnice ==
== Směrnice ==
Line 18: Line 19:


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
Typically items have at least one corresponding page on a [https://wikimediafoundation.org/our-work/wikimedia-projects/ Wikimedia site] such as Wikipedia, Wikivoyage, Wikisource, Wikiquote, or Wikimedia Commons (however, {{ll|Wikidata:Notability|there are some exceptions}} to this rule). Having at least one sitelink ensures that an item meets {{ll|Wikidata:Notability|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 {{ll|Help:Merge|merged}} together.
Typically items have at least one corresponding page on a [https://wikimediafoundation.org/our-work/wikimedia-projects/ Wikimedia site] such as Wikipedia, Wikivoyage, Wikisource, Wikiquote, or Wikimedia Commons (however, {{ll|Wikidata:Notability|there are some exceptions}} to this rule). Having at least one sitelink ensures that an item meets {{ll|Wikidata:Notability|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 {{ll|Help:Merge|merged}} together.
</div>
</div>


Line 28: Line 29:
=== Linking to Wikimedia site pages ===
=== Linking to Wikimedia site pages ===
</div>
</div>
{{See also|Wikidata:Sitelinks to redirects}}


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
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.
Wikidata currently supports sitelinks for most Wikimedia projects (except Incubator, see [[phab:T54971]]). 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.
</div>
</div>


Line 39: Line 41:
<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
For example, a sitelink for the item for {{Q|1299}} should only link to the Wikipedia page on The Beatles (https://en.wikipedia.org/wiki/The_Beatles) — and '''not''' any sections of that page, such as https://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, {{Q|829965}} to a different Wikipedia page (i.e. one that is completely devoted to The Beatles discography, such as https://en.wikipedia.org/wiki/The_Beatles_discography).
For example, a sitelink for the item for {{Q|1299}} should only link to the Wikipedia page on The Beatles (https://en.wikipedia.org/wiki/The_Beatles) — and '''not''' any sections of that page, such as https://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, {{Q|829965}} to a different Wikipedia page (i.e. one that is completely devoted to The Beatles discography, such as https://en.wikipedia.org/wiki/The_Beatles_discography).
</div>

<div lang="en" dir="ltr" class="mw-content-ltr">
It is, however, possible to maintain sitelinks for anchors outside of Wikidata and locally on Wikimedia sites. Please see [[#Interlanguage links with anchors|Interlanguage links with anchors]] section for more on this.
</div>
</div>


Line 51: Line 49:


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
To connect a redirect page to a Wikidata item, you need to also add a redirect [[#Badges|badge]] (usually {{Q|70894304}}) to it. To add a badge, click the icon next to the input field for the page title when adding the sitelink. Previously you can alternatively use [[:en:Help:Interlanguage links#Local links|local interlanguage links]]; this is no longer recommended.
If you really want to connect a redirect page to an item, you may first temporary deactivate the redirect page (e.g. blanking it), and connect it to the item, then restore the redirect.
</div>

<div lang="en" dir="ltr" class="mw-content-ltr">
Alternatively, use [[:en:Help:Interlanguage_links#Local_links|local interlanguage links]]. <br />
See, for example, the [[:en:Planform (aeronautics)&redirect=no|English Wikipedia redirect "Planform (aeronautics)"]], redirecting to the English Wikipedia page [[:en:Wing configuration]]. The page [[:en:Wing configuration]] is linked to the Wikidata item page {{Q|Q2992500}}. <br />
Also, since {{q|Q2643782}} has no sitelink to the English Wikipedia yet, it may seem like a good idea to establish a sitelink to [[:en:Planform (aeronautics)]]. <br />
However, because [[:en:Planform (aeronautics)]] is a redirect to [[:en:Wing configuration]], taking this action would be prevented by the system: in Wikidata, there can only be a single sitelink to any Wikimedia/ Wikipedia page. The workaround would be to add [[:en:Help:Interlanguage_links#Local_links|interlanguage links]] to the local source code of all pages in the relevant languages as wikitext.
</div>
</div>


Line 75: Line 66:
</div>
</div>


<span id="Languages"></span>
=== Rěcy ===
=== Rěcy ===


Line 92: Line 84:
File:Screen capture of featured article and good article icons.PNG|<span lang="en" dir="ltr" class="mw-content-ltr">At Wikipedia: Shows sitelinks with [[File:New Bullet GoldStar.svg|15px|]]</span>
File:Screen capture of featured article and good article icons.PNG|<span lang="en" dir="ltr" class="mw-content-ltr">At Wikipedia: Shows sitelinks with [[File:New Bullet GoldStar.svg|15px|]]</span>
</gallery>
</gallery>
<span id="Namespaces"></span>
=== Mjenjowe rumy ===
=== Mjenjowe rumy ===


Line 132: Line 125:
</div>
</div>


<span id="Suppression_of_Wikidata_links"></span>
<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
==== Wótkaze Wikidata pódtłocyś ====
==== Wótkaze Wikidata pódtłocyś ====
Line 140: Line 134:
</div>
</div>


<span id="Interlanguage_links_with_anchors"></span>
=== Mjazyrěcne wótkaze z kokulkami ===
=== Mjazyrěcne wótkaze z kokulkami ===
[[File:Languages - sitelinks.png|thumb|<span lang="en" dir="ltr" class="mw-content-ltr">Screenshot of "Languages" (Wikidata sitelinks) highlighted on a Wikimedia page</span>]]
[[File:Languages - sitelinks.png|thumb|<span lang="en" dir="ltr" class="mw-content-ltr">Screenshot of "Languages" (Wikidata sitelinks) highlighted on a Wikimedia page</span>]]
<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
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.
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. However, Wikidata does not support anchors as sitelinks. Previously, it is a practice to retain interlanguage links with anchors locally on the Wikimedia sites (not Wikidata); this is no longer recommended.
</div>
</div>


<div class="mw-translate-fuzzy">
<div lang="en" dir="ltr" class="mw-content-ltr">
If you want to connect a section of a page (also called ''an anchor'') to a Wikidata item, first find an appropriate redirect to that anchor (if none exists, create one), then connect the redirect to the item using [[#Linking to Wikimedia site pages|Linking to Wikimedia site pages]] above.
Wótergi mjazyrěcny wótkaz wopśimujo kokulku, kótaraž jo wótkaz k wótrězkoju nastawka. Kokulka reprezentěrujo se pśez znamuško "#" (na pś. [[:fr:Analyse de survie#Fonction de survie]]). Taki wótkaz se wužywa, gaž zwězana Wikipedija njama eksaktnje wótpowědujucy nastawk, ale ma nastawk, kótaryž wobjadna źěl teje samskeje temy. Mjazyrěcne wótkaze we Wikidata njepódpěraju kokulki pó designje, togodla muse se mjazyrěcne wótkaze z kokulkami we Wikipediji samej definěrowaś, jolic póžedane. Glědaj na pśikład kóńc wikiteksta w nastawku Survival function: Wikidata dodawa wšykne mjazyrěcne wótkaze pśez [[Q2915096]] - z wuwześim togo do francoskeje Wikipedije, kótaryž, dokulaž to jo wótkaz k wótrězkoju, pódawa se město togo lokalnje w nastawku samem.
</div>
</div>


Line 190: Line 185:
</div>
</div>


<span id="See_also"></span>
==Glědaj teke==
==Glědaj teke==



Latest revision as of 12:21, 20 May 2024


Wikidata screenshot – adding a new sitelink

Sedłowe wótkaze (abo mjazywikijowe wótkaze abo Lisćina bokow zwězanych z elementom) su wósebne wótkaze, kótrež wopśimuju sedło a titel a wjadu wót jadnotliwych elementow we Wikidata do bokow na drugich sedłach ako na pś. Wikipedija. Wužywaju se ako za identificěrowanje elementa z eksternego sedła tak teke ako narownanje za mjazyrěcne wótkaze. Sedłowe wótkaze mógu wobznamjenja měś a pokazuju zwětšego, až bok jo był wjelicny nastawk abo pódobny status měł.

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

Usage

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. Sitelinks can have attached badges and will usually show that a page has been a featured article, or of similar status.

Linking to Wikimedia site pages

Wikidata currently supports sitelinks for most Wikimedia projects (except Incubator, see phab:T54971). 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 (https://en.wikipedia.org/wiki/The_Beatles) — and not any sections of that page, such as https://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 https://en.wikipedia.org/wiki/The_Beatles_discography).

Note that each Wikimedia/Wikipedia page can only have one sitelink to any one Wikidata item page. You will receive an error message when attempting to add a new sitelink if the page is already connected to another item page (even when trying to link to a redirect page pointing to this particular 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.

To connect a redirect page to a Wikidata item, you need to also add a redirect badge (usually intentional sitelink to redirect (Q70894304)) to it. To add a badge, click the icon next to the input field for the page title when adding the sitelink. Previously you can alternatively use local interlanguage links; this is no longer recommended.

A more detailed discussion on how to connect multiple related pages to two or more Wikipedia language editions: Help:Handling sitelinks overlapping multiple items.

Wiktionary

Sitelinks for Wiktionary have specific tools and rules described on Wikidata:Wiktionary/Sitelinks.

Rěcy

Pśidaj rěce jano, jolic nastawk eksistěrujo w tej rěcnej wersiji Wikipediji. Zwězany nastawk by měł eksistěrujucy nastawk byś.

Badges

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

Mjenjowe rumy

Zgromaźeństwo Wikidata jo se w RFC dojadnało, až wšykne mjenjowe rumy Wikipedijowych projektow - z wuwześim mjenjowego ruma "User/Wužywaŕ" - daju se na Wikidata składowaś. To ma na se, až mjazywikijowe wótkaze za kategorije, pśedłogi a boki Wikipedijowych pśawidłow daju se teke we Wikidata składowaś a lokalnje wótpóraś, jolic to se pśewjedujo pśez wobej zgromaźeństwje. Za pśikład elemente we Wikidata, kótaryž póśěgujo se na mjenjowy rum Wikipedije, glědaj element Q4167836, kótaryž póśěgujo se na en:Wikipedia:Categorization.

Note that 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: https://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: https://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

Wótkaze Wikidata pódtłocyś

Jadnotliwy nastawk we wěstej Wikipedijowej rěcy móžo z pomocu magiskego słowa {{noexternallanglinks}} wótkaze Wikidata dopołnje pódtłocowaś. Magiske słowo pódpěra teke pódtłocowanje wěstych rěcow we formje "{{noexternallanglinks:es|fr|it}}", což by špańske, francojske a italske wótkaze pódtłocowało. Žedne z toś tych wužyśow zajźujo nalicenjeju wšyknych sedłowych wótkazow elementa pśez Wikidata.

Mjazyrěcne wótkaze z kokulkami

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. However, Wikidata does not support anchors as sitelinks. Previously, it is a practice to retain interlanguage links with anchors locally on the Wikimedia sites (not Wikidata); this is no longer recommended.

If you want to connect a section of a page (also called an anchor) to a Wikidata item, first find an appropriate redirect to that anchor (if none exists, create one), then connect the redirect to the item using Linking to Wikimedia site pages above.

Talk pages

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, if 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.

Page renames

When a page is renamed on a client wiki, the page move automatically updates the sitelink at Wikidata, if the renaming user has an active account on Wikidata.

Scenario: A new contributor at English Wikipedia, who has never visited Wikidata, renames an article. The sitelink at Wikidata will continue to point to the page title that has become a redirect.

When page moves aren't reflected on Wikidata, sometimes a second item for the new page title is created, leading to a duplicate on Wikidata. These should be merged.

A bot or Wikibase function could update sitelinks based on the pagemove log at Wikipedia (or other client wikis).

This is currently (November 2021) being done for German Wikipedia (Q48183) and English Wikipedia (Q328) by User:Krdbot.

It's appreciated if users who rename pages on client wikis log in to Wikidata once to create an account.

Glědaj teke

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